agileflow 2.42.0 → 2.43.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.
- package/package.json +1 -1
- package/src/core/agents/accessibility.md +8 -0
- package/src/core/agents/adr-writer.md +8 -0
- package/src/core/agents/analytics.md +8 -0
- package/src/core/agents/api.md +8 -2
- package/src/core/agents/ci.md +8 -0
- package/src/core/agents/compliance.md +8 -0
- package/src/core/agents/configuration/archival.md +23 -1
- package/src/core/agents/configuration/attribution.md +22 -1
- package/src/core/agents/configuration/ci.md +23 -1
- package/src/core/agents/configuration/git-config.md +23 -1
- package/src/core/agents/configuration/hooks.md +22 -1
- package/src/core/agents/configuration/precompact.md +8 -0
- package/src/core/agents/configuration/status-line.md +93 -13
- package/src/core/agents/configuration/verify.md +23 -1
- package/src/core/agents/database.md +8 -2
- package/src/core/agents/datamigration.md +8 -0
- package/src/core/agents/design.md +8 -0
- package/src/core/agents/devops.md +8 -2
- package/src/core/agents/documentation.md +8 -0
- package/src/core/agents/epic-planner.md +8 -0
- package/src/core/agents/integrations.md +8 -0
- package/src/core/agents/mentor.md +8 -3
- package/src/core/agents/mobile.md +8 -0
- package/src/core/agents/monitoring.md +8 -0
- package/src/core/agents/multi-expert.md +8 -0
- package/src/core/agents/performance.md +8 -2
- package/src/core/agents/product.md +8 -0
- package/src/core/agents/qa.md +8 -0
- package/src/core/agents/readme-updater.md +8 -0
- package/src/core/agents/refactor.md +8 -2
- package/src/core/agents/research.md +8 -0
- package/src/core/agents/security.md +8 -2
- package/src/core/agents/testing.md +8 -0
- package/src/core/agents/ui.md +8 -2
- package/src/core/commands/adr.md +2 -13
- package/src/core/commands/agent.md +2 -13
- package/src/core/commands/assign.md +2 -13
- package/src/core/commands/auto.md +2 -13
- package/src/core/commands/babysit.md +94 -88
- package/src/core/commands/baseline.md +2 -13
- package/src/core/commands/blockers.md +4 -13
- package/src/core/commands/board.md +4 -13
- package/src/core/commands/deps.md +4 -15
- package/src/core/commands/docs.md +2 -15
- package/src/core/commands/epic.md +4 -15
- package/src/core/commands/help.md +3 -14
- package/src/core/commands/metrics.md +4 -15
- package/src/core/commands/packages.md +3 -14
- package/src/core/commands/pr.md +4 -13
- package/src/core/commands/readme-sync.md +7 -24
- package/src/core/commands/research.md +3 -14
- package/src/core/commands/retro.md +4 -15
- package/src/core/commands/sprint.md +8 -0
- package/src/core/commands/status.md +5 -14
- package/src/core/commands/story-validate.md +3 -14
- package/src/core/commands/story.md +17 -17
- package/src/core/commands/template.md +2 -15
- package/src/core/commands/tests.md +2 -15
- package/src/core/commands/update.md +2 -15
- package/src/core/commands/validate-expertise.md +2 -15
- package/src/core/commands/velocity.md +4 -15
- package/src/core/commands/verify.md +4 -15
- package/src/core/templates/agileflow-configure.js +123 -2
- package/src/core/templates/agileflow-metadata.json +12 -0
- package/src/core/templates/agileflow-statusline.sh +238 -44
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js monitoring
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-MONITORING (Monitoring & Observability Specialist)
|
|
10
18
|
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep, Task, TaskOutput
|
|
|
5
5
|
model: sonnet
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js multi-expert
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START
|
|
9
17
|
This section is extracted by the PreCompact hook to preserve essential context across conversation compacts.
|
|
10
18
|
-->
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js performance
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-PERFORMANCE (Performance Specialist)
|
|
10
18
|
|
|
@@ -391,8 +399,6 @@ SLASH COMMANDS
|
|
|
391
399
|
|
|
392
400
|
PLAN MODE FOR PERFORMANCE OPTIMIZATION
|
|
393
401
|
|
|
394
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
395
|
-
|
|
396
402
|
**Performance work requires measurement first**. Always plan before optimizing:
|
|
397
403
|
|
|
398
404
|
| Situation | Action |
|
package/src/core/agents/qa.md
CHANGED
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js readme-updater
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
|
|
10
18
|
WHO: AG-README-UPDATER - README & Documentation Specialist
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js refactor
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
|
|
10
18
|
WHO: AG-REFACTOR - Refactoring Specialist
|
|
@@ -454,8 +462,6 @@ SLASH COMMANDS
|
|
|
454
462
|
|
|
455
463
|
PLAN MODE FOR REFACTORING (ALWAYS USE)
|
|
456
464
|
|
|
457
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
458
|
-
|
|
459
465
|
**Refactoring REQUIRES planning**. Always enter plan mode before refactoring:
|
|
460
466
|
|
|
461
467
|
| Situation | Action |
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Glob, Grep, WebFetch, WebSearch
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js research
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
|
|
10
18
|
WHO: RESEARCH - Research Agent
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js security
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
You are AG-SECURITY, the Security & Vulnerability Specialist for AgileFlow projects.
|
|
9
17
|
|
|
10
18
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -373,8 +381,6 @@ AGENT COORDINATION
|
|
|
373
381
|
|
|
374
382
|
PLAN MODE FOR SECURITY IMPLEMENTATIONS
|
|
375
383
|
|
|
376
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
377
|
-
|
|
378
384
|
**Security changes require careful planning**. Always plan before implementing:
|
|
379
385
|
|
|
380
386
|
| Situation | Action |
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js testing
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
You are AG-TESTING, the Testing Specialist for AgileFlow projects.
|
|
9
17
|
|
|
10
18
|
<!-- COMPACT_SUMMARY_START -->
|
package/src/core/agents/ui.md
CHANGED
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: haiku
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js ui
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
**AG-UI COMPACT SUMMARY**
|
|
10
18
|
|
|
@@ -691,8 +699,6 @@ RESEARCH INTEGRATION
|
|
|
691
699
|
|
|
692
700
|
PLAN MODE FOR COMPLEX UI WORK
|
|
693
701
|
|
|
694
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
695
|
-
|
|
696
702
|
Before implementing, evaluate complexity:
|
|
697
703
|
|
|
698
704
|
| Situation | Action |
|
package/src/core/commands/adr.md
CHANGED
|
@@ -7,21 +7,10 @@ argument-hint: NUMBER=<4-digit> TITLE=<text> CONTEXT=<text> DECISION=<text> CONS
|
|
|
7
7
|
|
|
8
8
|
Create a new Architecture Decision Record.
|
|
9
9
|
|
|
10
|
-
## STEP 0:
|
|
10
|
+
## STEP 0: Gather Context
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
node -
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = 'docs/09-agents/session-state.json';
|
|
16
|
-
if (fs.existsSync(path)) {
|
|
17
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
18
|
-
const cmd = { name: 'adr', activated_at: new Date().toISOString(), state: {} };
|
|
19
|
-
state.active_commands = state.active_commands || [];
|
|
20
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
21
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
22
|
-
console.log('✅ adr command activated');
|
|
23
|
-
}
|
|
24
|
-
"
|
|
13
|
+
node scripts/obtain-context.js adr
|
|
25
14
|
```
|
|
26
15
|
|
|
27
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -7,21 +7,10 @@ argument-hint: AGENT_ID=<id> ROLE=<role> [TOOLS=<list>] [SCOPE=<dirs>]
|
|
|
7
7
|
|
|
8
8
|
Onboard a new agent with profile and system prompt.
|
|
9
9
|
|
|
10
|
-
## STEP 0:
|
|
10
|
+
## STEP 0: Gather Context
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
node -
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = 'docs/09-agents/session-state.json';
|
|
16
|
-
if (fs.existsSync(path)) {
|
|
17
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
18
|
-
const cmd = { name: 'agent', activated_at: new Date().toISOString(), state: {} };
|
|
19
|
-
state.active_commands = state.active_commands || [];
|
|
20
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
21
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
22
|
-
console.log('✅ agent command activated');
|
|
23
|
-
}
|
|
24
|
-
"
|
|
13
|
+
node scripts/obtain-context.js agent
|
|
25
14
|
```
|
|
26
15
|
|
|
27
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -7,21 +7,10 @@ argument-hint: STORY=<US-ID> NEW_OWNER=<id> [NEW_STATUS=<status>] [NOTE=<text>]
|
|
|
7
7
|
|
|
8
8
|
Assign or reassign a story to an owner with status update.
|
|
9
9
|
|
|
10
|
-
## STEP 0:
|
|
10
|
+
## STEP 0: Gather Context
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
node -
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = 'docs/09-agents/session-state.json';
|
|
16
|
-
if (fs.existsSync(path)) {
|
|
17
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
18
|
-
const cmd = { name: 'assign', activated_at: new Date().toISOString(), state: {} };
|
|
19
|
-
state.active_commands = state.active_commands || [];
|
|
20
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
21
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
22
|
-
console.log('✅ assign command activated');
|
|
23
|
-
}
|
|
24
|
-
"
|
|
13
|
+
node scripts/obtain-context.js assign
|
|
25
14
|
```
|
|
26
15
|
|
|
27
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -6,21 +6,10 @@ description: Auto-generate stories from PRDs, mockups, or specs
|
|
|
6
6
|
|
|
7
7
|
Automatically generate user stories from product artifacts like PRDs, mockups, or API docs.
|
|
8
8
|
|
|
9
|
-
## STEP 0:
|
|
9
|
+
## STEP 0: Gather Context
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
node -
|
|
13
|
-
const fs = require('fs');
|
|
14
|
-
const path = 'docs/09-agents/session-state.json';
|
|
15
|
-
if (fs.existsSync(path)) {
|
|
16
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
17
|
-
const cmd = { name: 'auto', activated_at: new Date().toISOString(), state: {} };
|
|
18
|
-
state.active_commands = state.active_commands || [];
|
|
19
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
20
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
21
|
-
console.log('✅ auto command activated');
|
|
22
|
-
}
|
|
23
|
-
"
|
|
12
|
+
node scripts/obtain-context.js auto
|
|
24
13
|
```
|
|
25
14
|
|
|
26
15
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -22,26 +22,24 @@ End-to-end mentor for implementing features.
|
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
|
-
## 🚨 STEP 0:
|
|
25
|
+
## 🚨 STEP 0: GATHER CONTEXT (REQUIRED FIRST)
|
|
26
26
|
|
|
27
|
-
**Before doing ANYTHING else, run
|
|
27
|
+
**Before doing ANYTHING else, run the context script to gather all project state in one shot:**
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
node -
|
|
31
|
-
const fs = require('fs');
|
|
32
|
-
const path = 'docs/09-agents/session-state.json';
|
|
33
|
-
if (fs.existsSync(path)) {
|
|
34
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
35
|
-
const cmd = { name: 'babysit', activated_at: new Date().toISOString(), state: {} };
|
|
36
|
-
state.active_commands = state.active_commands || [];
|
|
37
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
38
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
39
|
-
console.log('✅ Babysit command activated');
|
|
40
|
-
}
|
|
41
|
-
"
|
|
30
|
+
node scripts/obtain-context.js babysit
|
|
42
31
|
```
|
|
43
32
|
|
|
44
|
-
|
|
33
|
+
This single command gathers:
|
|
34
|
+
- Git status (branch, uncommitted changes, last commit)
|
|
35
|
+
- Stories & epics from status.json (by status, ready items highlighted)
|
|
36
|
+
- Session state (active session, working story)
|
|
37
|
+
- Documentation structure
|
|
38
|
+
- Research notes
|
|
39
|
+
- Recent agent messages
|
|
40
|
+
- Key file presence
|
|
41
|
+
|
|
42
|
+
**Why one script?** Faster startup, fewer tool calls, less context overhead. All the information babysit needs in ~1 second.
|
|
45
43
|
|
|
46
44
|
---
|
|
47
45
|
|
|
@@ -72,13 +70,14 @@ Keep this section under 150 lines - it contains the critical behavioral rules an
|
|
|
72
70
|
### TodoWrite Tracking
|
|
73
71
|
|
|
74
72
|
**CRITICAL**: Track progress with TodoWrite tool. Typical workflow:
|
|
75
|
-
1. Run context
|
|
73
|
+
1. Run context script (`node scripts/obtain-context.js babysit`)
|
|
76
74
|
2. Present suggestions using AskUserQuestion
|
|
77
|
-
3.
|
|
78
|
-
4.
|
|
79
|
-
5.
|
|
80
|
-
6.
|
|
81
|
-
7.
|
|
75
|
+
3. Read task-specific docs based on user's choice
|
|
76
|
+
4. Plan implementation steps with file paths
|
|
77
|
+
5. Apply code changes incrementally
|
|
78
|
+
6. Update status.json
|
|
79
|
+
7. Verify tests passing
|
|
80
|
+
8. Generate PR description
|
|
82
81
|
|
|
83
82
|
### Core Goal
|
|
84
83
|
|
|
@@ -92,11 +91,17 @@ Guide a plain-English intent end-to-end:
|
|
|
92
91
|
|
|
93
92
|
### Key Files to Check
|
|
94
93
|
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
- docs/
|
|
94
|
+
**Context script gathers automatically:**
|
|
95
|
+
- Git status, branch, uncommitted changes
|
|
96
|
+
- status.json (epics, stories by status)
|
|
97
|
+
- session-state.json (active session)
|
|
98
|
+
- docs/ structure overview
|
|
99
|
+
- Research notes list
|
|
100
|
+
|
|
101
|
+
**Read manually for task-specific work:**
|
|
102
|
+
- docs/04-architecture/*.md - Relevant architecture docs
|
|
103
|
+
- docs/02-practices/*.md - Relevant practice docs
|
|
104
|
+
- docs/10-research/*.md - Full research notes
|
|
100
105
|
|
|
101
106
|
### Output Format
|
|
102
107
|
|
|
@@ -133,27 +138,25 @@ ROLE: Babysitter (Mentor + Orchestrator)
|
|
|
133
138
|
|
|
134
139
|
**Principle**: Be helpful, not annoying. Ask for decisions, not permissions.
|
|
135
140
|
|
|
136
|
-
🔴 **Format**: NEVER ask users to "type" anything. Use proper options with XML invoke format.
|
|
141
|
+
🔴 **Format**: NEVER ask users to "type" anything. Use proper options with XML invoke format.
|
|
137
142
|
|
|
138
143
|
---
|
|
139
144
|
|
|
140
145
|
TODO LIST TRACKING
|
|
141
146
|
**CRITICAL**: Immediately create a todo list using TodoWrite tool to track mentoring workflow:
|
|
142
147
|
```
|
|
143
|
-
1. Run
|
|
144
|
-
2.
|
|
145
|
-
3.
|
|
148
|
+
1. Run context script (node scripts/obtain-context.js babysit)
|
|
149
|
+
2. Present intelligent suggestions using AskUserQuestion
|
|
150
|
+
3. Read task-specific docs (based on what user chooses)
|
|
146
151
|
4. Validate story readiness and architecture context
|
|
147
|
-
5.
|
|
148
|
-
6.
|
|
149
|
-
7.
|
|
150
|
-
8.
|
|
151
|
-
9.
|
|
152
|
-
10. Verify tests passing before marking in-review
|
|
153
|
-
11. Generate PR description and next actions
|
|
152
|
+
5. Plan implementation steps with file paths
|
|
153
|
+
6. Apply code changes incrementally
|
|
154
|
+
7. Update status.json
|
|
155
|
+
8. Verify tests passing before marking in-review
|
|
156
|
+
9. Generate PR description and next actions
|
|
154
157
|
```
|
|
155
158
|
|
|
156
|
-
Mark each step complete as you work through the feature implementation.
|
|
159
|
+
Mark each step complete as you work through the feature implementation.
|
|
157
160
|
|
|
158
161
|
GOAL
|
|
159
162
|
- Guide a plain-English intent end-to-end with comprehensive analysis:
|
|
@@ -167,67 +170,72 @@ GOAL
|
|
|
167
170
|
|
|
168
171
|
🔴 ⚠️ MANDATORY CONTEXT LOADING ON FIRST RUN ⚠️ 🔴
|
|
169
172
|
|
|
170
|
-
**
|
|
171
|
-
|
|
172
|
-
Without this context, you cannot work effectively. Run these NOW before doing anything else:
|
|
173
|
+
**Run the context script IMMEDIATELY - DO NOT SKIP:**
|
|
173
174
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
4. **Bash: cat docs/README.md** - Documentation structure and navigation (if exists)
|
|
178
|
-
5. **Bash: ls -la docs/02-practices/** - List codebase practice docs
|
|
179
|
-
6. **Bash: cat docs/02-practices/README.md** - Index of practices (if exists)
|
|
180
|
-
7. **Bash: cat docs/09-agents/status.json** - Current story statuses and assignments (if exists)
|
|
181
|
-
8. **Bash: ls -la docs/05-epics/** - List active/planned epics
|
|
182
|
-
9. **Bash: head -20 docs/08-project/roadmap.md** - Project roadmap/priorities (if exists)
|
|
183
|
-
10. **Bash: tail -20 docs/09-agents/bus/log.jsonl** - Last agent messages (if exists)
|
|
175
|
+
```bash
|
|
176
|
+
node scripts/obtain-context.js babysit
|
|
177
|
+
```
|
|
184
178
|
|
|
185
|
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
179
|
+
This single command gathers all essential context:
|
|
180
|
+
- **Git**: Branch, uncommitted changes, last commit
|
|
181
|
+
- **Stories**: All epics/stories from status.json, grouped by status
|
|
182
|
+
- **Session**: Active session state, current story being worked on
|
|
183
|
+
- **Docs**: Full documentation structure with file counts
|
|
184
|
+
- **Research**: List of research notes (most recent first)
|
|
185
|
+
- **Bus**: Recent agent messages
|
|
186
|
+
- **Key files**: CLAUDE.md, README.md, settings presence
|
|
187
|
+
|
|
188
|
+
**After context script, read task-specific docs based on user's choice:**
|
|
189
|
+
|
|
190
|
+
| Task Domain | Read These Docs |
|
|
191
|
+
|-------------|-----------------|
|
|
192
|
+
| Database | `docs/04-architecture/database-*.md`, `docs/02-practices/database.md` |
|
|
193
|
+
| API | `docs/04-architecture/api-*.md`, `docs/02-practices/api-design.md` |
|
|
194
|
+
| UI/Frontend | `docs/04-architecture/frontend-*.md`, `docs/02-practices/styling.md` |
|
|
195
|
+
| Testing | `docs/02-practices/testing.md` |
|
|
196
|
+
| CI/CD | `docs/02-practices/ci.md` |
|
|
197
|
+
|
|
198
|
+
**WHY ONE SCRIPT:**
|
|
199
|
+
- **Faster**: 1 tool call instead of 8-10
|
|
200
|
+
- **Less overhead**: Reduced context from tool call syntax
|
|
201
|
+
- **Consistent**: Same structured output every time
|
|
202
|
+
- **Complete**: All essential info in one shot
|
|
191
203
|
|
|
192
204
|
**CONSEQUENCE OF SKIPPING:**
|
|
193
|
-
- You will make decisions that contradict existing
|
|
205
|
+
- You will make decisions that contradict existing patterns
|
|
194
206
|
- You will miss existing stories/epics and duplicate work
|
|
195
|
-
- You will not understand codebase conventions
|
|
196
|
-
- You will fail to follow team patterns
|
|
197
207
|
- THE USER WILL COMPLAIN THAT YOU'RE LAZY
|
|
198
208
|
|
|
199
209
|
**DO THIS FIRST, EVERY TIME, NO EXCEPTIONS**
|
|
200
210
|
|
|
201
211
|
---
|
|
202
212
|
|
|
203
|
-
KNOWLEDGE INDEX
|
|
204
|
-
|
|
205
|
-
**
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
**4. AgileFlow Command Files**:
|
|
213
|
+
KNOWLEDGE INDEX
|
|
214
|
+
|
|
215
|
+
**Context script provides (automatically):**
|
|
216
|
+
- Git status, branch, uncommitted changes
|
|
217
|
+
- Epics/stories from status.json with status grouping
|
|
218
|
+
- Session state (active session, current story)
|
|
219
|
+
- Documentation structure overview
|
|
220
|
+
- Research notes (filenames, sorted by date)
|
|
221
|
+
- Recent agent bus messages
|
|
222
|
+
- Key file presence checks
|
|
223
|
+
|
|
224
|
+
**Read manually for deep dives (based on task):**
|
|
225
|
+
|
|
226
|
+
| Task Domain | Docs to Read |
|
|
227
|
+
|-------------|--------------|
|
|
228
|
+
| Database | `docs/04-architecture/database-*.md`, `docs/02-practices/database.md` |
|
|
229
|
+
| API | `docs/04-architecture/api-*.md`, `docs/02-practices/api-design.md` |
|
|
230
|
+
| UI/Frontend | `docs/02-practices/styling.md`, `component-patterns.md` |
|
|
231
|
+
| Testing | `docs/02-practices/testing.md` |
|
|
232
|
+
| CI/CD | `docs/02-practices/ci.md` |
|
|
233
|
+
| Full research note | `docs/10-research/<filename>.md` |
|
|
234
|
+
|
|
235
|
+
**AgileFlow Command Files**:
|
|
228
236
|
<!-- {{COMMAND_LIST}} -->
|
|
229
237
|
|
|
230
|
-
**
|
|
238
|
+
**AgileFlow State & Planning**:
|
|
231
239
|
- docs/09-agents/status.json - Story statuses, assignees, dependencies
|
|
232
240
|
- docs/09-agents/bus/log.jsonl (last 10 messages) - Agent coordination messages
|
|
233
241
|
- docs/08-project/{roadmap.md,backlog.md,milestones.md} - Project planning
|
|
@@ -652,8 +660,6 @@ This ensures the expert loads their mental model before working.
|
|
|
652
660
|
|
|
653
661
|
PLAN MODE FOR COMPLEX IMPLEMENTATIONS
|
|
654
662
|
|
|
655
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
656
|
-
|
|
657
663
|
Before implementing features, evaluate complexity to decide whether to plan first or implement directly.
|
|
658
664
|
|
|
659
665
|
**Decision Tree**:
|
|
@@ -7,21 +7,10 @@ argument-hint: [message] (optional)
|
|
|
7
7
|
|
|
8
8
|
Create a verified checkpoint representing a known-good state of the project.
|
|
9
9
|
|
|
10
|
-
## STEP 0:
|
|
10
|
+
## STEP 0: Gather Context
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
node -
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = 'docs/09-agents/session-state.json';
|
|
16
|
-
if (fs.existsSync(path)) {
|
|
17
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
18
|
-
const cmd = { name: 'baseline', activated_at: new Date().toISOString(), state: {} };
|
|
19
|
-
state.active_commands = state.active_commands || [];
|
|
20
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
21
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
22
|
-
console.log('✅ baseline command activated');
|
|
23
|
-
}
|
|
24
|
-
"
|
|
13
|
+
node scripts/obtain-context.js baseline
|
|
25
14
|
```
|
|
26
15
|
|
|
27
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -6,23 +6,14 @@ model: haiku
|
|
|
6
6
|
|
|
7
7
|
# blockers
|
|
8
8
|
|
|
9
|
-
## STEP 0:
|
|
9
|
+
## STEP 0: Gather Context
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
node -
|
|
13
|
-
const fs = require('fs');
|
|
14
|
-
const path = 'docs/09-agents/session-state.json';
|
|
15
|
-
if (fs.existsSync(path)) {
|
|
16
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
17
|
-
const cmd = { name: 'blockers', activated_at: new Date().toISOString(), state: {} };
|
|
18
|
-
state.active_commands = state.active_commands || [];
|
|
19
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
20
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
21
|
-
console.log('✅ blockers command activated');
|
|
22
|
-
}
|
|
23
|
-
"
|
|
12
|
+
node scripts/obtain-context.js blockers
|
|
24
13
|
```
|
|
25
14
|
|
|
15
|
+
This gathers git status, stories/epics, session state, and registers for PreCompact.
|
|
16
|
+
|
|
26
17
|
---
|
|
27
18
|
|
|
28
19
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -7,23 +7,14 @@ model: haiku
|
|
|
7
7
|
|
|
8
8
|
Generate a visual kanban board from current story statuses.
|
|
9
9
|
|
|
10
|
-
## STEP 0:
|
|
10
|
+
## STEP 0: Gather Context
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
node -
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const path = 'docs/09-agents/session-state.json';
|
|
16
|
-
if (fs.existsSync(path)) {
|
|
17
|
-
const state = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
18
|
-
const cmd = { name: 'board', activated_at: new Date().toISOString(), state: {} };
|
|
19
|
-
state.active_commands = state.active_commands || [];
|
|
20
|
-
if (!state.active_commands.some(c => c.name === cmd.name)) state.active_commands.push(cmd);
|
|
21
|
-
fs.writeFileSync(path, JSON.stringify(state, null, 2) + '\n');
|
|
22
|
-
console.log('✅ board command activated');
|
|
23
|
-
}
|
|
24
|
-
"
|
|
13
|
+
node scripts/obtain-context.js board
|
|
25
14
|
```
|
|
26
15
|
|
|
16
|
+
This gathers git status, stories/epics, session state, and registers for PreCompact.
|
|
17
|
+
|
|
27
18
|
<!-- COMPACT_SUMMARY_START -->
|
|
28
19
|
## Compact Summary
|
|
29
20
|
|