@jakkrichm/create-nexus-devflow 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/update.js +19 -8
- package/dist/lib/update.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/00-discover/SKILL.md +28 -116
- package/template/.agents/skills/40-execute/SKILL.md +1 -1
- package/template/.agents/skills/50-verify/SKILL.md +28 -161
- package/template/.agents/skills/60-report/SKILL.md +19 -92
- package/template/.agents/skills/70-release/SKILL.md +36 -11
- package/template/.agents/skills/check/SKILL.md +19 -7
- package/template/.agents/skills/complete/SKILL.md +21 -10
- package/template/.claude/skills/00-discover/SKILL.md +28 -116
- package/template/.claude/skills/40-execute/SKILL.md +1 -1
- package/template/.claude/skills/50-verify/SKILL.md +28 -161
- package/template/.claude/skills/60-report/SKILL.md +19 -92
- package/template/.claude/skills/70-release/SKILL.md +36 -11
- package/template/.claude/skills/check/SKILL.md +19 -7
- package/template/.claude/skills/complete/SKILL.md +21 -10
- package/template/AGENTS.md +1 -1
- package/template/devflow/context/coding-standards.md +40 -29
- package/template/.agents/skills/agent/SKILL.md +0 -165
- package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
- package/template/.agents/skills/app-builder/SKILL.md +0 -75
- package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
- package/template/.agents/skills/app-builder/feature-building.md +0 -53
- package/template/.agents/skills/app-builder/project-detection.md +0 -34
- package/template/.agents/skills/app-builder/scaffolding.md +0 -118
- package/template/.agents/skills/app-builder/tech-stack.md +0 -40
- package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
- package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/template/.agents/skills/architecture/SKILL.md +0 -55
- package/template/.agents/skills/architecture/context-discovery.md +0 -43
- package/template/.agents/skills/architecture/examples.md +0 -94
- package/template/.agents/skills/architecture/pattern-selection.md +0 -68
- package/template/.agents/skills/architecture/patterns-reference.md +0 -50
- package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
- package/template/.agents/skills/bash-linux/SKILL.md +0 -199
- package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
- package/template/.agents/skills/brainstorm/SKILL.md +0 -168
- package/template/.agents/skills/changelog/SKILL.md +0 -109
- package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
- package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
- package/template/.agents/skills/codebase-design/SKILL.md +0 -58
- package/template/.agents/skills/commit/SKILL.md +0 -59
- package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
- package/template/.agents/skills/context-engineering/SKILL.md +0 -290
- package/template/.agents/skills/database-design/SKILL.md +0 -52
- package/template/.agents/skills/database-design/database-selection.md +0 -43
- package/template/.agents/skills/database-design/indexing.md +0 -39
- package/template/.agents/skills/database-design/migrations.md +0 -48
- package/template/.agents/skills/database-design/optimization.md +0 -36
- package/template/.agents/skills/database-design/orm-selection.md +0 -30
- package/template/.agents/skills/database-design/schema-design.md +0 -56
- package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
- package/template/.agents/skills/deploy/SKILL.md +0 -63
- package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
- package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/template/.agents/skills/followup/SKILL.md +0 -83
- package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
- package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
- package/template/.agents/skills/goal/SKILL.md +0 -148
- package/template/.agents/skills/handoff/SKILL.md +0 -46
- package/template/.agents/skills/help/SKILL.md +0 -253
- package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
- package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/template/.agents/skills/insight/SKILL.md +0 -42
- package/template/.agents/skills/issue-triage/SKILL.md +0 -115
- package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
- package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
- package/template/.agents/skills/merge/SKILL.md +0 -76
- package/template/.agents/skills/mobile-design/SKILL.md +0 -394
- package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
- package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
- package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
- package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
- package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
- package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
- package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
- package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
- package/template/.agents/skills/mobile-design/platform-android.md +0 -666
- package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
- package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
- package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
- package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
- package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
- package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
- package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
- package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
- package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
- package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
- package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
- package/template/.agents/skills/pr/SKILL.md +0 -93
- package/template/.agents/skills/prd/SKILL.md +0 -127
- package/template/.agents/skills/preview/SKILL.md +0 -42
- package/template/.agents/skills/python-patterns/SKILL.md +0 -441
- package/template/.agents/skills/research/SKILL.md +0 -143
- package/template/.agents/skills/review/SKILL.md +0 -71
- package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
- package/template/.agents/skills/security-review/SKILL.md +0 -63
- package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
- package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/template/.agents/skills/server-management/SKILL.md +0 -161
- package/template/.agents/skills/simplify/SKILL.md +0 -70
- package/template/.agents/skills/skill-development/SKILL.md +0 -86
- package/template/.agents/skills/spec/SKILL.md +0 -39
- package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
- package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
- package/template/.agents/skills/type-design/SKILL.md +0 -84
- package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
- package/template/.claude/skills/agent/SKILL.md +0 -165
- package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
- package/template/.claude/skills/app-builder/SKILL.md +0 -75
- package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
- package/template/.claude/skills/app-builder/feature-building.md +0 -53
- package/template/.claude/skills/app-builder/project-detection.md +0 -34
- package/template/.claude/skills/app-builder/scaffolding.md +0 -118
- package/template/.claude/skills/app-builder/tech-stack.md +0 -40
- package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
- package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/template/.claude/skills/architecture/SKILL.md +0 -55
- package/template/.claude/skills/architecture/context-discovery.md +0 -43
- package/template/.claude/skills/architecture/examples.md +0 -94
- package/template/.claude/skills/architecture/pattern-selection.md +0 -68
- package/template/.claude/skills/architecture/patterns-reference.md +0 -50
- package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
- package/template/.claude/skills/bash-linux/SKILL.md +0 -199
- package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
- package/template/.claude/skills/brainstorm/SKILL.md +0 -168
- package/template/.claude/skills/changelog/SKILL.md +0 -109
- package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
- package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
- package/template/.claude/skills/codebase-design/SKILL.md +0 -58
- package/template/.claude/skills/commit/SKILL.md +0 -59
- package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
- package/template/.claude/skills/context-engineering/SKILL.md +0 -290
- package/template/.claude/skills/database-design/SKILL.md +0 -52
- package/template/.claude/skills/database-design/database-selection.md +0 -43
- package/template/.claude/skills/database-design/indexing.md +0 -39
- package/template/.claude/skills/database-design/migrations.md +0 -48
- package/template/.claude/skills/database-design/optimization.md +0 -36
- package/template/.claude/skills/database-design/orm-selection.md +0 -30
- package/template/.claude/skills/database-design/schema-design.md +0 -56
- package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
- package/template/.claude/skills/deploy/SKILL.md +0 -63
- package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
- package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
- package/template/.claude/skills/followup/SKILL.md +0 -83
- package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
- package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
- package/template/.claude/skills/goal/SKILL.md +0 -148
- package/template/.claude/skills/handoff/SKILL.md +0 -46
- package/template/.claude/skills/help/SKILL.md +0 -253
- package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
- package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/template/.claude/skills/insight/SKILL.md +0 -42
- package/template/.claude/skills/issue-triage/SKILL.md +0 -115
- package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
- package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
- package/template/.claude/skills/merge/SKILL.md +0 -76
- package/template/.claude/skills/mobile-design/SKILL.md +0 -394
- package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
- package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
- package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
- package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
- package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
- package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
- package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
- package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
- package/template/.claude/skills/mobile-design/platform-android.md +0 -666
- package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
- package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
- package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
- package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
- package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
- package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
- package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
- package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
- package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
- package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
- package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
- package/template/.claude/skills/pr/SKILL.md +0 -93
- package/template/.claude/skills/prd/SKILL.md +0 -127
- package/template/.claude/skills/preview/SKILL.md +0 -42
- package/template/.claude/skills/python-patterns/SKILL.md +0 -441
- package/template/.claude/skills/research/SKILL.md +0 -143
- package/template/.claude/skills/review/SKILL.md +0 -71
- package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
- package/template/.claude/skills/security-review/SKILL.md +0 -63
- package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
- package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/template/.claude/skills/server-management/SKILL.md +0 -161
- package/template/.claude/skills/simplify/SKILL.md +0 -70
- package/template/.claude/skills/skill-development/SKILL.md +0 -86
- package/template/.claude/skills/spec/SKILL.md +0 -39
- package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
- package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
- package/template/.claude/skills/type-design/SKILL.md +0 -84
- package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: behavioral-modes
|
|
3
|
-
description: "[Devflow] AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type."
|
|
4
|
-
allowed-tools: Read, Glob, Grep
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Behavioral Modes - Adaptive AI Operating Modes
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
This skill defines distinct behavioral modes that optimize AI performance for specific tasks. Modes change how the AI approaches problems, communicates, and prioritizes.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Available Modes
|
|
15
|
-
|
|
16
|
-
### 1. 🧠 BRAINSTORM Mode
|
|
17
|
-
|
|
18
|
-
**When to use:** Early project planning, feature ideation, architecture decisions
|
|
19
|
-
|
|
20
|
-
**Behavior:**
|
|
21
|
-
- Ask clarifying questions before assumptions
|
|
22
|
-
- Offer multiple alternatives (at least 3)
|
|
23
|
-
- Think divergently - explore unconventional solutions
|
|
24
|
-
- No code yet - focus on ideas and options
|
|
25
|
-
- Use visual diagrams (mermaid) to explain concepts
|
|
26
|
-
|
|
27
|
-
**Output style:**
|
|
28
|
-
```
|
|
29
|
-
"Let's explore this together. Here are some approaches:
|
|
30
|
-
|
|
31
|
-
Option A: [description]
|
|
32
|
-
✅ Pros: ...
|
|
33
|
-
❌ Cons: ...
|
|
34
|
-
|
|
35
|
-
Option B: [description]
|
|
36
|
-
✅ Pros: ...
|
|
37
|
-
❌ Cons: ...
|
|
38
|
-
|
|
39
|
-
What resonates with you? Or should we explore a different direction?"
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
### 2. ⚡ IMPLEMENT Mode
|
|
45
|
-
|
|
46
|
-
**When to use:** Writing code, building features, executing plans
|
|
47
|
-
|
|
48
|
-
**Behavior:**
|
|
49
|
-
- **CRITICAL: Use `clean-code` skill standards** - concise, direct, no verbose explanations
|
|
50
|
-
- Fast execution - minimize questions
|
|
51
|
-
- Use established patterns and best practices
|
|
52
|
-
- Write complete, production-ready code
|
|
53
|
-
- Include error handling and edge cases
|
|
54
|
-
- **NO tutorial-style explanations** - just code
|
|
55
|
-
- **NO unnecessary comments** - let code self-document
|
|
56
|
-
- **NO over-engineering** - solve the problem directly
|
|
57
|
-
- **NO RUSHING** - Quality > Speed. Read ALL references before coding.
|
|
58
|
-
|
|
59
|
-
**Output style:**
|
|
60
|
-
```
|
|
61
|
-
[Code block]
|
|
62
|
-
|
|
63
|
-
[Brief summary, max 1-2 sentences]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**NOT:**
|
|
67
|
-
```
|
|
68
|
-
"Building [feature]...
|
|
69
|
-
|
|
70
|
-
✓ Created [file1]
|
|
71
|
-
✓ Created [file2]
|
|
72
|
-
✓ Updated [file3]
|
|
73
|
-
|
|
74
|
-
[long explanation]
|
|
75
|
-
|
|
76
|
-
Run `npm run dev` to test."
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
### 3. 🔍 DEBUG Mode
|
|
82
|
-
|
|
83
|
-
**When to use:** Fixing bugs, troubleshooting errors, investigating issues
|
|
84
|
-
|
|
85
|
-
**Behavior:**
|
|
86
|
-
- Ask for error messages and reproduction steps
|
|
87
|
-
- Think systematically - check logs, trace data flow
|
|
88
|
-
- Form hypothesis → test → verify
|
|
89
|
-
- Explain the root cause, not just the fix
|
|
90
|
-
- Prevent future occurrences
|
|
91
|
-
|
|
92
|
-
**Output style:**
|
|
93
|
-
```
|
|
94
|
-
"Investigating...
|
|
95
|
-
|
|
96
|
-
🔍 Symptom: [what's happening]
|
|
97
|
-
🎯 Root cause: [why it's happening]
|
|
98
|
-
✅ Fix: [the solution]
|
|
99
|
-
🛡️ Prevention: [how to avoid in future]
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
### 4. 📋 REVIEW Mode
|
|
105
|
-
|
|
106
|
-
**When to use:** Code review, architecture review, security audit
|
|
107
|
-
|
|
108
|
-
**Behavior:**
|
|
109
|
-
- Be thorough but constructive
|
|
110
|
-
- Categorize by severity (Critical/High/Medium/Low)
|
|
111
|
-
- Explain the "why" behind suggestions
|
|
112
|
-
- Offer improved code examples
|
|
113
|
-
- Acknowledge what's done well
|
|
114
|
-
|
|
115
|
-
**Output style:**
|
|
116
|
-
```
|
|
117
|
-
## Code Review: [file/feature]
|
|
118
|
-
|
|
119
|
-
### 🔴 Critical
|
|
120
|
-
- [issue with explanation]
|
|
121
|
-
|
|
122
|
-
### 🟠 Improvements
|
|
123
|
-
- [suggestion with example]
|
|
124
|
-
|
|
125
|
-
### 🟢 Good
|
|
126
|
-
- [positive observation]
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
### 5. 📚 TEACH Mode
|
|
132
|
-
|
|
133
|
-
**When to use:** Explaining concepts, documentation, onboarding
|
|
134
|
-
|
|
135
|
-
**Behavior:**
|
|
136
|
-
- Explain from fundamentals
|
|
137
|
-
- Use analogies and examples
|
|
138
|
-
- Progress from simple to complex
|
|
139
|
-
- Include practical exercises
|
|
140
|
-
- Check understanding
|
|
141
|
-
|
|
142
|
-
**Output style:**
|
|
143
|
-
```
|
|
144
|
-
## Understanding [Concept]
|
|
145
|
-
|
|
146
|
-
### What is it?
|
|
147
|
-
[Simple explanation with analogy]
|
|
148
|
-
|
|
149
|
-
### How it works
|
|
150
|
-
[Technical explanation with diagram]
|
|
151
|
-
|
|
152
|
-
### Example
|
|
153
|
-
[Code example with comments]
|
|
154
|
-
|
|
155
|
-
### Try it yourself
|
|
156
|
-
[Exercise or task]
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
### 6. 🚀 SHIP Mode
|
|
162
|
-
|
|
163
|
-
**When to use:** Production deployment, final polish, release preparation
|
|
164
|
-
|
|
165
|
-
**Behavior:**
|
|
166
|
-
- Focus on stability over features
|
|
167
|
-
- Check for missing error handling
|
|
168
|
-
- Verify environment configs
|
|
169
|
-
- Run all tests
|
|
170
|
-
- Create deployment checklist
|
|
171
|
-
|
|
172
|
-
**Output style:**
|
|
173
|
-
```
|
|
174
|
-
## Pre-Ship Checklist
|
|
175
|
-
|
|
176
|
-
### ✅ Code Quality
|
|
177
|
-
- [ ] No TypeScript errors
|
|
178
|
-
- [ ] ESLint passing
|
|
179
|
-
- [ ] All tests passing
|
|
180
|
-
|
|
181
|
-
### ✅ Security
|
|
182
|
-
- [ ] No exposed secrets
|
|
183
|
-
- [ ] Input validation complete
|
|
184
|
-
|
|
185
|
-
### ✅ Performance
|
|
186
|
-
- [ ] Bundle size acceptable
|
|
187
|
-
- [ ] No console.logs
|
|
188
|
-
|
|
189
|
-
### 🚀 Ready to deploy
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
## Mode Detection
|
|
195
|
-
|
|
196
|
-
The AI should automatically detect the appropriate mode based on:
|
|
197
|
-
|
|
198
|
-
| Trigger | Mode |
|
|
199
|
-
|---------|------|
|
|
200
|
-
| "what if", "ideas", "options" | BRAINSTORM |
|
|
201
|
-
| "build", "create", "add" | IMPLEMENT |
|
|
202
|
-
| "not working", "error", "bug" | DEBUG |
|
|
203
|
-
| "review", "check", "audit" | REVIEW |
|
|
204
|
-
| "explain", "how does", "learn" | TEACH |
|
|
205
|
-
| "deploy", "release", "production" | SHIP |
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## Multi-Agent Collaboration Patterns (2025)
|
|
210
|
-
|
|
211
|
-
Modern architectures optimized for agent-to-agent collaboration:
|
|
212
|
-
|
|
213
|
-
### 1. 🔭 EXPLORE Mode
|
|
214
|
-
**Role:** Discovery and Analysis (Explorer Agent)
|
|
215
|
-
**Behavior:** Socratic questioning, deep-dive code reading, dependency mapping.
|
|
216
|
-
**Output:** `discovery-report.json`, architectural visualization.
|
|
217
|
-
|
|
218
|
-
### 2. 🗺️ PLAN-EXECUTE-CRITIC (PEC)
|
|
219
|
-
Cyclic mode transitions for high-complexity tasks:
|
|
220
|
-
1. **Planner:** Decomposes the task into atomic steps (`task.md`).
|
|
221
|
-
2. **Executor:** Performs the actual coding (`IMPLEMENT`).
|
|
222
|
-
3. **Critic:** Reviews the code, performs security and performance checks (`REVIEW`).
|
|
223
|
-
|
|
224
|
-
### 3. 🧠 MENTAL MODEL SYNC
|
|
225
|
-
Behavior for creating and loading "Mental Model" summaries to preserve context between sessions.
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
## Combining Modes
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
## Manual Mode Switching
|
|
234
|
-
|
|
235
|
-
Users can explicitly request a mode:
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
/brainstorm new feature ideas
|
|
239
|
-
/implement the user profile page
|
|
240
|
-
/debug why login fails
|
|
241
|
-
/review this pull request
|
|
242
|
-
```
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
---name: brainstorm
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Structured divergent and convergent ideation for features and ideas without allocating running IDs."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Brainstorm - Structured Idea Exploration
|
|
7
|
-
|
|
8
|
-
$ARGUMENTS
|
|
9
|
-
|
|
10
|
-
This file keeps its old numeric path for migration compatibility.
|
|
11
|
-
|
|
12
|
-
In DevFlow 2.0, `Brainstorm` is a companion command, not a numbered mainline workflow. The operational behavior remains intentionally rich so the user experience does not regress.
|
|
13
|
-
|
|
14
|
-
## Purpose
|
|
15
|
-
|
|
16
|
-
Use `Brainstorm` for structured idea exploration before committing to a direction.
|
|
17
|
-
|
|
18
|
-
Use it when:
|
|
19
|
-
|
|
20
|
-
- the request is still vague
|
|
21
|
-
- there are multiple possible directions
|
|
22
|
-
- the team needs to compare options before locking the work
|
|
23
|
-
- Discover or Define would benefit from explicit option comparison
|
|
24
|
-
|
|
25
|
-
Preferred DevFlow 2.0 pairing:
|
|
26
|
-
|
|
27
|
-
- from `00-discover` when the request is still fuzzy
|
|
28
|
-
- from `10-define` when the direction is still unstable
|
|
29
|
-
|
|
30
|
-
When invoked with a Discovery ID, link the brainstorming report to that discovery and return to `00-discover {discovery_id}` for synthesis. Do not allocate a Running ID or jump directly from a discovery-owned brainstorm into Define.
|
|
31
|
-
|
|
32
|
-
## Behavior
|
|
33
|
-
|
|
34
|
-
When `Brainstorm` is triggered:
|
|
35
|
-
|
|
36
|
-
1. Understand the goal
|
|
37
|
-
- What problem are we solving?
|
|
38
|
-
- Who is the user or stakeholder?
|
|
39
|
-
- What constraints matter?
|
|
40
|
-
2. Generate options
|
|
41
|
-
- Provide at least 3 materially different approaches
|
|
42
|
-
- Include pros and cons for each
|
|
43
|
-
- Consider both safe and unconventional paths when useful
|
|
44
|
-
3. Compare and recommend
|
|
45
|
-
- Summarize the tradeoffs
|
|
46
|
-
- Give a recommendation with reasoning
|
|
47
|
-
4. Keep it exploratory
|
|
48
|
-
- Do not pretend certainty where it does not exist
|
|
49
|
-
- Do not turn this into implementation planning too early
|
|
50
|
-
|
|
51
|
-
Apply prompt ideation addons when useful:
|
|
52
|
-
|
|
53
|
-
- `ideation_code_improvements`
|
|
54
|
-
- `ideation_code_quality`
|
|
55
|
-
- `ideation_documentation`
|
|
56
|
-
- `ideation_performance`
|
|
57
|
-
- `ideation_security`
|
|
58
|
-
- `ideation_ui_ux`
|
|
59
|
-
|
|
60
|
-
In DevFlow 2.0, do not treat `Brainstorm` as a required linear state before `10-Define`. It supports the mainline; it does not replace it.
|
|
61
|
-
|
|
62
|
-
## Output Format
|
|
63
|
-
|
|
64
|
-
Return a brief summary in chat, and save the full brainstorming report under `devflow/research/brainstorm-{topic}.md`.
|
|
65
|
-
|
|
66
|
-
Before generating the report:
|
|
67
|
-
|
|
68
|
-
1. Inspect `.agent/resources/schemas/brainstorm.template.md`
|
|
69
|
-
2. Preserve its required headings and structure
|
|
70
|
-
3. Replace all placeholders with concrete content
|
|
71
|
-
4. Re-check the output against `brainstorm.template.md`, ensure required headings remain, and remove all placeholders before completion
|
|
72
|
-
|
|
73
|
-
Use this structure:
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
## ๐ง Brainstorm: [Topic]
|
|
77
|
-
|
|
78
|
-
### Context
|
|
79
|
-
[Brief problem statement]
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
### Option A: [Name]
|
|
84
|
-
[Description]
|
|
85
|
-
|
|
86
|
-
โ… **Pros:**
|
|
87
|
-
- [benefit 1]
|
|
88
|
-
- [benefit 2]
|
|
89
|
-
|
|
90
|
-
โ **Cons:**
|
|
91
|
-
- [drawback 1]
|
|
92
|
-
|
|
93
|
-
๐“ **Effort:** Low | Medium | High
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
### Option B: [Name]
|
|
98
|
-
[Description]
|
|
99
|
-
|
|
100
|
-
โ… **Pros:**
|
|
101
|
-
- [benefit 1]
|
|
102
|
-
|
|
103
|
-
โ **Cons:**
|
|
104
|
-
- [drawback 1]
|
|
105
|
-
- [drawback 2]
|
|
106
|
-
|
|
107
|
-
๐“ **Effort:** Low | Medium | High
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
### Option C: [Name]
|
|
112
|
-
[Description]
|
|
113
|
-
|
|
114
|
-
โ… **Pros:**
|
|
115
|
-
- [benefit 1]
|
|
116
|
-
|
|
117
|
-
โ **Cons:**
|
|
118
|
-
- [drawback 1]
|
|
119
|
-
|
|
120
|
-
๐“ **Effort:** Low | Medium | High
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## ๐’ก Recommendation
|
|
125
|
-
|
|
126
|
-
**Option [X]** because [reasoning].
|
|
127
|
-
|
|
128
|
-
## Next Suggested Actions
|
|
129
|
-
- [Action 1]
|
|
130
|
-
- [Action 2]
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
## Examples
|
|
134
|
-
|
|
135
|
-
```text
|
|
136
|
-
Brainstorm authentication system
|
|
137
|
-
Brainstorm state management for complex form
|
|
138
|
-
Brainstorm database schema for social app
|
|
139
|
-
Brainstorm caching strategy
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Key Principles
|
|
143
|
-
|
|
144
|
-
- No code unless the user explicitly changes mode
|
|
145
|
-
- Honest tradeoffs over fake confidence
|
|
146
|
-
- Multiple viable paths before recommending one
|
|
147
|
-
- Persistent output saved to disk
|
|
148
|
-
- Mainline remains: `00-discover -> 10-define -> 20-spec -> 30-plan -> 40-execute -> 50-verify -> 60-report -> 70-release`
|
|
149
|
-
|
|
150
|
-
## Relationship To DevFlow 2.0
|
|
151
|
-
|
|
152
|
-
- Classification: Companion command
|
|
153
|
-
- Mainline status: Not a numbered stage
|
|
154
|
-
- Typical entry points: `00-discover`, `10-define`
|
|
155
|
-
- Typical handoff targets: `00-discover {discovery_id}` for discovery-owned work, or the active numbered stage for run-owned work
|
|
156
|
-
|
|
157
|
-
## Sources
|
|
158
|
-
|
|
159
|
-
- `AGENTS.md`
|
|
160
|
-
- `.agent/resources/schemas/brainstorm.template.md`
|
|
161
|
-
- Related commands: `00-discover`, `10-define`, `Research`, `PRD`, `20-spec`
|
|
162
|
-
|
|
163
|
-
## Next Workflow Recommendation
|
|
164
|
-
|
|
165
|
-
- Default: return to `00-discover {discovery_id}` when Discover requested the work; otherwise return to the stage that requested it
|
|
166
|
-
- Alternate: `Research` when facts are still missing
|
|
167
|
-
- Alternate: `10-define` or `20-spec` only when the work was not opened from a pending discovery
|
|
168
|
-
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
---name: changelog
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Update CHANGELOG.md automatically from specs, git commits, and stage report history."
|
|
4
|
-
---
|
|
5
|
-
# Phase 53: Update Changelog
|
|
6
|
-
|
|
7
|
-
This command automates the process of maintaining the `CHANGELOG.md` file by analyzing task specifications, git diffs, and the current project state.
|
|
8
|
-
|
|
9
|
-
Primary behavior now lives in:
|
|
10
|
-
|
|
11
|
-
```text
|
|
12
|
-
.agents/skills/release-git-operations/SKILL.md
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Treat this workflow file as a compatibility wrapper around that skill in `changelog` mode.
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
Run the command by typing:
|
|
20
|
-
```
|
|
21
|
-
Changelog
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Objectives
|
|
25
|
-
|
|
26
|
-
1. **Change Detection**: Identify new features, fixes, and changes since the last recorded version in `CHANGELOG.md`.
|
|
27
|
-
2. **Automated Versioning**: Analyze the impact of changes to automatically select the next version number (Major, Minor, or Patch) based on Semantic Versioning (SemVer) principles.
|
|
28
|
-
3. **Source Analysis**:
|
|
29
|
-
* Scan `devflow/` for `20-spec.md` files of active or recently completed tasks.
|
|
30
|
-
* Check `git status` and `git diff` for uncommitted/staged changes.
|
|
31
|
-
* Check `git log` if git is initialized to see history since the last tag or version entry.
|
|
32
|
-
3. **Automatic Formatting**: Generate a standardized changelog entry following the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
|
|
33
|
-
4. **Consistency**: Ensure the `CHANGELOG.md` reflects the actual work done in the repository.
|
|
34
|
-
|
|
35
|
-
## Process
|
|
36
|
-
|
|
37
|
-
### 1. Version Detection & Setup
|
|
38
|
-
1. **Read Current Changelog**: Extract the latest version and date from `CHANGELOG.md`.
|
|
39
|
-
2. **Analyze & Determine Next Version**:
|
|
40
|
-
* Analyze the collected changes to decide the increment based on **Semantic Versioning (SemVer)**:
|
|
41
|
-
- **Major (+1.0.0)**: Use if there are breaking changes, [DELETE] operations on core modules, or major architectural shifts.
|
|
42
|
-
- **Minor (0.+1.0)**: Use if new features ([NEW]) or significant compatible additions are found.
|
|
43
|
-
- **Patch (0.0.+1)**: Use for bug fixes ([FIXED]), small tweaks ([MODIFY]), or documentation updates.
|
|
44
|
-
* Auto-propose the version based on the highest impact category found.
|
|
45
|
-
3. **Get Current Date**: Use the current system date (YYYY-MM-DD).
|
|
46
|
-
|
|
47
|
-
### 2. Information Gathering
|
|
48
|
-
1. **Scan devflow/**:
|
|
49
|
-
* Find all `20-spec.md` files in subdirectories of `devflow/`.
|
|
50
|
-
* Extract the `Goal` or `Requirements` sections to identify high-level features/fixes.
|
|
51
|
-
2. **Git Analysis** (if available):
|
|
52
|
-
* Run `git status` to see current work in progress.
|
|
53
|
-
* Run `git diff` to understand technical changes and impact.
|
|
54
|
-
* Look for "BREAKING CHANGE" in git commit messages.
|
|
55
|
-
3. **Categorization & Impact Assessment**: Group findings and assess impact:
|
|
56
|
-
* `Added` โ’ Usually Minor.
|
|
57
|
-
* `Changed` โ’ Minor or Patch (Major if breaking).
|
|
58
|
-
* `Fixed` โ’ Patch.
|
|
59
|
-
* `Removed` โ’ Major (if public API/Core).
|
|
60
|
-
* `Security` โ’ Patch or Minor.
|
|
61
|
-
|
|
62
|
-
### 3. Update CHANGELOG.md
|
|
63
|
-
1. **Template Verification**: Before generating a new changelog block, inspect `.agent/resources/schemas/changelog_entry.template.md`, use its headings, and manually apply the same no-placeholder gate to the inserted changelog block.
|
|
64
|
-
2. **Generate Entry**: Format the gathered information into a Markdown block.
|
|
65
|
-
3. **Insertion**: Use `replace_file_content` to insert the new version block at the top of the version list (usually after the header and description).
|
|
66
|
-
4. **Validation**: Ensure the file remains readable and correctly formatted.
|
|
67
|
-
|
|
68
|
-
## Benefits
|
|
69
|
-
- **Automation**: Reduces the manual effort of tracking changes.
|
|
70
|
-
- **Accuracy**: Ensures all tasks documented in `devflow/` are captured.
|
|
71
|
-
- **Standardization**: Maintains a consistent look and feel for project history.
|
|
72
|
-
|
|
73
|
-
## System Prompt / Persona
|
|
74
|
-
- **Release Engineer**: Focuses on clear, concise, and accurate documentation of software changes.
|
|
75
|
-
- **Technical Writer**: Ensures the changelog is readable for both humans and machines.
|
|
76
|
-
|
|
77
|
-
## Insight Addon
|
|
78
|
-
|
|
79
|
-
When recent work includes useful lessons, apply the `insight_extractor` pattern before writing the changelog:
|
|
80
|
-
|
|
81
|
-
- Extract reusable patterns, gotchas, and file insights from task artifacts and git diff.
|
|
82
|
-
- Keep lessons actionable and concise.
|
|
83
|
-
- Include only user-facing changes in `CHANGELOG.md`; keep internal gotchas in `devflow/lessons.md` or task logs.
|
|
84
|
-
|
|
85
|
-
## Management-Talk Addon
|
|
86
|
-
|
|
87
|
-
When changelog input is too implementation-heavy, apply `.agents/skills/9arm-skills/management-talk/SKILL.md` as a credited communication lens:
|
|
88
|
-
|
|
89
|
-
- Source pack: `9arm-skills`
|
|
90
|
-
- Credit: `thananon/9arm-skills`
|
|
91
|
-
- Adapted for: Antigravity IDE / Nexus-DevFlow
|
|
92
|
-
- Preserve user-facing impact, validation, risk, and follow-up.
|
|
93
|
-
- Remove low-value internal details such as function names, long file paths, and commit SHAs unless they are needed for release decisions.
|
|
94
|
-
|
|
95
|
-
## Relationship To DevFlow 2.0
|
|
96
|
-
|
|
97
|
-
- Classification: Companion command
|
|
98
|
-
- Mainline status: Release communication support, not a numbered stage
|
|
99
|
-
- Typical entry points: `70-release`, `Deploy`, `PR`
|
|
100
|
-
- Typical handoff targets: `60-report`, `Wiki`
|
|
101
|
-
|
|
102
|
-
## Sources
|
|
103
|
-
|
|
104
|
-
- `AGENTS.md`
|
|
105
|
-
- `.agents/skills/release-git-operations/SKILL.md`
|
|
106
|
-
- `.agent/resources/schemas/changelog_entry.template.md`
|
|
107
|
-
- Related commands: `70-release`, `Deploy`, `PR`, `60-report`, `Wiki`
|
|
108
|
-
|
|
109
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Deepening
|
|
2
|
-
|
|
3
|
-
Use this reference when a cluster of shallow modules may need to become one deeper module.
|
|
4
|
-
|
|
5
|
-
## Dependency Categories
|
|
6
|
-
|
|
7
|
-
| Category | Meaning | Testing strategy |
|
|
8
|
-
| :--- | :--- | :--- |
|
|
9
|
-
| In-process | Pure computation or in-memory state | Test through the new interface directly. |
|
|
10
|
-
| Local-substitutable | Dependency has a local test stand-in | Test the deep module with the local stand-in. |
|
|
11
|
-
| Remote but owned | Internal service across a network boundary | Define a port at the seam; use production and in-memory adapters. |
|
|
12
|
-
| True external | Third-party service you do not control | Inject a port and use a mock adapter at the system boundary. |
|
|
13
|
-
|
|
14
|
-
## Seam Discipline
|
|
15
|
-
|
|
16
|
-
- One adapter means a hypothetical seam; two adapters means a real one.
|
|
17
|
-
- A deep module may have internal seams, but callers should not need to know them.
|
|
18
|
-
- Do not add ports only to make tests easier when the real design does not vary there.
|
|
19
|
-
|
|
20
|
-
## Testing Strategy
|
|
21
|
-
|
|
22
|
-
- Replace tests of shallow internals with tests at the deepened module's interface.
|
|
23
|
-
- Assert observable behavior through the interface.
|
|
24
|
-
- Keep tests resilient to internal refactors.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Design It Twice
|
|
2
|
-
|
|
3
|
-
Use this reference when a stage needs alternative module or interface designs before committing to one.
|
|
4
|
-
|
|
5
|
-
## Process
|
|
6
|
-
|
|
7
|
-
1. Frame the problem space.
|
|
8
|
-
- Name constraints.
|
|
9
|
-
- Name dependencies and classify them with `DEEPENING.md`.
|
|
10
|
-
- Sketch only enough code to make the constraints concrete.
|
|
11
|
-
|
|
12
|
-
2. Produce at least three different designs.
|
|
13
|
-
- Minimal interface: 1-3 entry points.
|
|
14
|
-
- Flexible interface: supports more use cases and extension.
|
|
15
|
-
- Common-case interface: makes the dominant caller trivial.
|
|
16
|
-
- Ports-and-adapters interface: use only when cross-seam dependencies justify it.
|
|
17
|
-
|
|
18
|
-
3. Compare designs.
|
|
19
|
-
- Interface depth.
|
|
20
|
-
- Locality of future change.
|
|
21
|
-
- Seam placement.
|
|
22
|
-
- Test surface.
|
|
23
|
-
- Adapter strategy.
|
|
24
|
-
|
|
25
|
-
4. Recommend one design.
|
|
26
|
-
- Be opinionated.
|
|
27
|
-
- Mention any useful hybrid.
|
|
28
|
-
- Record rejected alternatives only when future readers would otherwise re-open the same debate.
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: codebase-design
|
|
3
|
-
description: "[Devflow] Shared vocabulary for designing deep modules. Use when a DevFlow stage needs module/interface design, seam placement, testability review, or architecture simplification."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Codebase Design
|
|
7
|
-
|
|
8
|
-
Use this support skill when `20-spec`, `30-plan`, `40-execute`, or `50-verify` needs better module shape.
|
|
9
|
-
|
|
10
|
-
Design deep modules: a lot of behavior behind a small interface, placed at a clean seam, and testable through that interface. The aim is leverage for callers, locality for maintainers, and behavior-focused tests.
|
|
11
|
-
|
|
12
|
-
## DevFlow Placement
|
|
13
|
-
|
|
14
|
-
- `20-spec`: use when requirements depend on a stable module or interface contract.
|
|
15
|
-
- `30-plan`: use when planning needs file-level architecture, seams, or dependency strategy.
|
|
16
|
-
- `40-execute`: use when implementation reveals shallow modules or awkward test seams.
|
|
17
|
-
- `50-verify`: use when review finds code that is hard to test, hard to change, or too spread out.
|
|
18
|
-
|
|
19
|
-
## Vocabulary
|
|
20
|
-
|
|
21
|
-
Use these words consistently:
|
|
22
|
-
|
|
23
|
-
- **Module**: anything with an interface and an implementation.
|
|
24
|
-
- **Interface**: everything a caller must know to use the module correctly, including invariants, ordering constraints, error modes, configuration, and performance characteristics.
|
|
25
|
-
- **Implementation**: what sits inside the module.
|
|
26
|
-
- **Depth**: leverage at the interface. A module is deep when a large amount of behavior sits behind a small interface.
|
|
27
|
-
- **Seam**: a place where behavior can change without editing the caller.
|
|
28
|
-
- **Adapter**: a concrete thing that satisfies an interface at a seam.
|
|
29
|
-
- **Leverage**: capability callers get per unit of interface they learn.
|
|
30
|
-
- **Locality**: how much change, debugging, and verification concentrate in one place.
|
|
31
|
-
|
|
32
|
-
## Principles
|
|
33
|
-
|
|
34
|
-
- Depth is a property of the interface, not line count.
|
|
35
|
-
- The interface is the test surface.
|
|
36
|
-
- One adapter means a hypothetical seam; two adapters means a real one.
|
|
37
|
-
- Do not expose internal seams through the public interface just because tests use them.
|
|
38
|
-
- If deleting a module removes no complexity, it is probably a pass-through.
|
|
39
|
-
|
|
40
|
-
## Process
|
|
41
|
-
|
|
42
|
-
1. Identify the module, callers, and behavior the active stage is trying to stabilize.
|
|
43
|
-
2. Name the current interface, implementation, seams, and adapters.
|
|
44
|
-
3. Ask whether the interface is smaller than the behavior it unlocks.
|
|
45
|
-
4. Classify dependencies using `DEEPENING.md` when a module needs restructuring.
|
|
46
|
-
5. Use `DESIGN-IT-TWICE.md` when multiple viable interface shapes exist.
|
|
47
|
-
6. Record the result in the owning stage artifact. Use ADRs only for hard-to-reverse decisions.
|
|
48
|
-
|
|
49
|
-
## Output
|
|
50
|
-
|
|
51
|
-
Return:
|
|
52
|
-
|
|
53
|
-
- current module/interface shape
|
|
54
|
-
- proposed seam or interface change
|
|
55
|
-
- dependency strategy
|
|
56
|
-
- test surface
|
|
57
|
-
- risks and rejected alternatives
|
|
58
|
-
- recommended owning DevFlow stage
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: commit
|
|
3
|
-
description: "[Devflow] Smart Commit (Git Orchestration) - Stage files intelligently, write conventional imperative commit messages, and manage trunk-based versioning."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Smart Commit & Git Workflow Versioning
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
This is the Git orchestration and versioning master skill for Nexus-DevFlow. It enforces atomic commits, conventional commit formatting, intelligent staging, and safe trunk-based workflows. Commits are save points, branches are sandboxes, and Git history is durable documentation.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 1. Commit Discipline & The Conventional Commits Standard
|
|
15
|
-
|
|
16
|
-
Each commit should represent one atomic, self-contained change:
|
|
17
|
-
|
|
18
|
-
```text
|
|
19
|
-
<type>(<scope>): <short imperative summary>
|
|
20
|
-
|
|
21
|
-
[optional detailed body explaining WHY, not WHAT]
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Commit Types:
|
|
25
|
-
- `feat`: A new user-facing feature or capability
|
|
26
|
-
- `fix`: A bug fix
|
|
27
|
-
- `docs`: Documentation only changes
|
|
28
|
-
- `refactor`: A code change that neither fixes a bug nor adds a feature
|
|
29
|
-
- `test`: Adding missing tests or correcting existing tests
|
|
30
|
-
- `chore`: Maintenance, build tasks, package updates
|
|
31
|
-
|
|
32
|
-
### Formatting Rules:
|
|
33
|
-
- Use the imperative mood: `"feat(auth): add password reset flow"` (NOT `"added"` or `"adds"`).
|
|
34
|
-
- Never mix formatting/refactoring with behavioral feature changes in the same commit.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## 2. Trunk-Based Branching & Safety
|
|
39
|
-
|
|
40
|
-
- **Keep `main` deployable**: Feature branches (`feature/{slug}-{running-id}`) must be short-lived.
|
|
41
|
-
- **Never commit directly to `main` without review**: Use feature/fix branches during development.
|
|
42
|
-
- **Small, verified increments**: Test and verify before committing each checkpoint.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## 3. Execution Flow
|
|
47
|
-
|
|
48
|
-
1. Check `git status` and verify current branch.
|
|
49
|
-
2. Stage relevant files explicitly (`git add <files>` — avoid blindly running `git add .` if untracked temporary files exist).
|
|
50
|
-
3. Generate concise conventional commit message.
|
|
51
|
-
4. Execute `git commit` and capture commit hash.
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## Relationship To DevFlow 2.0
|
|
56
|
-
|
|
57
|
-
- **Classification**: Companion command & Version control support
|
|
58
|
-
- **Mainline integration**: Used during `40-execute` (checkpoint commits), `70-release` (final release commit).
|
|
59
|
-
- **Handoff**: `pr`, `merge`, `70-release`
|