agileflow 2.94.0 → 2.95.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 (80) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +6 -6
  3. package/lib/colors.generated.js +117 -0
  4. package/lib/colors.js +59 -109
  5. package/lib/generator-factory.js +333 -0
  6. package/lib/path-utils.js +49 -0
  7. package/lib/session-registry.js +25 -15
  8. package/lib/smart-json-file.js +40 -32
  9. package/lib/state-machine.js +286 -0
  10. package/package.json +1 -1
  11. package/scripts/agileflow-configure.js +7 -6
  12. package/scripts/archive-completed-stories.sh +86 -11
  13. package/scripts/babysit-context-restore.js +89 -0
  14. package/scripts/claude-tmux.sh +186 -7
  15. package/scripts/damage-control/bash-tool-damage-control.js +11 -247
  16. package/scripts/damage-control/edit-tool-damage-control.js +9 -249
  17. package/scripts/damage-control/write-tool-damage-control.js +9 -244
  18. package/scripts/generate-colors.js +314 -0
  19. package/scripts/lib/colors.generated.sh +82 -0
  20. package/scripts/lib/colors.sh +10 -70
  21. package/scripts/lib/configure-features.js +401 -0
  22. package/scripts/lib/context-loader.js +181 -52
  23. package/scripts/precompact-context.sh +54 -17
  24. package/scripts/session-coordinator.sh +2 -2
  25. package/scripts/session-manager.js +677 -11
  26. package/src/core/agents/council-advocate.md +202 -0
  27. package/src/core/agents/council-analyst.md +248 -0
  28. package/src/core/agents/council-optimist.md +166 -0
  29. package/src/core/commands/audit.md +93 -0
  30. package/src/core/commands/auto.md +73 -0
  31. package/src/core/commands/babysit.md +169 -13
  32. package/src/core/commands/baseline.md +73 -0
  33. package/src/core/commands/batch.md +64 -0
  34. package/src/core/commands/blockers.md +60 -0
  35. package/src/core/commands/board.md +66 -0
  36. package/src/core/commands/choose.md +77 -0
  37. package/src/core/commands/ci.md +77 -0
  38. package/src/core/commands/compress.md +27 -1
  39. package/src/core/commands/configure.md +126 -10
  40. package/src/core/commands/council.md +591 -0
  41. package/src/core/commands/debt.md +72 -0
  42. package/src/core/commands/deploy.md +73 -0
  43. package/src/core/commands/deps.md +68 -0
  44. package/src/core/commands/docs.md +60 -0
  45. package/src/core/commands/feedback.md +68 -0
  46. package/src/core/commands/help.md +189 -3
  47. package/src/core/commands/ideate.md +219 -20
  48. package/src/core/commands/impact.md +74 -0
  49. package/src/core/commands/install.md +529 -0
  50. package/src/core/commands/maintain.md +558 -0
  51. package/src/core/commands/metrics.md +75 -0
  52. package/src/core/commands/multi-expert.md +74 -0
  53. package/src/core/commands/packages.md +69 -0
  54. package/src/core/commands/readme-sync.md +64 -0
  55. package/src/core/commands/research/analyze.md +285 -121
  56. package/src/core/commands/research/import.md +281 -109
  57. package/src/core/commands/retro.md +76 -0
  58. package/src/core/commands/review.md +72 -0
  59. package/src/core/commands/rlm.md +83 -0
  60. package/src/core/commands/rpi.md +90 -0
  61. package/src/core/commands/session/cleanup.md +214 -12
  62. package/src/core/commands/session/end.md +229 -17
  63. package/src/core/commands/sprint.md +72 -0
  64. package/src/core/commands/story-validate.md +68 -0
  65. package/src/core/commands/template.md +69 -0
  66. package/src/core/commands/tests.md +83 -0
  67. package/src/core/commands/update.md +59 -0
  68. package/src/core/commands/validate-expertise.md +76 -0
  69. package/src/core/commands/velocity.md +74 -0
  70. package/src/core/commands/verify.md +91 -0
  71. package/src/core/commands/whats-new.md +69 -0
  72. package/src/core/commands/workflow.md +88 -0
  73. package/src/core/council/sessions/.gitkeep +0 -0
  74. package/src/core/council/shared_reasoning.template.md +106 -0
  75. package/src/core/templates/command-documentation.md +187 -0
  76. package/tools/cli/commands/session.js +1171 -0
  77. package/tools/cli/commands/setup.js +2 -81
  78. package/tools/cli/installers/core/installer.js +0 -5
  79. package/tools/cli/installers/ide/claude-code.js +6 -0
  80. package/tools/cli/lib/config-manager.js +42 -5
@@ -0,0 +1,187 @@
1
+ # Command Documentation Template
2
+
3
+ This template provides a standardized structure for documenting AgileFlow slash commands.
4
+
5
+ ## File Structure
6
+
7
+ ```markdown
8
+ ---
9
+ # REQUIRED: Frontmatter section
10
+ description: Brief one-line description of what the command does
11
+ argument-hint: PARAM1=<value> [PARAM2=<optional>]
12
+ compact_context:
13
+ priority: high|medium|low
14
+ preserve_rules:
15
+ - "Rule descriptions for compact context"
16
+ state_fields:
17
+ - field_name
18
+ ---
19
+
20
+ # command-name
21
+
22
+ Full description of the command's purpose and primary use case.
23
+
24
+ ---
25
+
26
+ ## STEP 0: Gather Context
27
+
28
+ ```bash
29
+ node .agileflow/scripts/obtain-context.js command-name
30
+ ```
31
+
32
+ This gathers relevant context for the command.
33
+
34
+ ---
35
+
36
+ ## Context Loading (Documentation)
37
+
38
+ **PURPOSE**: Description of why context is loaded.
39
+
40
+ **ACTIONS**:
41
+ 1. Action item 1
42
+ 2. Action item 2
43
+
44
+ **WHY**: Explanation of benefits.
45
+
46
+ ---
47
+
48
+ ## Syntax
49
+
50
+ ```
51
+ /agileflow:command-name PARAM1=value [PARAM2=optional]
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ | Parameter | Required | Default | Description |
57
+ |-----------|----------|---------|-------------|
58
+ | PARAM1 | Yes | - | Description |
59
+ | PARAM2 | No | default | Description |
60
+
61
+ ---
62
+
63
+ ## Examples
64
+
65
+ ### Basic Usage
66
+
67
+ ```
68
+ /agileflow:command-name PARAM1=example
69
+ ```
70
+
71
+ ### Advanced Usage
72
+
73
+ ```
74
+ /agileflow:command-name PARAM1=example PARAM2=custom
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Expected Output
80
+
81
+ ### Success Case
82
+
83
+ ```
84
+ ✓ Operation completed successfully
85
+
86
+ Results:
87
+ - Item 1: value
88
+ - Item 2: value
89
+ ```
90
+
91
+ ### Error Cases
92
+
93
+ #### Missing Required Parameter
94
+
95
+ ```
96
+ ❌ Error: PARAM1 is required
97
+ Usage: /agileflow:command-name PARAM1=<value>
98
+ ```
99
+
100
+ #### Invalid Parameter Value
101
+
102
+ ```
103
+ ❌ Error: Invalid value for PARAM1: 'invalid'
104
+ Expected: description of valid values
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Related Commands
110
+
111
+ - `/agileflow:related1` - Description
112
+ - `/agileflow:related2` - Description
113
+
114
+ ---
115
+
116
+ ## Troubleshooting
117
+
118
+ ### Common Issue 1
119
+
120
+ **Symptom**: Description of what goes wrong.
121
+
122
+ **Cause**: Explanation of why it happens.
123
+
124
+ **Solution**: Steps to resolve.
125
+
126
+ ### Common Issue 2
127
+
128
+ **Symptom**: Description.
129
+
130
+ **Cause**: Explanation.
131
+
132
+ **Solution**: Steps.
133
+
134
+ ---
135
+
136
+ ## See Also
137
+
138
+ - [Practice Guide](link) - Related practice documentation
139
+ - [Architecture Doc](link) - Technical implementation details
140
+ ```
141
+
142
+ ## Best Practices for Command Documentation
143
+
144
+ ### 1. Description Quality
145
+
146
+ - **Frontmatter description**: Keep to one line, action-oriented (e.g., "Create a new story" not "This command creates stories")
147
+ - **Main description**: 1-2 sentences explaining the command's purpose and when to use it
148
+
149
+ ### 2. Expected Output Section
150
+
151
+ Always include:
152
+ - **Success case**: Show actual CLI output the user will see
153
+ - **At least 2 error cases**: Common failures with their messages
154
+ - Use actual ANSI color indicators if present:
155
+ - `✓` (green) for success
156
+ - `❌` (red) for errors
157
+ - `⚠️` (yellow) for warnings
158
+
159
+ ### 3. Parameter Documentation
160
+
161
+ - Table format for clarity
162
+ - Always specify Required/Optional
163
+ - Include default values
164
+ - Provide meaningful descriptions
165
+
166
+ ### 4. Examples
167
+
168
+ - Start with simplest usage
169
+ - Progress to advanced scenarios
170
+ - Include real-world use cases
171
+
172
+ ### 5. Consistency
173
+
174
+ - Use consistent heading levels
175
+ - Follow the template structure
176
+ - Match the formatting of existing commands
177
+
178
+ ## Checklist Before Publishing
179
+
180
+ - [ ] Frontmatter has description and argument-hint
181
+ - [ ] Expected Output section exists
182
+ - [ ] At least one success example shown
183
+ - [ ] At least two error scenarios documented
184
+ - [ ] Parameters are documented in a table
185
+ - [ ] Examples demonstrate common use cases
186
+ - [ ] Related commands are linked
187
+ - [ ] Troubleshooting section addresses common issues