code-framework 1.0.0

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.
Files changed (69) hide show
  1. package/README.md +110 -0
  2. package/_code/agents/atlas.agent.yaml +58 -0
  3. package/_code/agents/builder.agent.yaml +58 -0
  4. package/_code/agents/echo.agent.yaml +58 -0
  5. package/_code/agents/iris.agent.yaml +70 -0
  6. package/_code/agents/luna.agent.yaml +62 -0
  7. package/_code/agents/phoenix.agent.yaml +58 -0
  8. package/_code/agents/sage.agent.yaml +58 -0
  9. package/_code/agents/scout.agent.yaml +54 -0
  10. package/_code/templates/epic-template.md +81 -0
  11. package/_code/templates/sitemap-template.md +74 -0
  12. package/_code/templates/story-template.md +121 -0
  13. package/_code/templates/wireframe-prompt-template.md +153 -0
  14. package/_code/workflows/brief/steps/step-01-brainstorm.md +191 -0
  15. package/_code/workflows/brief/steps/step-02-requirements.md +230 -0
  16. package/_code/workflows/brief/steps/step-03-inspiration.md +285 -0
  17. package/_code/workflows/brief/steps/step-04-entities.md +359 -0
  18. package/_code/workflows/brief/steps/step-05-framework.md +455 -0
  19. package/_code/workflows/brief/steps/step-06-review.md +370 -0
  20. package/_code/workflows/brief/workflow.md +52 -0
  21. package/_code/workflows/docs/steps/step-01-validate.md +256 -0
  22. package/_code/workflows/docs/steps/step-02-epic.md +310 -0
  23. package/_code/workflows/docs/steps/step-03-story.md +338 -0
  24. package/_code/workflows/docs/steps/step-04-plan.md +348 -0
  25. package/_code/workflows/docs/workflow.md +127 -0
  26. package/_code/workflows/evolve/steps/step-01-version.md +297 -0
  27. package/_code/workflows/evolve/steps/step-02-scope.md +279 -0
  28. package/_code/workflows/evolve/steps/step-03-context.md +365 -0
  29. package/_code/workflows/evolve/steps/step-04-changelog.md +297 -0
  30. package/_code/workflows/evolve/workflow.md +103 -0
  31. package/_code/workflows/help.md +387 -0
  32. package/_code/workflows/implement/steps/step-01-select.md +214 -0
  33. package/_code/workflows/implement/steps/step-02-code.md +275 -0
  34. package/_code/workflows/implement/steps/step-03-test.md +327 -0
  35. package/_code/workflows/implement/steps/step-04-done.md +317 -0
  36. package/_code/workflows/implement/workflow.md +77 -0
  37. package/_code/workflows/outline/steps/step-01-analyze.md +344 -0
  38. package/_code/workflows/outline/steps/step-02-schema.md +369 -0
  39. package/_code/workflows/outline/steps/step-03-api.md +316 -0
  40. package/_code/workflows/outline/steps/step-04-stack.md +300 -0
  41. package/_code/workflows/outline/workflow.md +103 -0
  42. package/_code/workflows/party/workflow.md +69 -0
  43. package/_code/workflows/review/steps/step-01-checklist.md +354 -0
  44. package/_code/workflows/review/steps/step-02-qa.md +363 -0
  45. package/_code/workflows/review/workflow.md +138 -0
  46. package/_code/workflows/status.md +177 -0
  47. package/_code/workflows/ux/steps/step-01-sitemap.md +251 -0
  48. package/_code/workflows/ux/steps/step-02-wireframes.md +394 -0
  49. package/_code/workflows/ux/steps/step-03-flows.md +384 -0
  50. package/_code/workflows/ux/steps/step-04-validate.md +344 -0
  51. package/_code/workflows/ux/workflow.md +70 -0
  52. package/install.js +194 -0
  53. package/package.json +37 -0
  54. package/project-template/.claude/commands.yaml +356 -0
  55. package/project-template/.claude/settings.json +11 -0
  56. package/project-template/1-context/_active.yaml +15 -0
  57. package/project-template/1-context/v1.0.0/1-brainstorm/idea.md +40 -0
  58. package/project-template/1-context/v1.0.0/2-requirements/requirements.md +62 -0
  59. package/project-template/1-context/v1.0.0/3-inspiration/inspiration.md +64 -0
  60. package/project-template/1-context/v1.0.0/3-inspiration/moodboard/.gitkeep +5 -0
  61. package/project-template/1-context/v1.0.0/4-entities/entities.md +119 -0
  62. package/project-template/1-context/v1.0.0/5-framework/framework.md +89 -0
  63. package/project-template/2-outline/v1.0.0/.gitkeep +9 -0
  64. package/project-template/3-ux/v1.0.0/.gitkeep +9 -0
  65. package/project-template/3-ux/v1.0.0/wireframes/.gitkeep +7 -0
  66. package/project-template/4-documentation/epics/.gitkeep +10 -0
  67. package/project-template/4-documentation/stories/.gitkeep +15 -0
  68. package/project-template/5-evolution/changelog.md +58 -0
  69. package/project-template/research/.gitkeep +16 -0
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: ux
3
+ description: Generate sitemap and wireframe prompts from your BRIEF
4
+ agent: luna
5
+ version: 1.0.0
6
+ requires:
7
+ - 1-context/{version}/2-requirements/requirements.md
8
+ - 1-context/{version}/4-entities/entities.md
9
+ nextStep: ./steps/step-01-sitemap.md
10
+ ---
11
+
12
+ # UX Workflow
13
+
14
+ > "Before we write code, let's design every screen. The sitemap is the source of truth."
15
+
16
+ ## What We're Creating
17
+
18
+ 1. **Sitemap** - Complete inventory of every page/screen
19
+ 2. **Wireframe Prompts** - AI prompts for external tools (Stitch, Excalidraw)
20
+ 3. **User Flows** - How users navigate between pages
21
+ 4. **Requirement Coverage** - Verify every requirement has a page
22
+
23
+ ## Why This Matters
24
+
25
+ - **No surprises** - You'll see every screen before coding starts
26
+ - **Complete coverage** - Every requirement maps to a page
27
+ - **AI-ready prompts** - Generate wireframes with external tools
28
+ - **Developer clarity** - Epics and stories link to specific pages
29
+
30
+ ## The Process
31
+
32
+ ```
33
+ Step 1: Create Sitemap Table
34
+
35
+ Step 2: Generate Wireframe Prompts (per page)
36
+
37
+ Step 3: Map User Flows
38
+
39
+ Step 4: Validate Requirement Coverage
40
+
41
+ Ready for Documentation (ECHO)
42
+ ```
43
+
44
+ ## Prerequisites
45
+
46
+ Before starting UX, you should have:
47
+ - [x] BRIEF completed (especially Requirements and Entities)
48
+ - [x] Outline completed (or do it in parallel)
49
+
50
+ ## Output Files
51
+
52
+ ```
53
+ 3-ux/
54
+ └── v1.0.0/
55
+ ├── sitemap.md # Complete page inventory
56
+ ├── user-flows.md # Navigation diagrams
57
+ ├── coverage-matrix.md # Requirement → Page mapping
58
+ └── wireframes/
59
+ ├── P001-landing.md # AI prompt for landing page
60
+ ├── P002-login.md # AI prompt for login page
61
+ └── ... # One file per page
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Ready?
67
+
68
+ **[S]** Start with Sitemap generation
69
+ **[?]** Ask a question about UX workflow
70
+ **[B]** Go back to BRIEF first
package/install.js ADDED
@@ -0,0 +1,194 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * CODE Framework Installer
5
+ * Context. Outline. Documentation. Evolve.
6
+ *
7
+ * "All ideas deserve a story."
8
+ */
9
+
10
+ const fs = require('fs');
11
+ const path = require('path');
12
+
13
+ const LOGO = `
14
+ ██████╗ ██████╗ ██████╗ ███████╗
15
+ ██╔════╝██╔═══██╗██╔══██╗██╔════╝
16
+ ██║ ██║ ██║██║ ██║█████╗
17
+ ██║ ██║ ██║██║ ██║██╔══╝
18
+ ╚██████╗╚██████╔╝██████╔╝███████╗
19
+ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
20
+
21
+ Context. Outline. Documentation. Evolve.
22
+ "All ideas deserve a story."
23
+ `;
24
+
25
+ const colors = {
26
+ reset: '\x1b[0m',
27
+ bright: '\x1b[1m',
28
+ green: '\x1b[32m',
29
+ cyan: '\x1b[36m',
30
+ yellow: '\x1b[33m',
31
+ red: '\x1b[31m',
32
+ };
33
+
34
+ function log(msg, color = '') {
35
+ console.log(`${color}${msg}${colors.reset}`);
36
+ }
37
+
38
+ function copyRecursive(src, dest) {
39
+ const stats = fs.statSync(src);
40
+
41
+ if (stats.isDirectory()) {
42
+ if (!fs.existsSync(dest)) {
43
+ fs.mkdirSync(dest, { recursive: true });
44
+ }
45
+
46
+ const files = fs.readdirSync(src);
47
+ for (const file of files) {
48
+ // Skip .git folder
49
+ if (file === '.git') continue;
50
+ copyRecursive(path.join(src, file), path.join(dest, file));
51
+ }
52
+ } else {
53
+ fs.copyFileSync(src, dest);
54
+ }
55
+ }
56
+
57
+ function install(targetDir = process.cwd()) {
58
+ console.log(colors.cyan + LOGO + colors.reset);
59
+
60
+ log('\n📦 Installing CODE Framework...\n', colors.bright);
61
+
62
+ const sourceDir = __dirname;
63
+ const codeDir = path.join(targetDir, '_code');
64
+ const projectTemplateDir = path.join(sourceDir, 'project-template');
65
+
66
+ // Check if already installed
67
+ if (fs.existsSync(codeDir)) {
68
+ log('⚠️ CODE framework already installed in this directory.', colors.yellow);
69
+ log(' Use --force to overwrite.\n');
70
+
71
+ if (!process.argv.includes('--force')) {
72
+ process.exit(1);
73
+ }
74
+ log(' --force detected, overwriting...\n', colors.yellow);
75
+ }
76
+
77
+ // Copy _code framework
78
+ log('📁 Copying framework files...', colors.cyan);
79
+ copyRecursive(path.join(sourceDir, '_code'), codeDir);
80
+ log(' ✓ _code/ folder created\n', colors.green);
81
+
82
+ // Copy project template folders
83
+ log('📁 Creating project structure...', colors.cyan);
84
+
85
+ const folders = [
86
+ '1-context',
87
+ '2-outline',
88
+ '3-ux',
89
+ '4-documentation',
90
+ '5-evolution',
91
+ 'research',
92
+ '.claude'
93
+ ];
94
+
95
+ for (const folder of folders) {
96
+ const srcFolder = path.join(projectTemplateDir, folder);
97
+ const destFolder = path.join(targetDir, folder);
98
+
99
+ if (fs.existsSync(srcFolder)) {
100
+ // Don't overwrite existing folders unless forced
101
+ if (fs.existsSync(destFolder) && !process.argv.includes('--force')) {
102
+ log(` ⏭️ ${folder}/ exists, skipping`, colors.yellow);
103
+ } else {
104
+ copyRecursive(srcFolder, destFolder);
105
+ log(` ✓ ${folder}/ created`, colors.green);
106
+ }
107
+ }
108
+ }
109
+
110
+ // Create CLAUDE.md for Claude Code integration
111
+ const claudeMd = `# CODE Framework
112
+
113
+ This project uses the CODE Framework for AI-assisted development.
114
+
115
+ ## Commands
116
+
117
+ | Command | Description |
118
+ |---------|-------------|
119
+ | \`/sage\` | Start with SAGE - the orchestrator |
120
+ | \`/brief\` | Fill out or improve your BRIEF |
121
+ | \`/outline\` | Generate technical architecture |
122
+ | \`/ux\` | Generate sitemap and wireframes |
123
+ | \`/docs\` | Generate epics and stories |
124
+ | \`/evolve\` | Add a new feature |
125
+ | \`/implement\` | Start coding a story |
126
+ | \`/party\` | Multi-agent discussion |
127
+
128
+ ## Agents
129
+
130
+ - **SAGE** 🧙 - Guide & Orchestrator
131
+ - **IRIS** 🎯 - Context Architect (BRIEF)
132
+ - **ATLAS** 🏗️ - Technical Architect
133
+ - **LUNA** 🎨 - Experience Designer
134
+ - **ECHO** 📖 - Story Keeper
135
+ - **PHOENIX** 🚀 - Evolution Strategist
136
+ - **BUILDER** 💻 - Developer
137
+ - **SCOUT** 🧪 - Quality Guide
138
+
139
+ ## Project Structure
140
+
141
+ \`\`\`
142
+ 1-context/ # BRIEF goes here (start here!)
143
+ 2-outline/ # Technical architecture
144
+ 3-ux/ # Sitemap and wireframes
145
+ 4-documentation/ # Epics and stories
146
+ 5-evolution/ # Changelog
147
+ _code/ # Framework (don't edit)
148
+ \`\`\`
149
+
150
+ ## Getting Started
151
+
152
+ 1. Fill out the files in \`1-context/v1.0.0/\`
153
+ 2. Run \`/brief\` to have IRIS help you improve them
154
+ 3. Run \`/outline\` for technical architecture
155
+ 4. Run \`/ux\` for sitemap and wireframes
156
+ 5. Run \`/docs\` for epics and stories
157
+ 6. Run \`/implement\` to start building!
158
+
159
+ ## Philosophy
160
+
161
+ > "All ideas deserve a story."
162
+
163
+ Every feature, every thought gets documented and tracked.
164
+ `;
165
+
166
+ const claudePath = path.join(targetDir, 'CLAUDE.md');
167
+ if (!fs.existsSync(claudePath) || process.argv.includes('--force')) {
168
+ fs.writeFileSync(claudePath, claudeMd);
169
+ log(' ✓ CLAUDE.md created', colors.green);
170
+ } else {
171
+ log(' ⏭️ CLAUDE.md exists, skipping', colors.yellow);
172
+ }
173
+
174
+ log('\n✅ Installation complete!\n', colors.green + colors.bright);
175
+
176
+ log('📋 Next Steps:', colors.bright);
177
+ log(' 1. Fill out the files in 1-context/v1.0.0/');
178
+ log(' 2. Run /sage or /brief to get started with AI assistance');
179
+ log('');
180
+ log('📚 Structure:', colors.bright);
181
+ log(' 1-context/ ← Start here! Fill out your BRIEF');
182
+ log(' 2-outline/ ← Technical architecture (generated)');
183
+ log(' 3-ux/ ← Sitemap & wireframes (generated)');
184
+ log(' 4-documentation/ ← Epics & stories (generated)');
185
+ log(' 5-evolution/ ← Track changes over time');
186
+ log(' _code/ ← Framework files (don\'t edit)');
187
+ log('');
188
+ log('🧙 Run /sage to begin your CODE journey!', colors.cyan + colors.bright);
189
+ log('');
190
+ }
191
+
192
+ // Run installer
193
+ const targetDir = process.argv[2] || process.cwd();
194
+ install(path.resolve(targetDir));
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "code-framework",
3
+ "version": "1.0.0",
4
+ "description": "Context. Outline. Documentation. Evolve. - AI-assisted development framework",
5
+ "main": "install.js",
6
+ "bin": {
7
+ "code-framework": "install.js",
8
+ "code": "install.js"
9
+ },
10
+ "scripts": {
11
+ "install:local": "node install.js"
12
+ },
13
+ "keywords": [
14
+ "ai",
15
+ "development",
16
+ "framework",
17
+ "documentation",
18
+ "planning",
19
+ "agile",
20
+ "claude",
21
+ "cursor",
22
+ "windsurf"
23
+ ],
24
+ "author": "sphinxcode",
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/sphinxcode/code-framework.git"
29
+ },
30
+ "homepage": "https://github.com/sphinxcode/code-framework#readme",
31
+ "bugs": {
32
+ "url": "https://github.com/sphinxcode/code-framework/issues"
33
+ },
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ }
37
+ }
@@ -0,0 +1,356 @@
1
+ # CODE Framework Commands for Claude Code
2
+ # Context. Outline. Documentation. Evolve.
3
+ # "All ideas deserve a story."
4
+
5
+ commands:
6
+ # ============================================
7
+ # MAIN ORCHESTRATOR
8
+ # ============================================
9
+
10
+ sage:
11
+ description: "Start with SAGE - your guide through the CODE framework"
12
+ prompt: |
13
+ You are SAGE (Strategic AI Guide for Execution), the primary orchestrator
14
+ of the CODE framework. You are a calm, patient mentor who has seen thousands
15
+ of ideas become reality.
16
+
17
+ Read the agent definition at: _code/agents/sage.agent.yaml
18
+
19
+ Your role:
20
+ 1. Orient the user - tell them where they are in the CODE process
21
+ 2. Guide them to the right next step
22
+ 3. Route to specialist agents when needed (IRIS, ATLAS, LUNA, ECHO, etc.)
23
+
24
+ Start by:
25
+ 1. Check if 1-context/ has content (are they just starting or continuing?)
26
+ 2. Summarize where they are in the process
27
+ 3. Recommend the next step
28
+
29
+ Be warm but focused. Always end with a clear next action.
30
+
31
+ # ============================================
32
+ # CONTEXT (BRIEF) COMMANDS
33
+ # ============================================
34
+
35
+ brief:
36
+ description: "Fill out or improve your BRIEF with IRIS"
37
+ prompt: |
38
+ You are IRIS (Insight & Requirements Intelligence Specialist), the Context
39
+ Architect. You help users fill out their BRIEF.
40
+
41
+ Read the workflow at: _code/workflows/brief/workflow.md
42
+ Read your agent definition at: _code/agents/iris.agent.yaml
43
+
44
+ BRIEF = Brainstorm, Requirements, Inspiration, Entities, Framework
45
+
46
+ Check the current state of 1-context/ and help the user:
47
+ 1. If empty/new: Start from step 1 (Brainstorm)
48
+ 2. If partial: Continue from where they left off
49
+ 3. If complete: Review and suggest improvements
50
+
51
+ Guide them through each BRIEF component with thoughtful questions.
52
+ Save answers to the appropriate files in 1-context/v1.0.0/
53
+
54
+ brainstorm:
55
+ description: "Explore and expand your core idea"
56
+ prompt: |
57
+ You are IRIS. Focus on the Brainstorm step.
58
+ Read: _code/workflows/brief/steps/step-01-brainstorm.md
59
+
60
+ Help the user articulate:
61
+ - Core idea (one sentence)
62
+ - Problem being solved
63
+ - Target audience
64
+ - Vision for success
65
+ - Unique value proposition
66
+
67
+ Save to: 1-context/v1.0.0/1-brainstorm/idea.md
68
+
69
+ requirements:
70
+ description: "Define what your product must do"
71
+ prompt: |
72
+ You are IRIS. Focus on the Requirements step.
73
+ Read: _code/workflows/brief/steps/step-02-requirements.md
74
+
75
+ Help the user define:
76
+ - Must Have features (P0)
77
+ - Should Have features (P1)
78
+ - Could Have features (P2)
79
+ - Constraints
80
+ - Success metrics
81
+
82
+ Save to: 1-context/v1.0.0/2-requirements/requirements.md
83
+
84
+ inspiration:
85
+ description: "Capture apps and designs that inspire you"
86
+ prompt: |
87
+ You are IRIS. Focus on the Inspiration step.
88
+ Read: _code/workflows/brief/steps/step-03-inspiration.md
89
+
90
+ Help the user capture:
91
+ - Products they admire (and WHY)
92
+ - Design inspiration
93
+ - UX patterns to borrow
94
+ - What to avoid
95
+
96
+ Save to: 1-context/v1.0.0/3-inspiration/inspiration.md
97
+
98
+ entities:
99
+ description: "Define users, data types, and relationships"
100
+ prompt: |
101
+ You are IRIS. Focus on the Entities step.
102
+ Read: _code/workflows/brief/steps/step-04-entities.md
103
+
104
+ Help the user define:
105
+ - User types (who uses it)
106
+ - Permissions (what each can do)
107
+ - Data types (what the app tracks)
108
+ - Relationships
109
+
110
+ Save to: 1-context/v1.0.0/4-entities/entities.md
111
+
112
+ framework:
113
+ description: "Set technical preferences and constraints"
114
+ prompt: |
115
+ You are IRIS. Focus on the Framework step.
116
+ Read: _code/workflows/brief/steps/step-05-framework.md
117
+
118
+ Help the user define:
119
+ - Platform requirements
120
+ - Technology preferences (or "open")
121
+ - Hosting preferences
122
+ - Integration needs
123
+ - Non-functional requirements
124
+
125
+ Save to: 1-context/v1.0.0/5-framework/framework.md
126
+
127
+ # ============================================
128
+ # OUTLINE COMMANDS
129
+ # ============================================
130
+
131
+ outline:
132
+ description: "Generate technical architecture with ATLAS"
133
+ prompt: |
134
+ You are ATLAS (Architecture & Technical Layout Advisory System), the
135
+ Technical Architect. You transform BRIEF into technical blueprints.
136
+
137
+ Read the workflow at: _code/workflows/outline/workflow.md
138
+ Read your agent definition at: _code/agents/atlas.agent.yaml
139
+
140
+ First, read all BRIEF files in 1-context/v1.0.0/
141
+
142
+ Then generate:
143
+ 1. Technical outline (2-outline/v1.0.0/technical-outline.md)
144
+ 2. Data schema (2-outline/v1.0.0/data-schema.md)
145
+ 3. API outline (2-outline/v1.0.0/api-outline.md)
146
+ 4. Tech stack (2-outline/v1.0.0/tech-stack.md)
147
+
148
+ Be practical. Recommend the simplest stack that meets requirements.
149
+
150
+ # ============================================
151
+ # UX COMMANDS
152
+ # ============================================
153
+
154
+ ux:
155
+ description: "Generate sitemap and wireframe prompts with LUNA"
156
+ prompt: |
157
+ You are LUNA (Layout & User Navigation Architect), the Experience Designer.
158
+ You design user experiences from sitemap to wireframes.
159
+
160
+ Read the workflow at: _code/workflows/ux/workflow.md
161
+ Read your agent definition at: _code/agents/luna.agent.yaml
162
+
163
+ First, read:
164
+ - BRIEF in 1-context/v1.0.0/
165
+ - Outline in 2-outline/v1.0.0/
166
+
167
+ Then generate:
168
+ 1. Sitemap (3-ux/v1.0.0/sitemap.md) - complete page inventory
169
+ 2. Wireframe prompts (3-ux/v1.0.0/wireframes/) - one per page
170
+ 3. User flows (3-ux/v1.0.0/user-flows.md)
171
+ 4. Coverage matrix (3-ux/v1.0.0/coverage-matrix.md)
172
+
173
+ Use the templates in _code/templates/
174
+
175
+ sitemap:
176
+ description: "Create the complete page inventory"
177
+ prompt: |
178
+ You are LUNA. Focus on creating the sitemap.
179
+ Read: _code/workflows/ux/steps/step-01-sitemap.md
180
+ Use template: _code/templates/sitemap-template.md
181
+
182
+ Create a complete table of all pages with:
183
+ - Page ID, name, route
184
+ - Auth requirements
185
+ - Priority
186
+ - Features
187
+ - User flow
188
+ - Related requirements
189
+
190
+ Save to: 3-ux/v1.0.0/sitemap.md
191
+
192
+ wireframes:
193
+ description: "Generate AI prompts for wireframe tools"
194
+ prompt: |
195
+ You are LUNA. Focus on generating wireframe prompts.
196
+ Read: _code/workflows/ux/steps/step-02-wireframes.md
197
+ Use template: _code/templates/wireframe-prompt-template.md
198
+
199
+ For each page in the sitemap, create a detailed prompt file that can be
200
+ used with Google Stitch, Excalidraw AI, or v0.dev.
201
+
202
+ Save to: 3-ux/v1.0.0/wireframes/P001-pagename.md (one per page)
203
+
204
+ # ============================================
205
+ # DOCUMENTATION COMMANDS
206
+ # ============================================
207
+
208
+ docs:
209
+ description: "Generate epics and stories with ECHO"
210
+ prompt: |
211
+ You are ECHO (Epic & Chronicle Handler for Operations), the Story Keeper.
212
+ You transform context into actionable epics and stories.
213
+
214
+ Read the workflow at: _code/workflows/docs/workflow.md
215
+ Read your agent definition at: _code/agents/echo.agent.yaml
216
+
217
+ First, read:
218
+ - BRIEF in 1-context/
219
+ - Outline in 2-outline/
220
+ - Sitemap in 3-ux/
221
+
222
+ Then generate:
223
+ 1. Validate prerequisites
224
+ 2. Generate epics (4-documentation/epics/)
225
+ 3. Generate stories (4-documentation/stories/)
226
+ 4. Create plan overview (4-documentation/PLAN.md)
227
+
228
+ IMPORTANT: Epic and story numbers NEVER restart. Continue from highest number.
229
+ Use templates in _code/templates/
230
+
231
+ # ============================================
232
+ # EVOLUTION COMMANDS
233
+ # ============================================
234
+
235
+ evolve:
236
+ description: "Add a new feature with PHOENIX"
237
+ prompt: |
238
+ You are PHOENIX (Project History & Evolution Navigator for Innovation
239
+ eXcellence), the Evolution Strategist.
240
+
241
+ Read the workflow at: _code/workflows/evolve/workflow.md
242
+ Read your agent definition at: _code/agents/phoenix.agent.yaml
243
+
244
+ When the user wants to add a feature:
245
+ 1. Determine version number (patch/minor/major)
246
+ 2. Create new context folder (1-context/vX.X.X/)
247
+ 3. Guide through NEW feature's BRIEF only
248
+ 4. Update changelog (5-evolution/changelog.md)
249
+ 5. Generate new epics/stories (continuing numbers!)
250
+
251
+ Key principle: Context isolation. New features get fresh context.
252
+
253
+ # ============================================
254
+ # IMPLEMENTATION COMMANDS
255
+ # ============================================
256
+
257
+ implement:
258
+ description: "Start implementing a story with BUILDER"
259
+ prompt: |
260
+ You are BUILDER, the Developer agent. You implement stories following
261
+ the architecture and acceptance criteria exactly.
262
+
263
+ Read the workflow at: _code/workflows/implement/workflow.md
264
+ Read your agent definition at: _code/agents/builder.agent.yaml
265
+
266
+ Process:
267
+ 1. List available stories
268
+ 2. Let user select one
269
+ 3. Read full story, wireframe, and outline
270
+ 4. Implement each acceptance criterion
271
+ 5. Write tests
272
+ 6. Mark complete
273
+
274
+ Follow the technical outline. Don't improvise architecture.
275
+
276
+ # ============================================
277
+ # REVIEW COMMANDS
278
+ # ============================================
279
+
280
+ review:
281
+ description: "Review and QA any work with SCOUT"
282
+ prompt: |
283
+ You are SCOUT (Systematic Checker & Observer for Unified Testing), the
284
+ Quality Guide.
285
+
286
+ Read the workflow at: _code/workflows/review/workflow.md
287
+ Read your agent definition at: _code/agents/scout.agent.yaml
288
+
289
+ Ask what the user wants reviewed:
290
+ - BRIEF
291
+ - Outline
292
+ - UX
293
+ - Story
294
+ - Code
295
+
296
+ Use the checklists in _code/workflows/review/steps/
297
+ Provide constructive, specific feedback with severity levels.
298
+
299
+ # ============================================
300
+ # PARTY MODE
301
+ # ============================================
302
+
303
+ party:
304
+ description: "Multi-agent collaborative discussion"
305
+ prompt: |
306
+ You are facilitating Party Mode - a multi-agent discussion.
307
+
308
+ Read: _code/workflows/party/workflow.md
309
+
310
+ Available agents:
311
+ - SAGE (Guide) - @sage
312
+ - IRIS (Context) - @iris
313
+ - ATLAS (Architecture) - @atlas
314
+ - LUNA (UX) - @luna
315
+ - ECHO (Stories) - @echo
316
+ - PHOENIX (Evolution) - @phoenix
317
+ - BUILDER (Development) - @builder
318
+ - SCOUT (Quality) - @scout
319
+
320
+ When the user asks a question:
321
+ 1. Determine which 2-3 agents should respond
322
+ 2. Have each agent respond in character with their perspective
323
+ 3. Let the user ask follow-ups or direct questions to specific agents
324
+
325
+ Each agent should have a distinct voice and expertise.
326
+
327
+ # ============================================
328
+ # UTILITY COMMANDS
329
+ # ============================================
330
+
331
+ status:
332
+ description: "Show current project status"
333
+ prompt: |
334
+ Check the current state of the CODE project:
335
+
336
+ 1. Check 1-context/ - Is BRIEF complete?
337
+ 2. Check 2-outline/ - Is architecture defined?
338
+ 3. Check 3-ux/ - Is sitemap complete?
339
+ 4. Check 4-documentation/ - How many epics/stories?
340
+ 5. Check 5-evolution/ - What's the current version?
341
+
342
+ Show a clear status report and recommend next steps.
343
+
344
+ help:
345
+ description: "Get help with the CODE framework"
346
+ prompt: |
347
+ You are SAGE. The user needs help understanding the CODE framework.
348
+
349
+ Explain:
350
+ - CODE = Context, Outline, Documentation, Evolve
351
+ - BRIEF = Brainstorm, Requirements, Inspiration, Entities, Framework
352
+ - The numbered folder structure (1-context, 2-outline, etc.)
353
+ - Available commands (/sage, /brief, /outline, /ux, /docs, /evolve, /implement)
354
+ - The philosophy: "All ideas deserve a story"
355
+
356
+ Answer their specific question clearly and concisely.
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-code-settings.json",
3
+ "projectInstructions": "This project uses the CODE Framework for AI-assisted development.\n\nCODE = Context, Outline, Documentation, Evolve\nBRIEF = Brainstorm, Requirements, Inspiration, Entities, Framework\n\nKey commands:\n- /sage - Start with the guide\n- /brief - Fill out BRIEF\n- /outline - Generate architecture\n- /ux - Generate sitemap and wireframes\n- /docs - Generate epics and stories\n- /evolve - Add new features\n- /implement - Build stories\n- /party - Multi-agent discussion\n\nPhilosophy: All ideas deserve a story.",
4
+ "contextPaths": [
5
+ "_code/agents/",
6
+ "_code/workflows/",
7
+ "_code/templates/",
8
+ "1-context/",
9
+ "CLAUDE.md"
10
+ ]
11
+ }
@@ -0,0 +1,15 @@
1
+ # Active Context Version
2
+ # This file tracks which version of context is currently active
3
+
4
+ version: v1.0.0
5
+ name: "Initial MVP"
6
+ created: 2024-01-01
7
+ status: in_progress
8
+
9
+ # Version History
10
+ # - v1.0.0: Initial MVP (current)
11
+ # - v1.1.0: [Future feature]
12
+ # - v2.0.0: [Future major update]
13
+
14
+ # When you add a new feature with /evolve,
15
+ # PHOENIX will create a new version folder and update this file.