agileflow 2.77.0 โ†’ 2.79.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 (128) hide show
  1. package/README.md +6 -6
  2. package/package.json +6 -1
  3. package/scripts/agileflow-configure.js +174 -2
  4. package/scripts/agileflow-statusline.sh +171 -78
  5. package/scripts/agileflow-welcome.js +88 -64
  6. package/scripts/auto-self-improve.js +23 -45
  7. package/scripts/check-update.js +35 -42
  8. package/scripts/damage-control/bash-tool-damage-control.js +257 -0
  9. package/scripts/damage-control/edit-tool-damage-control.js +279 -0
  10. package/scripts/damage-control/patterns.yaml +227 -0
  11. package/scripts/damage-control/write-tool-damage-control.js +274 -0
  12. package/scripts/damage-control-bash.js +232 -0
  13. package/scripts/damage-control-edit.js +243 -0
  14. package/scripts/damage-control-write.js +243 -0
  15. package/scripts/obtain-context.js +22 -3
  16. package/scripts/ralph-loop.js +191 -63
  17. package/scripts/screenshot-verifier.js +213 -0
  18. package/scripts/session-manager.js +12 -33
  19. package/src/core/agents/accessibility.md +124 -53
  20. package/src/core/agents/adr-writer.md +192 -52
  21. package/src/core/agents/analytics.md +139 -60
  22. package/src/core/agents/api.md +173 -63
  23. package/src/core/agents/ci.md +139 -57
  24. package/src/core/agents/compliance.md +159 -68
  25. package/src/core/agents/configuration/damage-control.md +356 -0
  26. package/src/core/agents/configuration-damage-control.md +248 -0
  27. package/src/core/agents/database.md +162 -61
  28. package/src/core/agents/datamigration.md +179 -66
  29. package/src/core/agents/design.md +179 -57
  30. package/src/core/agents/devops.md +160 -3
  31. package/src/core/agents/documentation.md +204 -60
  32. package/src/core/agents/epic-planner.md +147 -55
  33. package/src/core/agents/integrations.md +197 -69
  34. package/src/core/agents/mentor.md +158 -57
  35. package/src/core/agents/mobile.md +159 -67
  36. package/src/core/agents/monitoring.md +154 -65
  37. package/src/core/agents/multi-expert.md +115 -43
  38. package/src/core/agents/orchestrator.md +77 -24
  39. package/src/core/agents/performance.md +130 -75
  40. package/src/core/agents/product.md +151 -55
  41. package/src/core/agents/qa.md +162 -74
  42. package/src/core/agents/readme-updater.md +178 -76
  43. package/src/core/agents/refactor.md +148 -95
  44. package/src/core/agents/research.md +143 -72
  45. package/src/core/agents/security.md +154 -65
  46. package/src/core/agents/testing.md +176 -97
  47. package/src/core/agents/ui.md +170 -79
  48. package/src/core/commands/adr/list.md +171 -0
  49. package/src/core/commands/adr/update.md +235 -0
  50. package/src/core/commands/adr/view.md +252 -0
  51. package/src/core/commands/adr.md +207 -50
  52. package/src/core/commands/agent.md +16 -0
  53. package/src/core/commands/assign.md +148 -44
  54. package/src/core/commands/auto.md +18 -1
  55. package/src/core/commands/babysit.md +391 -38
  56. package/src/core/commands/baseline.md +14 -0
  57. package/src/core/commands/blockers.md +170 -51
  58. package/src/core/commands/board.md +144 -66
  59. package/src/core/commands/changelog.md +15 -0
  60. package/src/core/commands/ci.md +179 -69
  61. package/src/core/commands/compress.md +18 -0
  62. package/src/core/commands/configure.md +16 -0
  63. package/src/core/commands/context/export.md +193 -4
  64. package/src/core/commands/context/full.md +191 -18
  65. package/src/core/commands/context/note.md +248 -4
  66. package/src/core/commands/debt.md +17 -0
  67. package/src/core/commands/deploy.md +208 -65
  68. package/src/core/commands/deps.md +15 -0
  69. package/src/core/commands/diagnose.md +16 -0
  70. package/src/core/commands/docs.md +196 -64
  71. package/src/core/commands/epic/list.md +170 -0
  72. package/src/core/commands/epic/view.md +242 -0
  73. package/src/core/commands/epic.md +192 -69
  74. package/src/core/commands/feedback.md +191 -71
  75. package/src/core/commands/handoff.md +162 -48
  76. package/src/core/commands/help.md +9 -0
  77. package/src/core/commands/ideate.md +446 -0
  78. package/src/core/commands/impact.md +16 -0
  79. package/src/core/commands/metrics.md +141 -37
  80. package/src/core/commands/multi-expert.md +77 -0
  81. package/src/core/commands/packages.md +16 -0
  82. package/src/core/commands/pr.md +161 -67
  83. package/src/core/commands/readme-sync.md +16 -0
  84. package/src/core/commands/research/analyze.md +568 -0
  85. package/src/core/commands/research/ask.md +345 -20
  86. package/src/core/commands/research/import.md +562 -19
  87. package/src/core/commands/research/list.md +173 -5
  88. package/src/core/commands/research/view.md +181 -8
  89. package/src/core/commands/retro.md +135 -48
  90. package/src/core/commands/review.md +219 -47
  91. package/src/core/commands/session/end.md +209 -0
  92. package/src/core/commands/session/history.md +210 -0
  93. package/src/core/commands/session/init.md +116 -0
  94. package/src/core/commands/session/new.md +296 -0
  95. package/src/core/commands/session/resume.md +166 -0
  96. package/src/core/commands/session/status.md +166 -0
  97. package/src/core/commands/setup/visual-e2e.md +462 -0
  98. package/src/core/commands/skill/create.md +115 -17
  99. package/src/core/commands/skill/delete.md +117 -0
  100. package/src/core/commands/skill/edit.md +104 -0
  101. package/src/core/commands/skill/list.md +128 -0
  102. package/src/core/commands/skill/test.md +135 -0
  103. package/src/core/commands/skill/upgrade.md +542 -0
  104. package/src/core/commands/sprint.md +17 -1
  105. package/src/core/commands/status.md +133 -21
  106. package/src/core/commands/story/list.md +176 -0
  107. package/src/core/commands/story/view.md +265 -0
  108. package/src/core/commands/story-validate.md +101 -1
  109. package/src/core/commands/story.md +204 -51
  110. package/src/core/commands/template.md +16 -1
  111. package/src/core/commands/tests.md +226 -64
  112. package/src/core/commands/update.md +17 -1
  113. package/src/core/commands/validate-expertise.md +16 -0
  114. package/src/core/commands/velocity.md +140 -36
  115. package/src/core/commands/verify.md +14 -0
  116. package/src/core/commands/whats-new.md +30 -0
  117. package/src/core/skills/_learnings/README.md +91 -0
  118. package/src/core/skills/_learnings/_template.yaml +106 -0
  119. package/src/core/skills/_learnings/code-review.yaml +118 -0
  120. package/src/core/skills/_learnings/commit.yaml +69 -0
  121. package/src/core/skills/_learnings/story-writer.yaml +71 -0
  122. package/src/core/templates/damage-control-patterns.yaml +234 -0
  123. package/src/core/templates/skill-template.md +53 -11
  124. package/tools/cli/commands/start.js +180 -0
  125. package/tools/cli/installers/ide/claude-code.js +127 -0
  126. package/tools/cli/tui/Dashboard.js +66 -0
  127. package/tools/cli/tui/StoryList.js +69 -0
  128. package/tools/cli/tui/index.js +16 -0
@@ -1,6 +1,19 @@
1
1
  ---
2
2
  description: Remove an installed skill from .claude/skills/
3
3
  argument-hint: [SKILL_NAME] (optional)
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:skill:delete - Removes installed skills"
8
+ - "MUST list available skills if SKILL_NAME not provided"
9
+ - "MUST show exactly what will be deleted (tree view of files)"
10
+ - "MUST ask for explicit confirmation before deletion (no undo)"
11
+ - "MUST offer backup option before deletion"
12
+ - "MUST create backup in .claude/skills-backup/ if requested"
13
+ - "NEVER delete without explicit user confirmation"
14
+ state_fields:
15
+ - selected_skill_for_deletion
16
+ - backup_created
4
17
  ---
5
18
 
6
19
  # /agileflow:skill:delete
@@ -9,6 +22,110 @@ Remove a skill from `.claude/skills/`.
9
22
 
10
23
  ---
11
24
 
25
+ <!-- COMPACT_SUMMARY_START -->
26
+
27
+ ## ๐Ÿšจ COMPACT SUMMARY - /agileflow:skill:delete IS ACTIVE
28
+
29
+ **CRITICAL**: This command deletes skills with full safety features and backup options.
30
+
31
+ ### ๐Ÿšจ RULE #1: Select Skill
32
+ If SKILL_NAME not provided:
33
+ ```bash
34
+ ls -d .claude/skills/*/ | xargs -I {} basename {}
35
+ ```
36
+ Show options and ask user which to delete.
37
+
38
+ ### ๐Ÿšจ RULE #2: Show Exactly What Will Be Deleted
39
+ Display complete tree view:
40
+ ```
41
+ โš ๏ธ About to delete: skill-name
42
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
43
+ This will permanently remove:
44
+ .claude/skills/skill-name/
45
+ โ”œโ”€โ”€ SKILL.md
46
+ โ”œโ”€โ”€ references.md
47
+ โ”œโ”€โ”€ cookbook/
48
+ โ”‚ โ”œโ”€โ”€ use-case-1.md
49
+ โ”‚ โ””โ”€โ”€ use-case-2.md
50
+ โ””โ”€โ”€ .mcp.json
51
+
52
+ Total: 5 files in 2 directories
53
+ ```
54
+
55
+ ### ๐Ÿšจ RULE #3: Ask for Confirmation
56
+ Multiple confirmation levels:
57
+ 1. **First ask**: "Are you sure?" (show file tree)
58
+ 2. **Options**:
59
+ - "Yes, delete permanently" - Proceed with deletion
60
+ - "No, keep it" - Cancel
61
+ - "Export first" - Create backup first
62
+
63
+ ### ๐Ÿšจ RULE #4: Handle Backup Request
64
+ If user chooses "Export first":
65
+ ```bash
66
+ mkdir -p .claude/skills-backup/
67
+ cp -r .claude/skills/<skill> .claude/skills-backup/<skill>-$(date +%Y%m%d-%H%M%S)/
68
+ ```
69
+ Show backup location, then return to confirmation.
70
+
71
+ ### ๐Ÿšจ RULE #5: Execute Deletion
72
+ After confirmed deletion:
73
+ ```bash
74
+ rm -rf .claude/skills/<skill>/
75
+ ```
76
+ Show confirmation message with success emoji.
77
+
78
+ ### ๐Ÿšจ RULE #6: Offer Next Actions
79
+ After deletion, ask:
80
+ ```
81
+ What would you like to do next?
82
+ - Delete another skill
83
+ - Create new skill
84
+ - List remaining skills
85
+ - Done
86
+ ```
87
+
88
+ ### Safety Features
89
+ | Feature | Purpose |
90
+ |---------|---------|
91
+ | Show file tree | User sees EXACTLY what's deleted |
92
+ | Explicit confirmation | Can't accidentally delete |
93
+ | Backup option | Can recover if needed |
94
+ | One at a time | No batch delete accidents |
95
+ | Timestamp in backup | Identify which version backed up |
96
+
97
+ ### Backup Location
98
+ ```
99
+ .claude/skills-backup/<skill>-<YYYYMMDD-HHMMSS>/
100
+ ```
101
+
102
+ Example:
103
+ ```
104
+ .claude/skills-backup/supabase-swift-20251227-143052/
105
+ โ”œโ”€โ”€ SKILL.md
106
+ โ”œโ”€โ”€ references.md
107
+ โ”œโ”€โ”€ cookbook/
108
+ โ””โ”€โ”€ .mcp.json
109
+ ```
110
+
111
+ ### Anti-Patterns
112
+ - โŒ DON'T delete without showing file tree
113
+ - โŒ DON'T proceed without explicit confirmation
114
+ - โŒ DON'T skip backup option offer
115
+ - โŒ DON'T allow batch/wildcard deletes (one at a time)
116
+ - โŒ DON'T delete without confirming again if backup created
117
+
118
+ ### REMEMBER AFTER COMPACTION
119
+ - Delete is always: Select โ†’ Show tree โ†’ Ask confirm โ†’ [Backup if requested] โ†’ Delete โ†’ Show next actions
120
+ - NEVER delete without explicit confirmation
121
+ - Always offer backup option before deletion
122
+ - Backup goes to .claude/skills-backup/ with timestamp
123
+ - One skill at a time (no batch delete)
124
+
125
+ <!-- COMPACT_SUMMARY_END -->
126
+
127
+ ---
128
+
12
129
  ## Workflow
13
130
 
14
131
  ### STEP 1: Select skill to delete
@@ -1,6 +1,20 @@
1
1
  ---
2
2
  description: Edit an existing skill's SKILL.md, cookbook entries, or references
3
3
  argument-hint: [SKILL_NAME] (optional)
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:skill:edit - Modifies existing skills"
8
+ - "MUST list available skills if SKILL_NAME not provided"
9
+ - "MUST show skill structure before asking what to edit"
10
+ - "MUST offer special edits: rename, add cookbook, full rewrite (Plan Mode)"
11
+ - "MUST preview changes with diff before writing"
12
+ - "MUST ask for confirmation before any file writes"
13
+ - "For full rewrite: MUST enter Plan Mode and research before regenerating"
14
+ state_fields:
15
+ - selected_skill
16
+ - edit_target_file
17
+ - has_changes_pending
4
18
  ---
5
19
 
6
20
  # /agileflow:skill:edit
@@ -9,6 +23,96 @@ Modify an existing skill in `.claude/skills/`.
9
23
 
10
24
  ---
11
25
 
26
+ <!-- COMPACT_SUMMARY_START -->
27
+
28
+ ## ๐Ÿšจ COMPACT SUMMARY - /agileflow:skill:edit IS ACTIVE
29
+
30
+ **CRITICAL**: This command modifies existing skills with preview and confirmation.
31
+
32
+ ### ๐Ÿšจ RULE #1: Select Skill
33
+ If SKILL_NAME not provided:
34
+ ```bash
35
+ ls -d .claude/skills/*/ | xargs -I {} basename {}
36
+ ```
37
+ Show options and ask user which to edit.
38
+
39
+ ### ๐Ÿšจ RULE #2: Show Skill Structure
40
+ Display current skill contents before asking what to edit:
41
+ ```
42
+ ๐Ÿ“ Editing: skill-name
43
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
44
+ Files:
45
+ 1. SKILL.md (main skill file)
46
+ 2. references.md (documentation links)
47
+ 3. cookbook/use-case-1.md
48
+ 4. cookbook/use-case-2.md
49
+ 5. .mcp.json (MCP configuration)
50
+ ```
51
+
52
+ ### ๐Ÿšจ RULE #3: Ask What to Edit
53
+ Offer these options:
54
+ 1. **SKILL.md** - Main skill instructions
55
+ 2. **references.md** - Update documentation links
56
+ 3. **Cookbook entry** - Edit specific use-case workflow
57
+ 4. **Add new cookbook** - Create new use-case workflow
58
+ 5. **MCP configuration** - Modify MCP server settings
59
+ 6. **Rename skill** - Change skill name and folder
60
+
61
+ ### ๐Ÿšจ RULE #4: Read Current Content
62
+ Before editing, always read the file:
63
+ ```bash
64
+ cat .claude/skills/<skill>/<file>
65
+ ```
66
+
67
+ ### ๐Ÿšจ RULE #5: Preview Before Writing
68
+ For any change:
69
+ 1. Show diff preview (- old, + new)
70
+ 2. Ask for confirmation
71
+ 3. Only write if confirmed
72
+
73
+ ### ๐Ÿšจ RULE #6: Special Edits
74
+ | Edit Type | Process |
75
+ |-----------|---------|
76
+ | Full rewrite | Enter Plan Mode, research, generate with approval |
77
+ | Rename | Validate name, create new dir, copy files, update frontmatter, delete old |
78
+ | Add cookbook | Create from template, update SKILL.md references |
79
+ | Regular edits | Read โ†’ Edit โ†’ Preview โ†’ Confirm โ†’ Write |
80
+
81
+ ### ๐Ÿšจ RULE #7: For Full Rewrite
82
+ If user selects "Full rewrite (Recommended)":
83
+ 1. Enter Plan Mode
84
+ 2. Research web/local/codebase again
85
+ 3. Show updated plan to user
86
+ 4. Get approval
87
+ 5. Exit Plan Mode
88
+ 6. Regenerate the file with new research
89
+
90
+ ### Critical Edit Operations
91
+ | Operation | Check | Action |
92
+ |-----------|-------|--------|
93
+ | Rename | Name is valid | Copy dir + update frontmatter + delete old |
94
+ | Add cookbook | Template ready | Create file + update SKILL.md |
95
+ | Change SKILL.md | Diff ready | Show preview + confirm + write |
96
+ | Modify references.md | Links valid | Show preview + confirm + write |
97
+
98
+ ### Anti-Patterns
99
+ - โŒ DON'T modify files without preview
100
+ - โŒ DON'T skip diff confirmation
101
+ - โŒ DON'T rename without validating new name
102
+ - โŒ DON'T offer "full rewrite" without Plan Mode
103
+ - โŒ DON'T leave skill in broken state (always backup before changes)
104
+
105
+ ### REMEMBER AFTER COMPACTION
106
+ - Edit is always: Select โ†’ Show structure โ†’ Ask what โ†’ Read โ†’ Edit โ†’ Preview โ†’ Confirm โ†’ Write
107
+ - Full rewrite means Plan Mode + research + approval
108
+ - Always show diffs before writing
109
+ - Rename requires copying and updating frontmatter
110
+ - New cookbook entries need SKILL.md updated too
111
+
112
+ <!-- COMPACT_SUMMARY_END -->
113
+
114
+ ---
115
+
12
116
  ## Workflow
13
117
 
14
118
  ### STEP 1: Select skill to edit
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  description: List all installed skills with their descriptions and status
3
3
  argument-hint: (no arguments)
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:skill:list - Shows installed skills inventory"
8
+ - "MUST scan .claude/skills/ directory for all skill subdirectories"
9
+ - "MUST extract name/description from each SKILL.md frontmatter"
10
+ - "MUST count supporting files (cookbook/*, references.md, .mcp.json)"
11
+ - "MUST show MCP status indicator if .mcp.json exists"
12
+ - "MUST offer skill management actions after listing"
13
+ state_fields:
14
+ - skills_found_count
15
+ - has_mcp_skills
4
16
  ---
5
17
 
6
18
  # /agileflow:skill:list
@@ -9,6 +21,79 @@ Display all skills installed in `.claude/skills/` with their metadata.
9
21
 
10
22
  ---
11
23
 
24
+ <!-- COMPACT_SUMMARY_START -->
25
+
26
+ ## ๐Ÿšจ COMPACT SUMMARY - /agileflow:skill:list IS ACTIVE
27
+
28
+ **CRITICAL**: This command inventories all installed skills and their metadata.
29
+
30
+ ### ๐Ÿšจ RULE #1: Check Directory Exists
31
+ ```bash
32
+ ls -la .claude/skills/ 2>/dev/null
33
+ ```
34
+ If directory missing or empty, show helpful message to create a skill.
35
+
36
+ ### ๐Ÿšจ RULE #2: Scan Each Skill
37
+ For EACH subdirectory in `.claude/skills/`:
38
+ 1. Read SKILL.md frontmatter for `name:` and `description:`
39
+ 2. Count supporting files:
40
+ - cookbook/*.md (all files)
41
+ - references.md (if exists)
42
+ - .mcp.json (if exists)
43
+ 3. Check for MCP: If `.mcp.json` exists, mark "MCP: โœ“"
44
+
45
+ ### ๐Ÿšจ RULE #3: Format Output
46
+ Display in clean table format:
47
+ ```
48
+ ๐Ÿ“ฆ Installed Skills (N total)
49
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
50
+ skill-name Description here MCP: โœ“
51
+ โ””โ”€ X files: file1, file2, file3
52
+ ```
53
+
54
+ ### ๐Ÿšจ RULE #4: Show File Count
55
+ - Total files per skill (SKILL.md + references.md + cookbook/*.md + .mcp.json)
56
+ - List cookbook files by name (only cookbook/, not full path)
57
+ - Note MCP configuration status
58
+
59
+ ### ๐Ÿšจ RULE #5: Offer Actions After Listing
60
+ After showing all skills, ask:
61
+ ```
62
+ What would you like to do?
63
+ - Create new skill
64
+ - Edit a skill
65
+ - Delete a skill
66
+ - Test a skill
67
+ - Done
68
+ ```
69
+
70
+ ### Critical Output Elements
71
+ | Element | Shows |
72
+ |---------|-------|
73
+ | Total count | "N total" in header |
74
+ | Skill names | From SKILL.md `name:` field |
75
+ | Description | From SKILL.md `description:` field |
76
+ | File count | Total files in skill directory |
77
+ | MCP status | "โœ“" if .mcp.json exists, nothing otherwise |
78
+
79
+ ### Anti-Patterns
80
+ - โŒ DON'T fail if directory doesn't exist (create helpful message)
81
+ - โŒ DON'T list hidden files or system files
82
+ - โŒ DON'T show full file paths (just filenames)
83
+ - โŒ DON'T try to parse corrupt SKILL.md (skip with warning)
84
+ - โŒ DON'T forget to offer next actions
85
+
86
+ ### REMEMBER AFTER COMPACTION
87
+ - List is inventory-only, no modifications
88
+ - Always scan .claude/skills/ directory
89
+ - Extract metadata from SKILL.md frontmatter
90
+ - Show file counts and MCP status indicators
91
+ - Offer management actions after listing
92
+
93
+ <!-- COMPACT_SUMMARY_END -->
94
+
95
+ ---
96
+
12
97
  ## Output Format
13
98
 
14
99
  ```
@@ -153,3 +238,46 @@ If frontmatter can't be parsed:
153
238
  # List all installed skills
154
239
  /agileflow:skill:list
155
240
  ```
241
+
242
+ ---
243
+
244
+ ## POST-LISTING ACTIONS
245
+
246
+ After displaying the skill inventory, offer actions:
247
+
248
+ ```xml
249
+ <invoke name="AskUserQuestion">
250
+ <parameter name="questions">[{
251
+ "question": "What would you like to do?",
252
+ "header": "Actions",
253
+ "multiSelect": false,
254
+ "options": [
255
+ {"label": "Create new skill", "description": "Build a research-backed custom skill"},
256
+ {"label": "Test a skill", "description": "Verify a skill works correctly"},
257
+ {"label": "Edit a skill", "description": "Modify an existing skill"},
258
+ {"label": "Done", "description": "Exit"}
259
+ ]
260
+ }]</parameter>
261
+ </invoke>
262
+ ```
263
+
264
+ **If "Create new skill"**:
265
+ - Run `/agileflow:skill:create`
266
+
267
+ **If "Test a skill"**:
268
+ - Ask which skill to test
269
+ - Run `/agileflow:skill:test SKILL=<selected>`
270
+
271
+ **If "Edit a skill"**:
272
+ - Ask which skill to edit
273
+ - Run `/agileflow:skill:edit SKILL=<selected>`
274
+
275
+ ---
276
+
277
+ ## Related Commands
278
+
279
+ - `/agileflow:skill:create` - Build new research-backed skill
280
+ - `/agileflow:skill:test` - Test a skill with sample inputs
281
+ - `/agileflow:skill:edit` - Modify an existing skill
282
+ - `/agileflow:skill:delete` - Remove a skill
283
+ - `/agileflow:skill:upgrade` - Update skill with new patterns
@@ -1,6 +1,20 @@
1
1
  ---
2
2
  description: Verify a skill works correctly by testing its activation and functionality
3
3
  argument-hint: [SKILL_NAME] (optional)
4
+ compact_context:
5
+ priority: medium
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:skill:test - Validates skill structure and functionality"
8
+ - "MUST list available skills if SKILL_NAME not provided"
9
+ - "MUST run structure validation checks (file existence, frontmatter, sizes)"
10
+ - "MUST run content validation checks (section presence, file references)"
11
+ - "MUST offer optional activation test with sample prompts"
12
+ - "MUST generate test report with pass/fail/warning indicators"
13
+ - "MUST suggest fixes for validation failures"
14
+ state_fields:
15
+ - selected_skill
16
+ - validation_results
17
+ - test_report_generated
4
18
  ---
5
19
 
6
20
  # /agileflow:skill:test
@@ -9,6 +23,127 @@ Test a skill to verify it activates correctly and produces expected results.
9
23
 
10
24
  ---
11
25
 
26
+ <!-- COMPACT_SUMMARY_START -->
27
+
28
+ ## ๐Ÿšจ COMPACT SUMMARY - /agileflow:skill:test IS ACTIVE
29
+
30
+ **CRITICAL**: This command validates skills through structure, content, and optional activation testing.
31
+
32
+ ### ๐Ÿšจ RULE #1: Select Skill
33
+ If SKILL_NAME not provided:
34
+ ```bash
35
+ ls -d .claude/skills/*/ | xargs -I {} basename {}
36
+ ```
37
+ Show options and ask user which to test.
38
+
39
+ ### ๐Ÿšจ RULE #2: Run Structure Validation
40
+ Check these in order:
41
+ ```
42
+ โœ… SKILL.md exists (file present)
43
+ โœ… Frontmatter has name and description
44
+ โœ… references.md exists
45
+ โš ๏ธ cookbook/ directory (ok if missing for simple skills)
46
+ โš ๏ธ .mcp.json (ok if MCP not configured)
47
+ ```
48
+
49
+ ### ๐Ÿšจ RULE #3: Run Content Validation
50
+ Check these in order:
51
+ ```
52
+ โœ… "When to Use" section present
53
+ โœ… Description under 1024 characters
54
+ โœ… SKILL.md under 500 lines
55
+ โœ… All cookbook files referenced in SKILL.md actually exist
56
+ ```
57
+
58
+ ### ๐Ÿšจ RULE #4: Show Validation Results
59
+ Display in report format:
60
+ ```
61
+ ๐Ÿงช Testing: skill-name
62
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
63
+ Structure: โœ… PASS (5/5 checks)
64
+ Content: โœ… PASS (4/4 checks)
65
+ MCP Config: โš ๏ธ NOT CONFIGURED
66
+
67
+ Overall: โœ… SKILL IS FUNCTIONAL
68
+ ```
69
+
70
+ ### ๐Ÿšจ RULE #5: Offer Activation Test (Optional)
71
+ Ask after structure/content validation:
72
+ ```
73
+ Would you like to test skill activation with sample prompts?
74
+ - Yes, test activation (Recommended)
75
+ - Skip activation test
76
+ - View SKILL.md content
77
+ ```
78
+
79
+ ### ๐Ÿšจ RULE #6: Run Activation Test (if requested)
80
+ 1. Extract sample triggers from "When to Use" section
81
+ 2. Present 2-3 test prompts to user
82
+ 3. Ask user to pick one or provide custom
83
+ 4. Execute skill by reading SKILL.md and following instructions
84
+ 5. Report activation results
85
+
86
+ ### ๐Ÿšจ RULE #7: Generate Final Report
87
+ Report MUST include:
88
+ - Structure validation pass/fail
89
+ - Content validation pass/fail
90
+ - Activation test pass/fail (if run)
91
+ - Issues found (if any)
92
+ - Recommendations (if any)
93
+ - Overall status: PASS/WARNINGS/FAIL
94
+
95
+ ### Validation Checks Table
96
+ | Category | Check | Pass Condition |
97
+ |----------|-------|----------------|
98
+ | Structure | SKILL.md exists | File present |
99
+ | Structure | Frontmatter valid | Has name + description |
100
+ | Structure | references.md | File exists (optional) |
101
+ | Structure | cookbook/ | Directory exists (optional) |
102
+ | Content | When to Use | Section present with triggers |
103
+ | Content | Description | Under 1024 characters |
104
+ | Content | SKILL.md size | Under 500 lines |
105
+ | Content | Cookbook refs | All files exist |
106
+ | MCP | JSON valid | Parses without errors |
107
+ | MCP | mcpServers | Object present |
108
+
109
+ ### Test Report Format
110
+ ```
111
+ ๐Ÿงช Skill Test Report: <skill-name>
112
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
113
+
114
+ STRUCTURE VALIDATION
115
+ โœ… SKILL.md exists
116
+ โœ… Frontmatter valid
117
+ โš ๏ธ references.md exists
118
+ โœ… cookbook/ directory
119
+
120
+ CONTENT VALIDATION
121
+ โœ… "When to Use" section
122
+ โœ… Description < 1024 chars (456)
123
+ โœ… SKILL.md < 500 lines (287)
124
+ โœ… Cookbook refs valid
125
+
126
+ OVERALL: โœ… PASS
127
+ ```
128
+
129
+ ### Anti-Patterns
130
+ - โŒ DON'T skip structure validation (foundation of quality)
131
+ - โŒ DON'T fail on missing optional files (warn instead)
132
+ - โŒ DON'T run activation test without user consent
133
+ - โŒ DON'T generate complex test prompts (keep simple)
134
+ - โŒ DON'T forget to suggest fixes for failures
135
+
136
+ ### REMEMBER AFTER COMPACTION
137
+ - Test has 2-3 phases: Structure โ†’ Content โ†’ [Activation if requested]
138
+ - Always generate full report with pass/fail indicators
139
+ - Activation test is optional (ask first)
140
+ - Warn on optional files missing, fail on required files
141
+ - Suggest fixes for any validation failures
142
+
143
+ <!-- COMPACT_SUMMARY_END -->
144
+
145
+ ---
146
+
12
147
  ## Workflow
13
148
 
14
149
  ### STEP 1: Select skill to test