agileflow 2.77.0 → 2.78.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/README.md +3 -3
- package/package.json +6 -1
- package/scripts/agileflow-configure.js +174 -2
- package/scripts/agileflow-statusline.sh +171 -78
- package/scripts/agileflow-welcome.js +79 -2
- package/scripts/damage-control-bash.js +232 -0
- package/scripts/damage-control-edit.js +243 -0
- package/scripts/damage-control-write.js +243 -0
- package/src/core/agents/accessibility.md +124 -53
- package/src/core/agents/adr-writer.md +192 -52
- package/src/core/agents/analytics.md +139 -60
- package/src/core/agents/api.md +173 -63
- package/src/core/agents/ci.md +139 -57
- package/src/core/agents/compliance.md +159 -68
- package/src/core/agents/configuration/damage-control.md +356 -0
- package/src/core/agents/database.md +162 -61
- package/src/core/agents/datamigration.md +179 -66
- package/src/core/agents/design.md +179 -57
- package/src/core/agents/devops.md +160 -3
- package/src/core/agents/documentation.md +204 -60
- package/src/core/agents/epic-planner.md +147 -55
- package/src/core/agents/integrations.md +197 -69
- package/src/core/agents/mentor.md +158 -57
- package/src/core/agents/mobile.md +159 -67
- package/src/core/agents/monitoring.md +154 -65
- package/src/core/agents/multi-expert.md +115 -43
- package/src/core/agents/orchestrator.md +77 -24
- package/src/core/agents/performance.md +130 -75
- package/src/core/agents/product.md +151 -55
- package/src/core/agents/qa.md +162 -74
- package/src/core/agents/readme-updater.md +178 -76
- package/src/core/agents/refactor.md +148 -95
- package/src/core/agents/research.md +143 -72
- package/src/core/agents/security.md +154 -65
- package/src/core/agents/testing.md +176 -97
- package/src/core/agents/ui.md +170 -79
- package/src/core/commands/adr/list.md +171 -0
- package/src/core/commands/adr/update.md +235 -0
- package/src/core/commands/adr/view.md +252 -0
- package/src/core/commands/adr.md +207 -50
- package/src/core/commands/agent.md +16 -0
- package/src/core/commands/assign.md +148 -44
- package/src/core/commands/auto.md +18 -1
- package/src/core/commands/babysit.md +361 -36
- package/src/core/commands/baseline.md +14 -0
- package/src/core/commands/blockers.md +170 -51
- package/src/core/commands/board.md +144 -66
- package/src/core/commands/changelog.md +15 -0
- package/src/core/commands/ci.md +179 -69
- package/src/core/commands/compress.md +18 -0
- package/src/core/commands/configure.md +16 -0
- package/src/core/commands/context/export.md +193 -4
- package/src/core/commands/context/full.md +191 -18
- package/src/core/commands/context/note.md +248 -4
- package/src/core/commands/debt.md +17 -0
- package/src/core/commands/deploy.md +208 -65
- package/src/core/commands/deps.md +15 -0
- package/src/core/commands/diagnose.md +16 -0
- package/src/core/commands/docs.md +196 -64
- package/src/core/commands/epic/list.md +170 -0
- package/src/core/commands/epic/view.md +242 -0
- package/src/core/commands/epic.md +192 -69
- package/src/core/commands/feedback.md +191 -71
- package/src/core/commands/handoff.md +162 -48
- package/src/core/commands/help.md +9 -0
- package/src/core/commands/ideate.md +446 -0
- package/src/core/commands/impact.md +16 -0
- package/src/core/commands/metrics.md +141 -37
- package/src/core/commands/multi-expert.md +77 -0
- package/src/core/commands/packages.md +16 -0
- package/src/core/commands/pr.md +161 -67
- package/src/core/commands/readme-sync.md +16 -0
- package/src/core/commands/research/analyze.md +568 -0
- package/src/core/commands/research/ask.md +345 -20
- package/src/core/commands/research/import.md +562 -19
- package/src/core/commands/research/list.md +173 -5
- package/src/core/commands/research/view.md +181 -8
- package/src/core/commands/retro.md +135 -48
- package/src/core/commands/review.md +219 -47
- package/src/core/commands/session/end.md +209 -0
- package/src/core/commands/session/history.md +210 -0
- package/src/core/commands/session/init.md +116 -0
- package/src/core/commands/session/new.md +296 -0
- package/src/core/commands/session/resume.md +166 -0
- package/src/core/commands/session/status.md +166 -0
- package/src/core/commands/skill/create.md +115 -17
- package/src/core/commands/skill/delete.md +117 -0
- package/src/core/commands/skill/edit.md +104 -0
- package/src/core/commands/skill/list.md +128 -0
- package/src/core/commands/skill/test.md +135 -0
- package/src/core/commands/skill/upgrade.md +542 -0
- package/src/core/commands/sprint.md +17 -1
- package/src/core/commands/status.md +133 -21
- package/src/core/commands/story/list.md +176 -0
- package/src/core/commands/story/view.md +265 -0
- package/src/core/commands/story-validate.md +101 -1
- package/src/core/commands/story.md +204 -51
- package/src/core/commands/template.md +16 -1
- package/src/core/commands/tests.md +226 -64
- package/src/core/commands/update.md +17 -1
- package/src/core/commands/validate-expertise.md +16 -0
- package/src/core/commands/velocity.md +140 -36
- package/src/core/commands/verify.md +14 -0
- package/src/core/commands/whats-new.md +30 -0
- package/src/core/skills/_learnings/README.md +91 -0
- package/src/core/skills/_learnings/_template.yaml +106 -0
- package/src/core/skills/_learnings/commit.yaml +69 -0
- package/src/core/templates/damage-control-patterns.yaml +234 -0
- package/src/core/templates/skill-template.md +53 -11
- package/tools/cli/commands/start.js +180 -0
- package/tools/cli/tui/Dashboard.js +66 -0
- package/tools/cli/tui/StoryList.js +69 -0
- package/tools/cli/tui/index.js +16 -0
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Display visual kanban board with WIP limits
|
|
3
|
-
argument-hint:
|
|
3
|
+
argument-hint: "[EPIC=<id>] [OWNER=<id>] [FORMAT=ascii|markdown|html] [GROUP_BY=status|owner|epic]"
|
|
4
4
|
model: haiku
|
|
5
|
+
compact_context:
|
|
6
|
+
priority: medium
|
|
7
|
+
preserve_rules:
|
|
8
|
+
- "ACTIVE COMMAND: /agileflow:board - Kanban board visualizer (read-only)"
|
|
9
|
+
- "MUST read docs/09-agents/status.json (do NOT modify)"
|
|
10
|
+
- "MUST organize stories by status (ready, in-progress, in-review, done, blocked)"
|
|
11
|
+
- "MUST show WIP limits (2 stories per agent)"
|
|
12
|
+
- "MUST highlight blockers and WIP violations"
|
|
13
|
+
- "MUST provide ASCII art board visualization"
|
|
14
|
+
- "MUST show statistics (throughput, velocity, completion %)"
|
|
15
|
+
- "MUST suggest next actions based on board state"
|
|
16
|
+
state_fields:
|
|
17
|
+
- epic_filter
|
|
18
|
+
- owner_filter
|
|
19
|
+
- format
|
|
20
|
+
- group_by
|
|
5
21
|
---
|
|
6
22
|
|
|
7
23
|
# board
|
|
@@ -17,82 +33,133 @@ node .agileflow/scripts/obtain-context.js board
|
|
|
17
33
|
This gathers git status, stories/epics, session state, and registers for PreCompact.
|
|
18
34
|
|
|
19
35
|
<!-- COMPACT_SUMMARY_START -->
|
|
20
|
-
## Compact Summary
|
|
21
36
|
|
|
22
|
-
|
|
23
|
-
**Purpose**: Generate visual kanban board from current story statuses
|
|
37
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:board IS ACTIVE
|
|
24
38
|
|
|
25
|
-
**
|
|
39
|
+
**CRITICAL**: You are the Board Visualizer. This command displays project state (read-only).
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### 🚨 RULE #1: ALWAYS Read status.json (NEVER Modify)
|
|
44
|
+
|
|
45
|
+
- Read-only operation (visualization only)
|
|
46
|
+
- NEVER update status.json from this command
|
|
47
|
+
- Extract story data and calculate WIP metrics
|
|
48
|
+
- No file writes, no state changes
|
|
49
|
+
|
|
50
|
+
### 🚨 RULE #2: ALWAYS Show Four Columns
|
|
51
|
+
|
|
52
|
+
**Column Layout** (by default):
|
|
53
|
+
1. **READY** (status="ready")
|
|
54
|
+
2. **IN PROGRESS** (status="in-progress")
|
|
55
|
+
3. **IN REVIEW** (status="in-review")
|
|
56
|
+
4. **DONE** (status="done")
|
|
57
|
+
|
|
58
|
+
Special handling:
|
|
59
|
+
- Separate BLOCKED stories (show with 🔴 red)
|
|
60
|
+
- Show WIP limits per agent (max 2 in-progress + in-review)
|
|
61
|
+
|
|
62
|
+
### 🚨 RULE #3: ALWAYS Calculate & Show WIP Violations
|
|
63
|
+
|
|
64
|
+
- Count in-progress + in-review per agent
|
|
65
|
+
- Highlight if >2 stories (WIP limit exceeded)
|
|
66
|
+
- Show with ⚠️ warning icon
|
|
67
|
+
- Suggest unblocking action
|
|
68
|
+
|
|
69
|
+
### 🚨 RULE #4: ALWAYS Include Statistics
|
|
70
|
+
|
|
71
|
+
Show these stats:
|
|
72
|
+
- Total stories in each status
|
|
73
|
+
- WIP status per agent
|
|
74
|
+
- Blockers count and reasons
|
|
75
|
+
- Throughput (stories completed this week)
|
|
76
|
+
- Velocity trend (↗ ↘ →)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Key Parameters & Output
|
|
81
|
+
|
|
82
|
+
**Input Parameters**:
|
|
83
|
+
```
|
|
84
|
+
EPIC=<EP_ID> # Filter by specific epic (optional)
|
|
85
|
+
OWNER=<agent_id> # Filter by owner (optional)
|
|
86
|
+
FORMAT=ascii|markdown|html # Output format (default: ascii)
|
|
87
|
+
GROUP_BY=status|owner|epic # Grouping method (default: status)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Output Formats**:
|
|
91
|
+
| Format | Use Case | Visual |
|
|
92
|
+
|--------|----------|--------|
|
|
93
|
+
| ascii | Terminal viewing | Box drawing chars (╔╗╚╝) |
|
|
94
|
+
| markdown | Documentation/wiki | Markdown tables |
|
|
95
|
+
| html | Web export | Full HTML page |
|
|
96
|
+
|
|
97
|
+
**Data Source**:
|
|
98
|
+
- Read: docs/09-agents/status.json
|
|
99
|
+
- Extract: story status, owner, epic, estimate
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Board Visualization Rules
|
|
104
|
+
|
|
105
|
+
**ASCII Format** (default):
|
|
106
|
+
- Box drawing characters (╔═╗║╚╝├┤┬┴┼)
|
|
107
|
+
- Columns for each status
|
|
108
|
+
- Story cards with ID, title, owner, estimate, epic
|
|
109
|
+
- Color coded via emoji (🟢🟡🔵⚪🔴)
|
|
110
|
+
- Max 80 char width for terminal viewing
|
|
111
|
+
|
|
112
|
+
**Card Contents**:
|
|
26
113
|
```
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
114
|
+
🟢 US-0042
|
|
115
|
+
Login form
|
|
116
|
+
AG-UI · 1d
|
|
117
|
+
EP-0010
|
|
31
118
|
```
|
|
32
119
|
|
|
33
|
-
**
|
|
34
|
-
1. Reads `docs/09-agents/status.json` for story data
|
|
35
|
-
2. Organizes stories by status (or owner/epic if specified)
|
|
36
|
-
3. Calculates WIP limits and identifies violations
|
|
37
|
-
4. Renders visual board with color coding
|
|
38
|
-
5. Shows statistics (throughput, velocity, blockers)
|
|
39
|
-
6. Suggests actions based on board state
|
|
40
|
-
|
|
41
|
-
**Input Options**:
|
|
42
|
-
- `EPIC=<EP_ID>` - Filter by specific epic
|
|
43
|
-
- `OWNER=<agent_id>` - Filter by owner
|
|
44
|
-
- `FORMAT=ascii|markdown|html` - Output format (default: ascii)
|
|
45
|
-
- `GROUP_BY=status|owner|epic` - Grouping method (default: status)
|
|
46
|
-
|
|
47
|
-
**Board Layout** (ASCII):
|
|
120
|
+
**WIP Indicator**:
|
|
48
121
|
```
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
║ Updated: 2025-12-22 14:30 ║
|
|
52
|
-
╠══════════════════════════════════════════════════════════════╣
|
|
53
|
-
║ 📊 Summary: 15 stories | 3 ready | 4 in-progress | 6 done ║
|
|
54
|
-
║ ⚠️ WIP Limit: 2/agent (AG-UI: 2/2 ⚠️, AG-API: 1/2 ✓) ║
|
|
55
|
-
╚══════════════════════════════════════════════════════════════╝
|
|
56
|
-
|
|
57
|
-
┌──────────────┬──────────────┬──────────────┬──────────────┐
|
|
58
|
-
│ 📋 READY (3) │ 🔄 IN PROG │ 👀 REVIEW │ ✅ DONE (6) │
|
|
59
|
-
│ │ (4) WIP: 4/6 │ (2) │ │
|
|
60
|
-
├──────────────┼──────────────┼──────────────┼──────────────┤
|
|
61
|
-
│ 🟢 US-0042 │ 🟡 US-0038 │ 🔵 US-0035 │ ⚪ US-0030 │
|
|
62
|
-
│ Login form │ OAuth flow │ Pwd reset │ User reg │
|
|
63
|
-
│ AG-UI · 1d │ AG-API · 1.5d│ AG-API · 1d │ AG-API · 1d │
|
|
64
|
-
└──────────────┴──────────────┴──────────────┴──────────────┘
|
|
122
|
+
🔄 IN PROGRESS (4)
|
|
123
|
+
WIP: 4/6 ⚠️ (at limit)
|
|
65
124
|
```
|
|
66
125
|
|
|
67
|
-
**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
126
|
+
**Blocked Indicator**:
|
|
127
|
+
```
|
|
128
|
+
🔴 BLOCKED (1)
|
|
129
|
+
US-0041: Waiting on API keys
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
74
133
|
|
|
75
|
-
|
|
76
|
-
- Throughput (stories completed per week)
|
|
77
|
-
- Velocity (points per week)
|
|
78
|
-
- Status distribution
|
|
79
|
-
- Owner workload
|
|
80
|
-
- Blockers and warnings
|
|
134
|
+
## Action Suggestions
|
|
81
135
|
|
|
82
|
-
|
|
136
|
+
After displaying board, suggest actions:
|
|
83
137
|
- "AG-UI at WIP limit. Complete US-0038 before starting new work."
|
|
84
|
-
- "US-0041 blocked.
|
|
138
|
+
- "US-0041 blocked >3 days. Escalate for API access?"
|
|
85
139
|
- "3 stories ready. Which should we prioritize?"
|
|
140
|
+
- "AG-DEVOPS has no work. Assign unblocking tasks?"
|
|
86
141
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Anti-Patterns & Correct Usage
|
|
145
|
+
|
|
146
|
+
❌ **DON'T**:
|
|
147
|
+
- Modify status.json (read-only command)
|
|
148
|
+
- Hide blockers or WIP violations
|
|
149
|
+
- Skip statistics and trend data
|
|
150
|
+
- Make board too wide (>80 chars)
|
|
151
|
+
|
|
152
|
+
✅ **DO**:
|
|
153
|
+
- Read status.json (no updates)
|
|
154
|
+
- Highlight WIP violations clearly
|
|
155
|
+
- Include statistics and trends
|
|
156
|
+
- Suggest next actions based on board state
|
|
157
|
+
|
|
158
|
+
---
|
|
92
159
|
|
|
93
|
-
|
|
160
|
+
## Confirmation & Follow-up
|
|
94
161
|
|
|
95
|
-
|
|
162
|
+
After displaying board:
|
|
96
163
|
```xml
|
|
97
164
|
<invoke name="AskUserQuestion">
|
|
98
165
|
<parameter name="questions">[{
|
|
@@ -100,15 +167,26 @@ AskUserQuestion (for actions after displaying board):
|
|
|
100
167
|
"header": "Board Actions",
|
|
101
168
|
"multiSelect": false,
|
|
102
169
|
"options": [
|
|
103
|
-
{"label": "Update
|
|
104
|
-
{"label": "
|
|
105
|
-
{"label": "
|
|
106
|
-
{"label": "
|
|
170
|
+
{"label": "Update story status", "description": "Change status on board"},
|
|
171
|
+
{"label": "View blockers", "description": "See blocker details"},
|
|
172
|
+
{"label": "Filter board", "description": "Filter by epic/owner"},
|
|
173
|
+
{"label": "Export snapshot", "description": "Save board to file"}
|
|
107
174
|
]
|
|
108
175
|
}]</parameter>
|
|
109
176
|
</invoke>
|
|
110
177
|
```
|
|
111
178
|
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## REMEMBER AFTER COMPACTION
|
|
182
|
+
|
|
183
|
+
- Command is read-only (displays status.json, doesn't modify)
|
|
184
|
+
- Shows kanban board with 4 columns (ready, in-progress, in-review, done)
|
|
185
|
+
- Highlights blockers and WIP violations
|
|
186
|
+
- Includes statistics (throughput, velocity, trends)
|
|
187
|
+
- Suggests actionable next steps
|
|
188
|
+
- No file writes, no state changes
|
|
189
|
+
|
|
112
190
|
<!-- COMPACT_SUMMARY_END -->
|
|
113
191
|
|
|
114
192
|
## Prompt
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Auto-generate changelog from commit history
|
|
3
|
+
compact_context:
|
|
4
|
+
priority: high
|
|
5
|
+
preserve_rules:
|
|
6
|
+
- "Auto-detect version from latest git tag if VERSION not provided"
|
|
7
|
+
- "Parse conventional commits (feat:→Added, fix:→Fixed, perf:→Changed, security:→Security)"
|
|
8
|
+
- "Detect BREAKING CHANGES (! suffix or BREAKING CHANGE: footer)"
|
|
9
|
+
- "Follow Keep a Changelog format strictly (standard markdown structure)"
|
|
10
|
+
- "Include PR/issue numbers for traceability (#123)"
|
|
11
|
+
- "ALWAYS show diff-first preview before updating CHANGELOG.md"
|
|
12
|
+
- "Suggest semantic version bump based on changes (major/minor/patch)"
|
|
13
|
+
- "Never remove old changelog entries"
|
|
14
|
+
state_fields:
|
|
15
|
+
- next_version
|
|
16
|
+
- version_suggestion_accepted
|
|
17
|
+
- changelog_updated
|
|
3
18
|
---
|
|
4
19
|
|
|
5
20
|
# generate-changelog
|
package/src/core/commands/ci.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Bootstrap CI/CD workflow with testing and quality checks
|
|
3
3
|
argument-hint: (no arguments)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "CI setup creates .github/workflows/ci.yml with lint/typecheck/test jobs"
|
|
8
|
+
- "MUST parse OWNERS input (comma-separated GitHub handles or team names)"
|
|
9
|
+
- "MUST create CODEOWNERS file with owner mappings for src/ and docs/03-decisions/"
|
|
10
|
+
- "ALWAYS show diff-first preview before creating files (YES/NO confirmation required)"
|
|
11
|
+
- "Concurrency control and minimal permissions are required for security"
|
|
12
|
+
state_fields:
|
|
13
|
+
- owners_input
|
|
14
|
+
- workflow_created
|
|
15
|
+
- codeowners_created
|
|
4
16
|
---
|
|
5
17
|
|
|
6
18
|
# ci-setup
|
|
@@ -15,92 +27,190 @@ If the user confirms they want the full details, continue. Otherwise, stop here.
|
|
|
15
27
|
Bootstrap minimal CI workflow and CODEOWNERS.
|
|
16
28
|
|
|
17
29
|
<!-- COMPACT_SUMMARY_START -->
|
|
18
|
-
## Compact Summary
|
|
19
30
|
|
|
20
|
-
|
|
31
|
+
## ⚠️ COMPACT SUMMARY - /agileflow:ci-setup IS ACTIVE
|
|
21
32
|
|
|
22
|
-
**
|
|
23
|
-
```
|
|
24
|
-
/agileflow:ci-setup OWNERS=@username,@team
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**What It Does**:
|
|
28
|
-
1. Creates `.github/workflows/ci.yml` with lint/typecheck/test jobs
|
|
29
|
-
2. Creates `CODEOWNERS` file with owner mappings
|
|
30
|
-
3. Shows preview and waits for YES/NO confirmation
|
|
31
|
-
4. Provides notes for enabling required checks in GitHub
|
|
32
|
-
|
|
33
|
-
**Required Inputs**:
|
|
34
|
-
- `OWNERS=<@handles>` - GitHub usernames or team handles (comma-separated)
|
|
35
|
-
|
|
36
|
-
**Optional Inputs**:
|
|
37
|
-
- None
|
|
33
|
+
**CRITICAL**: You are bootstrapping CI/CD workflow. All steps must complete to create production-ready CI.
|
|
38
34
|
|
|
39
|
-
**
|
|
40
|
-
- `.github/workflows/ci.yml` - GitHub Actions workflow
|
|
41
|
-
- `CODEOWNERS` - Code ownership mappings
|
|
35
|
+
**ROLE**: CI Bootstrapper - Create GitHub Actions workflow with quality gates (lint/typecheck/test) and code ownership rules
|
|
42
36
|
|
|
43
|
-
|
|
44
|
-
- Lint job (generic placeholder for ESLint, Prettier, etc.)
|
|
45
|
-
- Typecheck job (TypeScript, Flow, mypy, etc.)
|
|
46
|
-
- Test job (Jest, pytest, cargo test, etc.)
|
|
47
|
-
- Minimal permissions (contents: read)
|
|
48
|
-
- Concurrency control (cancel in-progress runs)
|
|
49
|
-
|
|
50
|
-
**CODEOWNERS Mappings**:
|
|
51
|
-
```
|
|
52
|
-
/src/ @owners
|
|
53
|
-
/docs/03-decisions/ @owners
|
|
54
|
-
```
|
|
37
|
+
---
|
|
55
38
|
|
|
56
|
-
|
|
57
|
-
- TodoWrite: Track 5-step setup workflow
|
|
39
|
+
### 🚨 RULE #1: ALWAYS USE TodoWrite FOR TRACKING
|
|
58
40
|
|
|
59
|
-
|
|
41
|
+
Track all 5 steps explicitly:
|
|
60
42
|
```xml
|
|
61
43
|
<invoke name="TodoWrite">
|
|
62
44
|
<parameter name="content">
|
|
63
|
-
1. Parse input (
|
|
64
|
-
2.
|
|
65
|
-
3.
|
|
66
|
-
4. Show preview
|
|
67
|
-
5.
|
|
45
|
+
1. Parse OWNERS input (required, comma-separated)
|
|
46
|
+
2. Generate .github/workflows/ci.yml with 3 jobs
|
|
47
|
+
3. Generate CODEOWNERS file with mappings
|
|
48
|
+
4. Show diff preview (both files side-by-side)
|
|
49
|
+
5. Create files after YES/NO confirmation
|
|
68
50
|
</parameter>
|
|
69
51
|
<parameter name="status">in-progress</parameter>
|
|
70
52
|
</invoke>
|
|
71
53
|
```
|
|
72
54
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
55
|
+
Mark each step complete as you finish. This ensures nothing is forgotten.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### 🚨 RULE #2: REQUIRED PARAMETERS
|
|
60
|
+
|
|
61
|
+
`OWNERS` is required (no default):
|
|
62
|
+
- Format: `@username` or `@org/team-name`
|
|
63
|
+
- Multiple: Comma-separated, no spaces
|
|
64
|
+
- Example: `OWNERS=@alice,@dev-team,@bob`
|
|
65
|
+
|
|
66
|
+
If missing:
|
|
67
|
+
```
|
|
68
|
+
❌ Missing OWNERS parameter
|
|
69
|
+
|
|
70
|
+
Usage: /agileflow:ci-setup OWNERS=@username,@team
|
|
71
|
+
|
|
72
|
+
Examples:
|
|
73
|
+
/agileflow:ci-setup OWNERS=@alice
|
|
74
|
+
/agileflow:ci-setup OWNERS=@alice,@bob,@dev-team
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
### 🚨 RULE #3: DIFF-FIRST PATTERN
|
|
80
|
+
|
|
81
|
+
ALWAYS show preview of BOTH files before creating:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
Preview of files to create:
|
|
85
|
+
|
|
86
|
+
========== .github/workflows/ci.yml ==========
|
|
90
87
|
name: CI
|
|
91
88
|
on: [push, pull_request]
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
... [full YAML preview]
|
|
90
|
+
|
|
91
|
+
========== CODEOWNERS ==========
|
|
92
|
+
/src/ @alice @dev-team
|
|
93
|
+
/docs/03-decisions/ @alice @dev-team
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Then ask: "Create these files? (YES/NO)"
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
### 🚨 RULE #4: JOBS REQUIRED
|
|
101
|
+
|
|
102
|
+
Always generate these 3 jobs (generic placeholders OK):
|
|
103
|
+
1. **lint**: `npm run lint` (or project equivalent)
|
|
104
|
+
2. **typecheck**: `npm run typecheck` (or project equivalent)
|
|
105
|
+
3. **test**: `npm test` (or project equivalent)
|
|
106
|
+
|
|
107
|
+
Each job:
|
|
108
|
+
- `runs-on: ubuntu-latest`
|
|
109
|
+
- `permissions: { contents: read }` (minimal security)
|
|
110
|
+
- `concurrency: { group: ... cancel-in-progress: true }` (cost control)
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### 🚨 RULE #5: CODEOWNERS MAPPINGS
|
|
115
|
+
|
|
116
|
+
Required mappings:
|
|
117
|
+
```
|
|
118
|
+
/src/ @owners # All source code
|
|
119
|
+
/docs/03-decisions/ @owners # ADRs require owner review
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Both paths MUST include the parsed OWNERS.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### ANTI-PATTERNS (DON'T DO THESE)
|
|
127
|
+
|
|
128
|
+
❌ Skip diff preview - go directly to file creation
|
|
129
|
+
❌ Hardcode owners instead of parsing input
|
|
130
|
+
❌ Create workflow without concurrency control
|
|
131
|
+
❌ Forget to validate OWNERS parameter format
|
|
132
|
+
❌ Create CODEOWNERS without /src/ and /docs/03-decisions/ mappings
|
|
133
|
+
❌ Use overly permissive permissions (contents: write)
|
|
134
|
+
|
|
135
|
+
### DO THESE INSTEAD
|
|
136
|
+
|
|
137
|
+
✅ ALWAYS show diff preview first
|
|
138
|
+
✅ Parse OWNERS parameter, validate format
|
|
139
|
+
✅ Include concurrency with cancel-in-progress
|
|
140
|
+
✅ Use minimal permissions (contents: read)
|
|
141
|
+
✅ Include both required path mappings
|
|
142
|
+
✅ Track with TodoWrite for safety
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### WORKFLOW PHASES
|
|
147
|
+
|
|
148
|
+
**Phase 1: Validate Input (Step 1)**
|
|
149
|
+
- Parse OWNERS parameter
|
|
150
|
+
- Validate format (looks like @username or @org/team)
|
|
151
|
+
- If invalid: show error and ask for correction
|
|
152
|
+
|
|
153
|
+
**Phase 2: Generate Files (Steps 2-3)**
|
|
154
|
+
- Create workflow YAML with 3 jobs
|
|
155
|
+
- Create CODEOWNERS with owner mappings
|
|
156
|
+
|
|
157
|
+
**Phase 3: Preview & Confirm (Step 4)**
|
|
158
|
+
- Display both files in unified diff
|
|
159
|
+
- Ask: "Create these files? (YES/NO)"
|
|
160
|
+
|
|
161
|
+
**Phase 4: Complete (Step 5)**
|
|
162
|
+
- Write .github/workflows/ci.yml
|
|
163
|
+
- Write CODEOWNERS
|
|
164
|
+
- Display next steps note
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### NEXT STEPS TO DISPLAY
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
✅ CI setup complete!
|
|
172
|
+
|
|
173
|
+
Next steps:
|
|
174
|
+
1. Customize job commands for your project:
|
|
175
|
+
- Update lint command (currently: npm run lint)
|
|
176
|
+
- Update typecheck command
|
|
177
|
+
- Update test command
|
|
178
|
+
|
|
179
|
+
2. Enable branch protection in GitHub:
|
|
180
|
+
- Settings → Branches → Branch protection rules
|
|
181
|
+
- Require "ci" status check
|
|
182
|
+
- Require branches to be up-to-date
|
|
183
|
+
|
|
184
|
+
3. Optional: Configure merge queue
|
|
185
|
+
- Settings → Branches → Branch protection
|
|
186
|
+
- Enable merge queue for faster merges
|
|
187
|
+
|
|
188
|
+
4. Optional: Add required checks
|
|
189
|
+
- Each job can be marked as required
|
|
103
190
|
```
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
### KEY FILES TO REMEMBER
|
|
195
|
+
|
|
196
|
+
| File | Purpose |
|
|
197
|
+
|------|---------|
|
|
198
|
+
| `.github/workflows/ci.yml` | GitHub Actions workflow with 3 jobs |
|
|
199
|
+
| `CODEOWNERS` | Code ownership rules for PR reviews |
|
|
200
|
+
| Parsed `OWNERS` | Critical - determines who gets PRs routed |
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
### REMEMBER AFTER COMPACTION
|
|
205
|
+
|
|
206
|
+
- `/agileflow:ci-setup` IS ACTIVE - create CI workflow
|
|
207
|
+
- OWNERS parameter is required (validate format)
|
|
208
|
+
- ALWAYS show diff-first before creating files
|
|
209
|
+
- Include lint, typecheck, test jobs
|
|
210
|
+
- Map both /src/ and /docs/03-decisions/ in CODEOWNERS
|
|
211
|
+
- Use TodoWrite to track 5 steps
|
|
212
|
+
- Display next steps for GitHub configuration
|
|
213
|
+
|
|
104
214
|
<!-- COMPACT_SUMMARY_END -->
|
|
105
215
|
|
|
106
216
|
## Prompt
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Compress status.json by removing verbose fields and keeping only tracking metadata
|
|
3
3
|
argument-hint: (no arguments)
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: high
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:compress - Status.json compression utility"
|
|
8
|
+
- "CRITICAL: Operates on docs/09-agents/status.json ONLY"
|
|
9
|
+
- "CRITICAL: Creates backup (status.json.backup) BEFORE writing"
|
|
10
|
+
- "MUST remove verbose fields: description, AC, architectureContext, technicalNotes, testingStrategy, devAgentRecord"
|
|
11
|
+
- "MUST keep only tracking: story_id, epic, title, owner, status, estimate, timestamps, dependencies, branch, summary"
|
|
12
|
+
- "MUST validate JSON before/after compression"
|
|
13
|
+
- "MUST calculate and show token estimate (target: <25000 tokens)"
|
|
14
|
+
- "MUST show before/after stats and savings percentage"
|
|
15
|
+
- "Combine with archival for best results (archive old completed stories first, then compress)"
|
|
16
|
+
state_fields:
|
|
17
|
+
- file_path
|
|
18
|
+
- before_size
|
|
19
|
+
- after_size
|
|
20
|
+
- savings_percentage
|
|
21
|
+
- token_estimate
|
|
4
22
|
---
|
|
5
23
|
|
|
6
24
|
# compress
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Configure advanced AgileFlow features (git, hooks, archival, CI, status line)
|
|
3
3
|
argument-hint: [--profile=full|basic|minimal|none] [--enable/--disable=features] [--migrate] [--upgrade] [--repair] [--version] [--list-scripts]
|
|
4
|
+
compact_context:
|
|
5
|
+
priority: critical
|
|
6
|
+
preserve_rules:
|
|
7
|
+
- "ACTIVE COMMAND: /agileflow:configure - Configuration manager for AgileFlow features"
|
|
8
|
+
- "CRITICAL: ALWAYS run --detect FIRST to check status before anything else"
|
|
9
|
+
- "CRITICAL: If ⚠️ INVALID FORMAT shown → offer --migrate BEFORE other options"
|
|
10
|
+
- "CRITICAL: If 🔄 OUTDATED shown → offer --upgrade to re-deploy latest scripts"
|
|
11
|
+
- "MUST backup created on migrate: .claude/settings.json.backup"
|
|
12
|
+
- "MUST show RED RESTART banner after ANY changes (quit, wait 5s, restart)"
|
|
13
|
+
- "Features: sessionstart, precompact, ralphloop, selfimprove, archival, statusline, autoupdate"
|
|
14
|
+
- "Stop hooks (ralphloop, selfimprove) run when Claude completes or pauses"
|
|
15
|
+
state_fields:
|
|
16
|
+
- detection_status
|
|
17
|
+
- has_format_issues
|
|
18
|
+
- has_outdated_scripts
|
|
19
|
+
- enabled_features
|
|
4
20
|
---
|
|
5
21
|
|
|
6
22
|
<!-- COMPACT_SUMMARY_START -->
|