@pjmendonca/devflow 1.9.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/CHANGELOG.md +526 -0
- package/LICENSE +21 -0
- package/README.md +620 -0
- package/bin/devflow-checkpoint.js +10 -0
- package/bin/devflow-collab.js +10 -0
- package/bin/devflow-cost.js +10 -0
- package/bin/devflow-create-persona.js +10 -0
- package/bin/devflow-init.js +10 -0
- package/bin/devflow-memory.js +10 -0
- package/bin/devflow-new-doc.js +10 -0
- package/bin/devflow-personalize.js +10 -0
- package/bin/devflow-setup-checkpoint.js +10 -0
- package/bin/devflow-story.js +10 -0
- package/bin/devflow-tech-debt.js +10 -0
- package/bin/devflow-validate-overrides.js +10 -0
- package/bin/devflow-validate.js +10 -0
- package/bin/devflow-version.js +10 -0
- package/lib/constants.js +30 -0
- package/lib/exec-python.js +78 -0
- package/lib/python-check.js +178 -0
- package/package.json +64 -0
- package/tooling/.automation/agents/architect.md +135 -0
- package/tooling/.automation/agents/ba.md +70 -0
- package/tooling/.automation/agents/dev.md +79 -0
- package/tooling/.automation/agents/maintainer.md +97 -0
- package/tooling/.automation/agents/pm.md +116 -0
- package/tooling/.automation/agents/reviewer.md +141 -0
- package/tooling/.automation/agents/sm.md +61 -0
- package/tooling/.automation/agents/writer.md +193 -0
- package/tooling/.automation/config.ps1.template +61 -0
- package/tooling/.automation/config.sh.template +48 -0
- package/tooling/.automation/memory/.gitkeep +6 -0
- package/tooling/.automation/memory/knowledge/kg_integration-test.json +94 -0
- package/tooling/.automation/memory/knowledge/kg_test-story.json +300 -0
- package/tooling/.automation/memory/shared/shared_integration-test.json +30 -0
- package/tooling/.automation/memory/shared/shared_test-story.json +78 -0
- package/tooling/.automation/overrides/templates/README.md +113 -0
- package/tooling/.automation/overrides/templates/architect/README.md +27 -0
- package/tooling/.automation/overrides/templates/architect/cloud-native.yaml +92 -0
- package/tooling/.automation/overrides/templates/architect/enterprise-architect.yaml +85 -0
- package/tooling/.automation/overrides/templates/architect/pragmatic-minimalist.yaml +88 -0
- package/tooling/.automation/overrides/templates/ba/README.md +27 -0
- package/tooling/.automation/overrides/templates/ba/agile-storyteller.yaml +86 -0
- package/tooling/.automation/overrides/templates/ba/domain-expert.yaml +91 -0
- package/tooling/.automation/overrides/templates/ba/requirements-engineer.yaml +89 -0
- package/tooling/.automation/overrides/templates/dev/README.md +32 -0
- package/tooling/.automation/overrides/templates/dev/junior-mentored.yaml +39 -0
- package/tooling/.automation/overrides/templates/dev/performance-engineer.yaml +43 -0
- package/tooling/.automation/overrides/templates/dev/rapid-prototyper.yaml +52 -0
- package/tooling/.automation/overrides/templates/dev/security-focused.yaml +43 -0
- package/tooling/.automation/overrides/templates/dev/senior-fullstack.yaml +39 -0
- package/tooling/.automation/overrides/templates/maintainer/README.md +27 -0
- package/tooling/.automation/overrides/templates/maintainer/devops-maintainer.yaml +113 -0
- package/tooling/.automation/overrides/templates/maintainer/legacy-steward.yaml +94 -0
- package/tooling/.automation/overrides/templates/maintainer/oss-maintainer.yaml +94 -0
- package/tooling/.automation/overrides/templates/pm/README.md +27 -0
- package/tooling/.automation/overrides/templates/pm/agile-pm.yaml +91 -0
- package/tooling/.automation/overrides/templates/pm/hybrid-delivery.yaml +87 -0
- package/tooling/.automation/overrides/templates/pm/traditional-pm.yaml +91 -0
- package/tooling/.automation/overrides/templates/reviewer/README.md +11 -0
- package/tooling/.automation/overrides/templates/reviewer/mentoring-reviewer.yaml +45 -0
- package/tooling/.automation/overrides/templates/reviewer/quick-sanity.yaml +50 -0
- package/tooling/.automation/overrides/templates/reviewer/thorough-critic.yaml +48 -0
- package/tooling/.automation/overrides/templates/sm/README.md +11 -0
- package/tooling/.automation/overrides/templates/sm/agile-coach.yaml +52 -0
- package/tooling/.automation/overrides/templates/sm/startup-pm.yaml +50 -0
- package/tooling/.automation/overrides/templates/sm/technical-lead.yaml +47 -0
- package/tooling/.automation/overrides/templates/user-profile.template.yaml +62 -0
- package/tooling/.automation/overrides/templates/writer/README.md +27 -0
- package/tooling/.automation/overrides/templates/writer/api-documentarian.yaml +99 -0
- package/tooling/.automation/overrides/templates/writer/docs-as-code.yaml +108 -0
- package/tooling/.automation/overrides/templates/writer/user-guide-author.yaml +100 -0
- package/tooling/completions/DevflowCompletion.ps1 +213 -0
- package/tooling/completions/_run-story +116 -0
- package/tooling/completions/run-story-completion.bash +136 -0
- package/tooling/docs/DOC-STANDARD.md +717 -0
- package/tooling/docs/sprint-status.yaml.template +24 -0
- package/tooling/docs/templates/bug-report.md +234 -0
- package/tooling/docs/templates/migration-spec.md +274 -0
- package/tooling/docs/templates/refactor-spec.md +86 -0
- package/tooling/docs/templates/tech-debt.md +86 -0
- package/tooling/scripts/context_checkpoint.py +556 -0
- package/tooling/scripts/cost_dashboard.py +617 -0
- package/tooling/scripts/create-persona.py +690 -0
- package/tooling/scripts/create-persona.sh +435 -0
- package/tooling/scripts/init-project-workflow.ps1 +651 -0
- package/tooling/scripts/init-project-workflow.py +70 -0
- package/tooling/scripts/init-project-workflow.sh +746 -0
- package/tooling/scripts/lib/__init__.py +35 -0
- package/tooling/scripts/lib/agent_handoff.py +526 -0
- package/tooling/scripts/lib/agent_router.py +698 -0
- package/tooling/scripts/lib/checkpoint-integration.ps1 +245 -0
- package/tooling/scripts/lib/checkpoint-integration.sh +191 -0
- package/tooling/scripts/lib/claude-cli.ps1 +952 -0
- package/tooling/scripts/lib/claude-cli.sh +1293 -0
- package/tooling/scripts/lib/cost_config.py +222 -0
- package/tooling/scripts/lib/cost_display.py +443 -0
- package/tooling/scripts/lib/cost_tracker.py +710 -0
- package/tooling/scripts/lib/currency_converter.py +328 -0
- package/tooling/scripts/lib/errors.py +438 -0
- package/tooling/scripts/lib/override-loader.sh +286 -0
- package/tooling/scripts/lib/pair_programming.py +589 -0
- package/tooling/scripts/lib/shared_memory.py +637 -0
- package/tooling/scripts/lib/swarm_orchestrator.py +689 -0
- package/tooling/scripts/memory_summarize.py +324 -0
- package/tooling/scripts/new-doc.ps1 +405 -0
- package/tooling/scripts/new-doc.py +93 -0
- package/tooling/scripts/new-doc.sh +534 -0
- package/tooling/scripts/personalize_agent.py +385 -0
- package/tooling/scripts/rollback-migration.sh +540 -0
- package/tooling/scripts/run-collab.ps1 +251 -0
- package/tooling/scripts/run-collab.py +605 -0
- package/tooling/scripts/run-collab.sh +110 -0
- package/tooling/scripts/run-story.ps1 +490 -0
- package/tooling/scripts/run-story.py +387 -0
- package/tooling/scripts/run-story.sh +467 -0
- package/tooling/scripts/setup-checkpoint-service.ps1 +219 -0
- package/tooling/scripts/setup-checkpoint-service.py +87 -0
- package/tooling/scripts/setup-checkpoint-service.sh +236 -0
- package/tooling/scripts/tech-debt-tracker.py +608 -0
- package/tooling/scripts/update_version.py +244 -0
- package/tooling/scripts/validate-overrides.py +511 -0
- package/tooling/scripts/validate-overrides.sh +432 -0
- package/tooling/scripts/validate_setup.py +539 -0
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
# Documentation Standard - Stronger Project
|
|
2
|
+
|
|
3
|
+
**Version**: 1.0
|
|
4
|
+
**Last Updated**: 2025-12-20
|
|
5
|
+
**Applies To**: All documentation in `tooling/docs/`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
This document defines the standard format, structure, and conventions for all documentation in the Stronger project's `tooling/docs/` directory.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## File Naming Conventions
|
|
16
|
+
|
|
17
|
+
### Format
|
|
18
|
+
```
|
|
19
|
+
[TYPE]-[descriptive-name].md
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Types
|
|
23
|
+
|
|
24
|
+
**Greenfield (New Features)**:
|
|
25
|
+
- `GUIDE` - User-facing guides and tutorials
|
|
26
|
+
- `SPEC` - Technical specifications
|
|
27
|
+
- `STATUS` - Status reports and tracking documents
|
|
28
|
+
- `STANDARD` - Standards and conventions (like this doc)
|
|
29
|
+
- `REFERENCE` - Quick reference sheets
|
|
30
|
+
- `EXAMPLE` - Code examples and patterns
|
|
31
|
+
- `STORY` - Story specifications (numbered: `3-6-story-name.md`)
|
|
32
|
+
|
|
33
|
+
**Brownfield (Maintenance)**:
|
|
34
|
+
- `BUG` - Bug reports and fix summaries (in `bugs/`)
|
|
35
|
+
- `REFACTOR` - Refactoring specifications (in `refactors/`)
|
|
36
|
+
- `INVESTIGATION` - Codebase investigation reports (in `investigations/`)
|
|
37
|
+
- `MIGRATION` - Migration plans and logs (in `migrations/`)
|
|
38
|
+
- `DEBT` - Technical debt items (in `tech-debt/`)
|
|
39
|
+
|
|
40
|
+
### Examples
|
|
41
|
+
```
|
|
42
|
+
✅ Good:
|
|
43
|
+
- GUIDE-context-checkpoint.md
|
|
44
|
+
- SPEC-epic-3-goals.md
|
|
45
|
+
- STATUS-checkpoint-integration.md
|
|
46
|
+
- REFERENCE-automation-commands.md
|
|
47
|
+
- STANDARD-documentation.md
|
|
48
|
+
- EXAMPLE-checkpoint-integration.md
|
|
49
|
+
|
|
50
|
+
❌ Bad:
|
|
51
|
+
- context-checkpoint-guide.md
|
|
52
|
+
- epic3spec.md
|
|
53
|
+
- checkpoint_status.md
|
|
54
|
+
- automation.md
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Document Structure
|
|
60
|
+
|
|
61
|
+
### Required Sections (in order)
|
|
62
|
+
|
|
63
|
+
Every document MUST include these sections:
|
|
64
|
+
|
|
65
|
+
1. **Title** (H1)
|
|
66
|
+
2. **Metadata Block**
|
|
67
|
+
3. **Purpose/Overview**
|
|
68
|
+
4. **Table of Contents** (if >500 lines)
|
|
69
|
+
5. **Main Content**
|
|
70
|
+
6. **Footer**
|
|
71
|
+
|
|
72
|
+
### Optional Sections
|
|
73
|
+
|
|
74
|
+
Include as appropriate:
|
|
75
|
+
- Quick Start
|
|
76
|
+
- Examples
|
|
77
|
+
- Troubleshooting
|
|
78
|
+
- FAQ
|
|
79
|
+
- Related Documents
|
|
80
|
+
- Changelog
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Template
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
# [Document Title]
|
|
88
|
+
|
|
89
|
+
**Type**: [Guide|Spec|Status|Reference|Example]
|
|
90
|
+
**Version**: X.Y
|
|
91
|
+
**Last Updated**: YYYY-MM-DD
|
|
92
|
+
**Author**: [Agent/Person]
|
|
93
|
+
**Status**: [Draft|Active|Deprecated]
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Purpose
|
|
98
|
+
|
|
99
|
+
[1-2 sentence description of what this document is for]
|
|
100
|
+
|
|
101
|
+
## Table of Contents
|
|
102
|
+
|
|
103
|
+
- [Section 1](#section-1)
|
|
104
|
+
- [Section 2](#section-2)
|
|
105
|
+
...
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## [Main Content Sections]
|
|
110
|
+
|
|
111
|
+
...
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Related Documents
|
|
116
|
+
|
|
117
|
+
- [Link](path) - Description
|
|
118
|
+
- [Link](path) - Description
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
**Document Control**
|
|
123
|
+
- **Created**: YYYY-MM-DD
|
|
124
|
+
- **Last Reviewed**: YYYY-MM-DD
|
|
125
|
+
- **Next Review**: YYYY-MM-DD
|
|
126
|
+
- **Owner**: [Agent/Person]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Formatting Standards
|
|
132
|
+
|
|
133
|
+
### Headers
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
# H1 - Document Title Only (once per file)
|
|
137
|
+
|
|
138
|
+
## H2 - Major Sections
|
|
139
|
+
|
|
140
|
+
### H3 - Subsections
|
|
141
|
+
|
|
142
|
+
#### H4 - Sub-subsections (use sparingly)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Code Blocks
|
|
146
|
+
|
|
147
|
+
Always specify language:
|
|
148
|
+
|
|
149
|
+
````markdown
|
|
150
|
+
```bash
|
|
151
|
+
# Shell commands
|
|
152
|
+
./run-story.sh 3-7
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
```python
|
|
156
|
+
# Python code
|
|
157
|
+
def example():
|
|
158
|
+
pass
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
```yaml
|
|
162
|
+
# YAML
|
|
163
|
+
key: value
|
|
164
|
+
```
|
|
165
|
+
````
|
|
166
|
+
|
|
167
|
+
### Lists
|
|
168
|
+
|
|
169
|
+
**Bullet Lists**:
|
|
170
|
+
```markdown
|
|
171
|
+
- First level
|
|
172
|
+
- Second level (2 spaces)
|
|
173
|
+
- Third level (4 spaces)
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Numbered Lists**:
|
|
177
|
+
```markdown
|
|
178
|
+
1. First item
|
|
179
|
+
2. Second item
|
|
180
|
+
- Sub-item (mixed lists OK)
|
|
181
|
+
3. Third item
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Emphasis
|
|
185
|
+
|
|
186
|
+
```markdown
|
|
187
|
+
**Bold** for emphasis
|
|
188
|
+
*Italic* for light emphasis
|
|
189
|
+
`code` for inline code/commands
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Links
|
|
193
|
+
|
|
194
|
+
```markdown
|
|
195
|
+
# External
|
|
196
|
+
[Link Text](https://example.com)
|
|
197
|
+
|
|
198
|
+
# Internal
|
|
199
|
+
[Section](#section-name)
|
|
200
|
+
[Other Doc](./other-doc.md)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Tables
|
|
204
|
+
|
|
205
|
+
Always include header separator:
|
|
206
|
+
|
|
207
|
+
```markdown
|
|
208
|
+
| Column 1 | Column 2 | Column 3 |
|
|
209
|
+
|----------|----------|----------|
|
|
210
|
+
| Data | Data | Data |
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Alerts/Callouts
|
|
214
|
+
|
|
215
|
+
Use these emoji conventions:
|
|
216
|
+
|
|
217
|
+
```markdown
|
|
218
|
+
⚠️ **WARNING**: Important warning
|
|
219
|
+
|
|
220
|
+
💡 **TIP**: Helpful tip
|
|
221
|
+
|
|
222
|
+
📝 **NOTE**: Additional information
|
|
223
|
+
|
|
224
|
+
🚨 **CRITICAL**: Critical information
|
|
225
|
+
|
|
226
|
+
✅ **SUCCESS**: Successful outcome
|
|
227
|
+
|
|
228
|
+
❌ **ERROR**: Error or failure
|
|
229
|
+
|
|
230
|
+
🎯 **GOAL**: Objective or target
|
|
231
|
+
|
|
232
|
+
📊 **DATA**: Data or statistics
|
|
233
|
+
|
|
234
|
+
🔧 **TECHNICAL**: Technical details
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Content Guidelines
|
|
240
|
+
|
|
241
|
+
### Writing Style
|
|
242
|
+
|
|
243
|
+
1. **Active Voice**: "Run the script" not "The script should be run"
|
|
244
|
+
2. **Present Tense**: "The system creates" not "The system will create"
|
|
245
|
+
3. **Second Person**: "You can run" not "One can run" or "The user can run"
|
|
246
|
+
4. **Concise**: Remove unnecessary words
|
|
247
|
+
5. **Scannable**: Use headers, lists, and white space
|
|
248
|
+
|
|
249
|
+
### Examples
|
|
250
|
+
|
|
251
|
+
Always include:
|
|
252
|
+
- Input (what to type)
|
|
253
|
+
- Expected output
|
|
254
|
+
- Context (when/why to use)
|
|
255
|
+
|
|
256
|
+
```markdown
|
|
257
|
+
### Example: Creating a Checkpoint
|
|
258
|
+
|
|
259
|
+
**When to use**: Before risky operations
|
|
260
|
+
|
|
261
|
+
**Input**:
|
|
262
|
+
```bash
|
|
263
|
+
./tooling/scripts/checkpoint --checkpoint
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**Expected Output**:
|
|
267
|
+
```
|
|
268
|
+
[09:04:45] 💾 Creating checkpoint: checkpoint_20251220_090445_1
|
|
269
|
+
[09:04:45] ✅ Checkpoint saved: checkpoint_20251220_090445_1.json
|
|
270
|
+
```
|
|
271
|
+
````
|
|
272
|
+
|
|
273
|
+
### Commands
|
|
274
|
+
|
|
275
|
+
Format commands consistently:
|
|
276
|
+
|
|
277
|
+
```markdown
|
|
278
|
+
# Single command
|
|
279
|
+
./run-story.sh 3-7
|
|
280
|
+
|
|
281
|
+
# Command with output
|
|
282
|
+
$ ./run-story.sh 3-7
|
|
283
|
+
Story: 3-7-build-strength-progression-graph
|
|
284
|
+
...
|
|
285
|
+
|
|
286
|
+
# Multi-line command
|
|
287
|
+
python3 tooling/scripts/context_checkpoint.py \
|
|
288
|
+
--watch-log tooling/.automation/logs/3-7-develop.log \
|
|
289
|
+
--session-id 3-7
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Document Types
|
|
295
|
+
|
|
296
|
+
### 1. GUIDE Documents
|
|
297
|
+
|
|
298
|
+
**Purpose**: Help users accomplish a task
|
|
299
|
+
|
|
300
|
+
**Required Sections**:
|
|
301
|
+
- Purpose
|
|
302
|
+
- Prerequisites
|
|
303
|
+
- Quick Start
|
|
304
|
+
- Step-by-Step Instructions
|
|
305
|
+
- Examples
|
|
306
|
+
- Troubleshooting
|
|
307
|
+
- Next Steps
|
|
308
|
+
|
|
309
|
+
**Example**: `GUIDE-context-checkpoint.md`
|
|
310
|
+
|
|
311
|
+
### 2. SPEC Documents
|
|
312
|
+
|
|
313
|
+
**Purpose**: Define technical specifications
|
|
314
|
+
|
|
315
|
+
**Required Sections**:
|
|
316
|
+
- Overview
|
|
317
|
+
- Objectives and Scope
|
|
318
|
+
- Architecture
|
|
319
|
+
- Implementation Details
|
|
320
|
+
- Dependencies
|
|
321
|
+
- Testing Requirements
|
|
322
|
+
- Acceptance Criteria
|
|
323
|
+
|
|
324
|
+
**Example**: `SPEC-epic-3-goals.md`
|
|
325
|
+
|
|
326
|
+
### 3. STATUS Documents
|
|
327
|
+
|
|
328
|
+
**Purpose**: Track progress and state
|
|
329
|
+
|
|
330
|
+
**Required Sections**:
|
|
331
|
+
- Current Status
|
|
332
|
+
- Integration Points
|
|
333
|
+
- What's Working
|
|
334
|
+
- What's Not Working
|
|
335
|
+
- Next Steps
|
|
336
|
+
|
|
337
|
+
**Example**: `STATUS-checkpoint-integration.md`
|
|
338
|
+
|
|
339
|
+
### 4. REFERENCE Documents
|
|
340
|
+
|
|
341
|
+
**Purpose**: Quick lookup information
|
|
342
|
+
|
|
343
|
+
**Required Sections**:
|
|
344
|
+
- Quick Reference Tables
|
|
345
|
+
- Command List
|
|
346
|
+
- Common Patterns
|
|
347
|
+
- Links to Full Guides
|
|
348
|
+
|
|
349
|
+
**Example**: `REFERENCE-automation-commands.md`
|
|
350
|
+
|
|
351
|
+
### 5. EXAMPLE Documents
|
|
352
|
+
|
|
353
|
+
**Purpose**: Show how to use features
|
|
354
|
+
|
|
355
|
+
**Required Sections**:
|
|
356
|
+
- Problem Statement
|
|
357
|
+
- Solution Overview
|
|
358
|
+
- Complete Example Code
|
|
359
|
+
- Explanation
|
|
360
|
+
- Variations
|
|
361
|
+
|
|
362
|
+
**Example**: `EXAMPLE-checkpoint-integration.md`
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## Version Control
|
|
367
|
+
|
|
368
|
+
### Version Numbers
|
|
369
|
+
|
|
370
|
+
Format: `MAJOR.MINOR`
|
|
371
|
+
|
|
372
|
+
- **MAJOR**: Significant restructuring or breaking changes
|
|
373
|
+
- **MINOR**: Content updates, additions, clarifications
|
|
374
|
+
|
|
375
|
+
Example: `1.0` → `1.1` → `2.0`
|
|
376
|
+
|
|
377
|
+
### Changelog
|
|
378
|
+
|
|
379
|
+
Include at bottom of document:
|
|
380
|
+
|
|
381
|
+
```markdown
|
|
382
|
+
## Changelog
|
|
383
|
+
|
|
384
|
+
### 2.0 (2025-12-25)
|
|
385
|
+
- Major restructure of automation section
|
|
386
|
+
- Added new examples
|
|
387
|
+
|
|
388
|
+
### 1.1 (2025-12-20)
|
|
389
|
+
- Added troubleshooting section
|
|
390
|
+
- Fixed command examples
|
|
391
|
+
|
|
392
|
+
### 1.0 (2025-12-15)
|
|
393
|
+
- Initial version
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Directory Organization
|
|
399
|
+
|
|
400
|
+
```
|
|
401
|
+
tooling/docs/
|
|
402
|
+
├── standards/
|
|
403
|
+
│ └── DOC-STANDARD.md # This file
|
|
404
|
+
│
|
|
405
|
+
├── guides/
|
|
406
|
+
│ ├── GUIDE-context-checkpoint.md
|
|
407
|
+
│ ├── GUIDE-automation-setup.md
|
|
408
|
+
│ └── GUIDE-story-workflow.md
|
|
409
|
+
│
|
|
410
|
+
├── specs/
|
|
411
|
+
│ ├── SPEC-epic-1.md
|
|
412
|
+
│ ├── SPEC-epic-2.md
|
|
413
|
+
│ └── SPEC-epic-3.md
|
|
414
|
+
│
|
|
415
|
+
├── status/
|
|
416
|
+
│ ├── STATUS-checkpoint-integration.md
|
|
417
|
+
│ ├── STATUS-sprint.md
|
|
418
|
+
│ └── sprint-status.yaml
|
|
419
|
+
│
|
|
420
|
+
├── references/
|
|
421
|
+
│ ├── REFERENCE-automation-commands.md
|
|
422
|
+
│ ├── REFERENCE-git-workflow.md
|
|
423
|
+
│ └── STORY-POINTS-EPIC-3.md
|
|
424
|
+
│
|
|
425
|
+
├── examples/
|
|
426
|
+
│ ├── EXAMPLE-checkpoint-integration.md
|
|
427
|
+
│ └── EXAMPLE-persona-switching.md
|
|
428
|
+
│
|
|
429
|
+
├── stories/ # Greenfield stories
|
|
430
|
+
│ ├── 3-6-build-workout-frequency-chart.md
|
|
431
|
+
│ ├── 3-7-build-strength-progression-graph.md
|
|
432
|
+
│ └── ...
|
|
433
|
+
│
|
|
434
|
+
├── templates/ # Task templates
|
|
435
|
+
│ ├── bug-report.md
|
|
436
|
+
│ ├── refactor-spec.md
|
|
437
|
+
│ ├── migration-spec.md
|
|
438
|
+
│ └── tech-debt.md
|
|
439
|
+
│
|
|
440
|
+
├── bugs/ # Brownfield: Bug tracking
|
|
441
|
+
│ ├── login-crash.md
|
|
442
|
+
│ └── login-crash.fix-summary.md
|
|
443
|
+
│
|
|
444
|
+
├── refactors/ # Brownfield: Refactoring
|
|
445
|
+
│ ├── auth-service.md
|
|
446
|
+
│ └── auth-service.summary.md
|
|
447
|
+
│
|
|
448
|
+
├── investigations/ # Brownfield: Code exploration
|
|
449
|
+
│ └── payment-flow.md
|
|
450
|
+
│
|
|
451
|
+
├── migrations/ # Brownfield: Upgrades
|
|
452
|
+
│ ├── react-18-upgrade.md
|
|
453
|
+
│ └── react-18-upgrade.log.md
|
|
454
|
+
│
|
|
455
|
+
└── tech-debt/ # Brownfield: Technical debt
|
|
456
|
+
├── legacy-api.md
|
|
457
|
+
└── legacy-api.resolved.md
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## Review Process
|
|
463
|
+
|
|
464
|
+
### Required Reviews
|
|
465
|
+
|
|
466
|
+
1. **Self-Review**: Author checks against this standard
|
|
467
|
+
2. **Peer Review**: Another agent/person reviews
|
|
468
|
+
3. **Final Approval**: SM or Lead approves
|
|
469
|
+
|
|
470
|
+
### Review Checklist
|
|
471
|
+
|
|
472
|
+
- [ ] Follows naming convention
|
|
473
|
+
- [ ] Includes required metadata
|
|
474
|
+
- [ ] Has all required sections
|
|
475
|
+
- [ ] Code examples are tested
|
|
476
|
+
- [ ] Links are valid
|
|
477
|
+
- [ ] No spelling errors
|
|
478
|
+
- [ ] Scannable (headers, lists, whitespace)
|
|
479
|
+
- [ ] Examples include input/output
|
|
480
|
+
- [ ] Related docs are linked
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## Migration Plan
|
|
485
|
+
|
|
486
|
+
### Phase 1: New Documents (Immediate)
|
|
487
|
+
|
|
488
|
+
All new documentation MUST follow this standard.
|
|
489
|
+
|
|
490
|
+
### Phase 2: High-Priority Updates (Week 1)
|
|
491
|
+
|
|
492
|
+
Update these documents first:
|
|
493
|
+
1. Main guides (checkpoint, automation)
|
|
494
|
+
2. Epic specs
|
|
495
|
+
3. Status documents
|
|
496
|
+
|
|
497
|
+
### Phase 3: Complete Migration (Week 2-3)
|
|
498
|
+
|
|
499
|
+
- Rename all documents to new convention
|
|
500
|
+
- Reorganize into subdirectories
|
|
501
|
+
- Add missing metadata blocks
|
|
502
|
+
- Fix formatting inconsistencies
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
## Tools
|
|
507
|
+
|
|
508
|
+
### Document Template
|
|
509
|
+
|
|
510
|
+
Use this template for new docs:
|
|
511
|
+
|
|
512
|
+
```bash
|
|
513
|
+
./tooling/scripts/new-doc.sh --type guide --name "my-new-guide"
|
|
514
|
+
# Creates: tooling/docs/guides/GUIDE-my-new-guide.md
|
|
515
|
+
# With full template populated
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Validation
|
|
519
|
+
|
|
520
|
+
Check document compliance:
|
|
521
|
+
|
|
522
|
+
```bash
|
|
523
|
+
./tooling/scripts/validate-docs.sh tooling/docs/GUIDE-checkpoint.md
|
|
524
|
+
# Checks naming, structure, required sections
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
529
|
+
## Examples
|
|
530
|
+
|
|
531
|
+
### Good Documentation
|
|
532
|
+
|
|
533
|
+
✅ Clear title and metadata:
|
|
534
|
+
```markdown
|
|
535
|
+
# Context Checkpoint User Guide
|
|
536
|
+
|
|
537
|
+
**Type**: Guide
|
|
538
|
+
**Version**: 1.0
|
|
539
|
+
**Last Updated**: 2025-12-20
|
|
540
|
+
**Author**: Dev Agent
|
|
541
|
+
**Status**: Active
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
✅ Scannable sections:
|
|
545
|
+
```markdown
|
|
546
|
+
## Quick Start
|
|
547
|
+
|
|
548
|
+
### Option 1: Interactive Mode
|
|
549
|
+
```bash
|
|
550
|
+
./tooling/scripts/checkpoint
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
### Option 2: Auto-Monitor
|
|
554
|
+
```bash
|
|
555
|
+
python3 tooling/scripts/context_checkpoint.py --watch-log <file>
|
|
556
|
+
```
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
✅ Complete examples:
|
|
560
|
+
```markdown
|
|
561
|
+
### Example: Resume from Checkpoint
|
|
562
|
+
|
|
563
|
+
**Problem**: Context was compacted mid-session
|
|
564
|
+
|
|
565
|
+
**Solution**:
|
|
566
|
+
```bash
|
|
567
|
+
# List checkpoints
|
|
568
|
+
./tooling/scripts/checkpoint --list
|
|
569
|
+
|
|
570
|
+
# Resume from latest
|
|
571
|
+
./tooling/scripts/checkpoint --resume checkpoint_20251220_090445_1
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
**Result**: Resume prompt is displayed to paste into Claude
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
### Bad Documentation
|
|
578
|
+
|
|
579
|
+
❌ Unclear title:
|
|
580
|
+
```markdown
|
|
581
|
+
# Checkpoint Stuff
|
|
582
|
+
|
|
583
|
+
Some information about checkpoints...
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
❌ Missing metadata:
|
|
587
|
+
```markdown
|
|
588
|
+
# My Guide
|
|
589
|
+
|
|
590
|
+
Here's how to do stuff...
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
❌ Incomplete examples:
|
|
594
|
+
```markdown
|
|
595
|
+
Just run this:
|
|
596
|
+
```bash
|
|
597
|
+
./script.sh
|
|
598
|
+
```
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
❌ Poor formatting:
|
|
602
|
+
```markdown
|
|
603
|
+
You can run script.sh or use the checkpoint command to create a checkpoint or list them using --list flag...
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
---
|
|
607
|
+
|
|
608
|
+
## Compliance
|
|
609
|
+
|
|
610
|
+
### Enforcement
|
|
611
|
+
|
|
612
|
+
- All PRs with documentation changes must pass validation
|
|
613
|
+
- SM agents will reject non-compliant documents
|
|
614
|
+
- Automated checks run on commit
|
|
615
|
+
|
|
616
|
+
### Exceptions
|
|
617
|
+
|
|
618
|
+
To request an exception:
|
|
619
|
+
1. Document reason in PR description
|
|
620
|
+
2. Get approval from SM or Lead
|
|
621
|
+
3. Add `<!-- EXCEPTION: reason -->` to document
|
|
622
|
+
|
|
623
|
+
---
|
|
624
|
+
|
|
625
|
+
## Updates to This Standard
|
|
626
|
+
|
|
627
|
+
### Proposing Changes
|
|
628
|
+
|
|
629
|
+
1. Create issue with proposed change
|
|
630
|
+
2. Discuss with team
|
|
631
|
+
3. Update this document
|
|
632
|
+
4. Increment version number
|
|
633
|
+
5. Add to changelog
|
|
634
|
+
|
|
635
|
+
### Notification
|
|
636
|
+
|
|
637
|
+
When this standard changes:
|
|
638
|
+
- Announce in team chat
|
|
639
|
+
- Update all templates
|
|
640
|
+
- Schedule review of existing docs
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
## Project CHANGELOG Format
|
|
645
|
+
|
|
646
|
+
The project-level `CHANGELOG.md` follows the [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format with [Semantic Versioning](https://semver.org/).
|
|
647
|
+
|
|
648
|
+
### Required Sections
|
|
649
|
+
|
|
650
|
+
```markdown
|
|
651
|
+
## [X.Y.Z] - YYYY-MM-DD
|
|
652
|
+
|
|
653
|
+
### Added
|
|
654
|
+
- New features
|
|
655
|
+
|
|
656
|
+
### Changed
|
|
657
|
+
- Changes to existing functionality
|
|
658
|
+
|
|
659
|
+
### Deprecated
|
|
660
|
+
- Soon-to-be removed features
|
|
661
|
+
|
|
662
|
+
### Removed
|
|
663
|
+
- Removed features
|
|
664
|
+
|
|
665
|
+
### Fixed
|
|
666
|
+
- Bug fixes
|
|
667
|
+
|
|
668
|
+
### Security
|
|
669
|
+
- Security improvements
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
### CHANGELOG Guidelines
|
|
673
|
+
|
|
674
|
+
1. **Newest First**: Latest version at the top
|
|
675
|
+
2. **Link Versions**: Each version links to GitHub comparison
|
|
676
|
+
3. **Date Format**: ISO 8601 (YYYY-MM-DD)
|
|
677
|
+
4. **Human Readable**: Write for users, not developers
|
|
678
|
+
5. **Group Changes**: Use appropriate category headers
|
|
679
|
+
6. **Breaking Changes**: Call out explicitly in Changed or Removed
|
|
680
|
+
|
|
681
|
+
### Example Entry
|
|
682
|
+
|
|
683
|
+
```markdown
|
|
684
|
+
## [1.2.0] - 2025-12-20
|
|
685
|
+
|
|
686
|
+
### Added
|
|
687
|
+
- **Brownfield Workflow Support** - Full support for existing codebase maintenance
|
|
688
|
+
- `--bugfix` mode for bug investigation and fixing
|
|
689
|
+
- `--refactor` mode for code refactoring
|
|
690
|
+
|
|
691
|
+
### Changed
|
|
692
|
+
- Agent count increased from 6 to 7 (added MAINTAINER)
|
|
693
|
+
- README updated with brownfield documentation
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
---
|
|
697
|
+
|
|
698
|
+
## Document Changelog
|
|
699
|
+
|
|
700
|
+
### 1.1 (2025-12-20)
|
|
701
|
+
- Added Project CHANGELOG Format section
|
|
702
|
+
- Updated with brownfield document types
|
|
703
|
+
|
|
704
|
+
### 1.0 (2025-12-20)
|
|
705
|
+
- Initial standard created
|
|
706
|
+
- Defined naming conventions
|
|
707
|
+
- Established document structure
|
|
708
|
+
- Created templates
|
|
709
|
+
- Defined review process
|
|
710
|
+
|
|
711
|
+
---
|
|
712
|
+
|
|
713
|
+
**Document Control**
|
|
714
|
+
- **Created**: 2025-12-20
|
|
715
|
+
- **Last Reviewed**: 2025-12-20
|
|
716
|
+
- **Next Review**: 2026-01-20
|
|
717
|
+
- **Owner**: Dev Agent
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Sprint Status
|
|
2
|
+
# Updated: YYYY-MM-DD
|
|
3
|
+
|
|
4
|
+
sprint:
|
|
5
|
+
number: 1
|
|
6
|
+
start: YYYY-MM-DD
|
|
7
|
+
end: YYYY-MM-DD
|
|
8
|
+
|
|
9
|
+
# Story Status Values:
|
|
10
|
+
# - backlog: Not yet started
|
|
11
|
+
# - drafted: Story specification created
|
|
12
|
+
# - ready-for-dev: Context created, ready for implementation
|
|
13
|
+
# - in-progress: Currently being worked on
|
|
14
|
+
# - review: Implementation complete, awaiting review
|
|
15
|
+
# - done: Reviewed and approved
|
|
16
|
+
|
|
17
|
+
stories:
|
|
18
|
+
# Add your stories here in format:
|
|
19
|
+
# story-key: status
|
|
20
|
+
#
|
|
21
|
+
# Example:
|
|
22
|
+
# 1-1-setup-project: backlog
|
|
23
|
+
# 1-2-implement-feature: in-progress
|
|
24
|
+
# 1-3-add-tests: done
|