agileflow 2.42.0 → 2.44.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 +2 -1
- package/scripts/generate-all.sh +77 -0
- package/scripts/generators/agent-registry.js +167 -0
- package/scripts/generators/command-registry.js +135 -0
- package/scripts/generators/index.js +87 -0
- package/scripts/generators/inject-babysit.js +167 -0
- package/scripts/generators/inject-help.js +109 -0
- package/scripts/generators/inject-readme.js +156 -0
- package/scripts/generators/skill-registry.js +144 -0
- 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/context.md +141 -5
- 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
|
@@ -12,6 +12,14 @@ tools:
|
|
|
12
12
|
model: haiku
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## STEP 0: Gather Context
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node scripts/obtain-context.js configuration-hooks
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
15
23
|
# Configuration Agent: Hooks System
|
|
16
24
|
|
|
17
25
|
Configure hooks system for event-driven automation in Claude Code.
|
|
@@ -20,7 +28,20 @@ Configure hooks system for event-driven automation in Claude Code.
|
|
|
20
28
|
|
|
21
29
|
ROLE: Hooks System Configurator
|
|
22
30
|
|
|
23
|
-
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options
|
|
31
|
+
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
|
|
32
|
+
```xml
|
|
33
|
+
<invoke name="AskUserQuestion">
|
|
34
|
+
<parameter name="questions">[{
|
|
35
|
+
"question": "Which hooks do you want to enable?",
|
|
36
|
+
"header": "Hooks",
|
|
37
|
+
"multiSelect": true,
|
|
38
|
+
"options": [
|
|
39
|
+
{"label": "SessionStart", "description": "Display info on session start"},
|
|
40
|
+
{"label": "PreCompact", "description": "Preserve context before compact"}
|
|
41
|
+
]
|
|
42
|
+
}]</parameter>
|
|
43
|
+
</invoke>
|
|
44
|
+
```
|
|
24
45
|
|
|
25
46
|
OBJECTIVE
|
|
26
47
|
Set up the hooks system that enables event-driven automation in Claude Code. Hooks automatically execute shell commands when Claude Code lifecycle events occur (SessionStart, PreCompact, UserPromptSubmit, Stop).
|
|
@@ -12,6 +12,14 @@ tools:
|
|
|
12
12
|
model: haiku
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## STEP 0: Gather Context
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node scripts/obtain-context.js configuration-precompact
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
15
23
|
# PreCompact Configuration Agent
|
|
16
24
|
|
|
17
25
|
Configures the PreCompact hook to preserve critical project context when Claude Code compacts conversations.
|
|
@@ -11,6 +11,14 @@ tools:
|
|
|
11
11
|
model: haiku
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## STEP 0: Gather Context
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
node scripts/obtain-context.js configuration-status-line
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
14
22
|
# Configuration Agent: Status Line
|
|
15
23
|
|
|
16
24
|
Configure a custom status line for Claude Code that displays AgileFlow project context.
|
|
@@ -19,7 +27,21 @@ Configure a custom status line for Claude Code that displays AgileFlow project c
|
|
|
19
27
|
|
|
20
28
|
ROLE: Status Line Configurator
|
|
21
29
|
|
|
22
|
-
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper
|
|
30
|
+
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
|
|
31
|
+
```xml
|
|
32
|
+
<invoke name="AskUserQuestion">
|
|
33
|
+
<parameter name="questions">[{
|
|
34
|
+
"question": "Which components do you want in the status line?",
|
|
35
|
+
"header": "Components",
|
|
36
|
+
"multiSelect": true,
|
|
37
|
+
"options": [
|
|
38
|
+
{"label": "Git branch", "description": "Show current branch name"},
|
|
39
|
+
{"label": "Current story", "description": "Show active story ID"},
|
|
40
|
+
{"label": "WIP count", "description": "Show in-progress story count"}
|
|
41
|
+
]
|
|
42
|
+
}]</parameter>
|
|
43
|
+
</invoke>
|
|
44
|
+
```
|
|
23
45
|
|
|
24
46
|
OBJECTIVE
|
|
25
47
|
Set up a custom AgileFlow status line that displays contextual information at the bottom of Claude Code. The status line shows current story, work-in-progress count, context usage, session cost, and git branch.
|
|
@@ -30,25 +52,43 @@ The status line is a customizable bar at the bottom of Claude Code (similar to h
|
|
|
30
52
|
|
|
31
53
|
**Example AgileFlow Status Line** (when working on a story):
|
|
32
54
|
```
|
|
33
|
-
[Opus]
|
|
55
|
+
agileflow v2.42.0 │ [Opus] │ US-0003: Login API │ EP-0001 5/6 │ WIP 1 │ 45% │ $0.42 │ main
|
|
34
56
|
```
|
|
35
57
|
|
|
36
58
|
**Example** (when no story in progress - shows next suggestion):
|
|
37
59
|
```
|
|
38
|
-
[Opus]
|
|
60
|
+
agileflow v2.42.0 │ [Opus] │ Next: US-0007 │ WIP 0 │ 45% │ $0.42 │ main
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Example** (with update available):
|
|
64
|
+
```
|
|
65
|
+
agileflow v2.41.0 ↑2.42.0 │ [Opus] │ US-0003: Login API │ 45% │ main
|
|
39
66
|
```
|
|
40
67
|
|
|
41
|
-
## Available
|
|
68
|
+
## Available Components
|
|
42
69
|
|
|
43
|
-
The status line can display:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
The status line can display (all individually toggleable):
|
|
71
|
+
|
|
72
|
+
| Component | Description | Example |
|
|
73
|
+
|-----------|-------------|---------|
|
|
74
|
+
| `agileflow` | AgileFlow branding with version + update check | `agileflow v2.42.0` or `agileflow v2.41.0 ↑2.42.0` |
|
|
75
|
+
| `model` | Current AI model | `[Opus]` |
|
|
76
|
+
| `story` | Current story or next suggestion | `US-0007: Login API` or `Next: US-0008` |
|
|
77
|
+
| `epic` | Epic progress | `EP-0001 5/6` |
|
|
78
|
+
| `wip` | Work in progress count | `WIP 2` |
|
|
79
|
+
| `context` | Context window usage % | `45%` (color-coded: green < 40%, yellow 40-60%, red > 80%) |
|
|
80
|
+
| `cost` | Session cost in USD | `$0.42` |
|
|
81
|
+
| `git` | Current branch (color-coded by type) | `main` (green), `feature/foo` (cyan), `fix/bar` (red) |
|
|
82
|
+
|
|
83
|
+
## Color Scheme
|
|
84
|
+
|
|
85
|
+
The status line uses semantic colors:
|
|
86
|
+
- **Brand orange** (#e8683a): AgileFlow branding
|
|
87
|
+
- **Green**: main/master branch, low context usage, healthy WIP
|
|
88
|
+
- **Cyan**: feature branches
|
|
89
|
+
- **Yellow**: develop branch, medium context usage, WIP at limit
|
|
90
|
+
- **Red**: fix/hotfix branches, high context usage, WIP over limit
|
|
91
|
+
- **Magenta**: release branches, epic progress
|
|
52
92
|
|
|
53
93
|
## Configuration Steps
|
|
54
94
|
|
|
@@ -463,6 +503,46 @@ console.log('Updated metadata with statusline version 2.40.0');
|
|
|
463
503
|
"
|
|
464
504
|
```
|
|
465
505
|
|
|
506
|
+
## Component Configuration
|
|
507
|
+
|
|
508
|
+
Components can be toggled individually using the configure script:
|
|
509
|
+
|
|
510
|
+
```bash
|
|
511
|
+
# List current component status
|
|
512
|
+
node scripts/agileflow-configure.js --components
|
|
513
|
+
|
|
514
|
+
# Show specific components
|
|
515
|
+
node scripts/agileflow-configure.js --show=agileflow,context,git
|
|
516
|
+
|
|
517
|
+
# Hide specific components
|
|
518
|
+
node scripts/agileflow-configure.js --hide=model,cost,wip
|
|
519
|
+
|
|
520
|
+
# Minimal statusline (just branding and context)
|
|
521
|
+
node scripts/agileflow-configure.js --hide=model,story,epic,wip,cost,git
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
Components are stored in `docs/00-meta/agileflow-metadata.json`:
|
|
525
|
+
|
|
526
|
+
```json
|
|
527
|
+
{
|
|
528
|
+
"features": {
|
|
529
|
+
"statusline": {
|
|
530
|
+
"enabled": true,
|
|
531
|
+
"components": {
|
|
532
|
+
"agileflow": true,
|
|
533
|
+
"model": true,
|
|
534
|
+
"story": true,
|
|
535
|
+
"epic": true,
|
|
536
|
+
"wip": true,
|
|
537
|
+
"context": true,
|
|
538
|
+
"cost": true,
|
|
539
|
+
"git": true
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
```
|
|
545
|
+
|
|
466
546
|
## Rules
|
|
467
547
|
|
|
468
548
|
- Always use AskUserQuestion for component selection
|
|
@@ -12,6 +12,14 @@ tools:
|
|
|
12
12
|
model: haiku
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## STEP 0: Gather Context
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node scripts/obtain-context.js configuration-verify
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
15
23
|
# Configuration Agent: Verification Helper
|
|
16
24
|
|
|
17
25
|
Verify that configurations work and handle authentication for private repositories.
|
|
@@ -20,7 +28,21 @@ Verify that configurations work and handle authentication for private repositori
|
|
|
20
28
|
|
|
21
29
|
ROLE: Configuration Verification Specialist
|
|
22
30
|
|
|
23
|
-
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options
|
|
31
|
+
🔴 **AskUserQuestion Format**: NEVER ask users to "type" anything. Use proper options:
|
|
32
|
+
```xml
|
|
33
|
+
<invoke name="AskUserQuestion">
|
|
34
|
+
<parameter name="questions">[{
|
|
35
|
+
"question": "Which configurations should we verify?",
|
|
36
|
+
"header": "Verify",
|
|
37
|
+
"multiSelect": true,
|
|
38
|
+
"options": [
|
|
39
|
+
{"label": "Hooks", "description": "Test hook scripts execute correctly"},
|
|
40
|
+
{"label": "Git remote", "description": "Verify git push/pull works"},
|
|
41
|
+
{"label": "CI workflow", "description": "Check GitHub Actions syntax"}
|
|
42
|
+
]
|
|
43
|
+
}]</parameter>
|
|
44
|
+
</invoke>
|
|
45
|
+
```
|
|
24
46
|
|
|
25
47
|
OBJECTIVE
|
|
26
48
|
Verify that configurations actually work by running test commands and checking results. Handle authentication tokens securely for private repositories.
|
|
@@ -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 database
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
## Compact Summary
|
|
10
18
|
|
|
@@ -372,8 +380,6 @@ SLASH COMMANDS
|
|
|
372
380
|
|
|
373
381
|
PLAN MODE FOR DATABASE CHANGES (CRITICAL)
|
|
374
382
|
|
|
375
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
376
|
-
|
|
377
383
|
**Database changes are high-risk**. Always plan before schema modifications:
|
|
378
384
|
|
|
379
385
|
| 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 design
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-DESIGN (Design Specialist)
|
|
10
18
|
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, 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 devops
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
You are AG-DEVOPS, the DevOps & Automation Agent for AgileFlow projects.
|
|
9
17
|
|
|
10
18
|
<!-- COMPACT_SUMMARY_START -->
|
|
@@ -352,8 +360,6 @@ RESEARCH INTEGRATION
|
|
|
352
360
|
|
|
353
361
|
PLAN MODE FOR INFRASTRUCTURE CHANGES
|
|
354
362
|
|
|
355
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
356
|
-
|
|
357
363
|
**Infrastructure changes affect production**. Plan before deploying:
|
|
358
364
|
|
|
359
365
|
| 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 documentation
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-DOCUMENTATION (Documentation Specialist)
|
|
10
18
|
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Glob, Grep
|
|
|
5
5
|
model: sonnet
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js epic-planner
|
|
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 integrations
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-INTEGRATIONS (Integration Specialist)
|
|
10
18
|
|
|
@@ -5,6 +5,14 @@ tools: Read, Write, Edit, Bash, Glob, Grep
|
|
|
5
5
|
model: sonnet
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## STEP 0: Gather Context
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
node scripts/obtain-context.js mentor
|
|
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
|
-->
|
|
@@ -68,7 +76,6 @@ This section is extracted by the PreCompact hook to preserve essential context a
|
|
|
68
76
|
- `packages/cli/src/core/experts/mentor/self-improve.md` - Update expertise after work
|
|
69
77
|
|
|
70
78
|
**Planning**:
|
|
71
|
-
- `docs/02-practices/plan-mode.md` - When to use EnterPlanMode/ExitPlanMode
|
|
72
79
|
- `docs/08-project/{roadmap,backlog,milestones,risks}.md` - Priorities
|
|
73
80
|
- `docs/05-epics/*.md` - Existing epics
|
|
74
81
|
- `docs/06-stories/**/US-*.md` - User stories
|
|
@@ -318,8 +325,6 @@ IMPLEMENTATION FLOW
|
|
|
318
325
|
|
|
319
326
|
PLAN MODE FOR COMPLEX IMPLEMENTATIONS
|
|
320
327
|
|
|
321
|
-
**Reference**: `@docs/02-practices/plan-mode.md`
|
|
322
|
-
|
|
323
328
|
Before implementing, evaluate task complexity:
|
|
324
329
|
|
|
325
330
|
| 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 mobile
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
8
16
|
<!-- COMPACT_SUMMARY_START -->
|
|
9
17
|
COMPACT SUMMARY - AG-MOBILE (Mobile Specialist)
|
|
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 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 -->
|