specweave 1.0.256 → 1.0.259
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/CLAUDE.md +56 -221
- package/README.md +31 -0
- package/bin/specweave.js +17 -0
- package/dist/src/adapters/README.md +4 -4
- package/dist/src/adapters/agents-md-generator.d.ts.map +1 -1
- package/dist/src/adapters/agents-md-generator.js +0 -2
- package/dist/src/adapters/agents-md-generator.js.map +1 -1
- package/dist/src/adapters/claude/README.md +3 -3
- package/dist/src/adapters/claude/adapter.js +3 -3
- package/dist/src/adapters/claude-md-generator.js +1 -1
- package/dist/src/adapters/claude-md-generator.js.map +1 -1
- package/dist/src/adapters/registry.yaml +1 -1
- package/dist/src/cli/commands/create-increment.d.ts +24 -0
- package/dist/src/cli/commands/create-increment.d.ts.map +1 -0
- package/dist/src/cli/commands/create-increment.js +53 -0
- package/dist/src/cli/commands/create-increment.js.map +1 -0
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +48 -31
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/update.d.ts.map +1 -1
- package/dist/src/cli/commands/update.js +36 -0
- package/dist/src/cli/commands/update.js.map +1 -1
- package/dist/src/cli/helpers/init/directory-structure.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/directory-structure.js +13 -1
- package/dist/src/cli/helpers/init/directory-structure.js.map +1 -1
- package/dist/src/cli/helpers/init/summary-banner.d.ts +11 -0
- package/dist/src/cli/helpers/init/summary-banner.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/summary-banner.js +49 -3
- package/dist/src/cli/helpers/init/summary-banner.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +0 -1
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/sync-config-writer.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/sync-config-writer.js +6 -2
- package/dist/src/cli/helpers/issue-tracker/sync-config-writer.js.map +1 -1
- package/dist/src/core/ac-progress-sync.d.ts +13 -0
- package/dist/src/core/ac-progress-sync.d.ts.map +1 -1
- package/dist/src/core/ac-progress-sync.js +28 -0
- package/dist/src/core/ac-progress-sync.js.map +1 -1
- package/dist/src/core/config/types.d.ts +24 -1
- package/dist/src/core/config/types.d.ts.map +1 -1
- package/dist/src/core/config/types.js +6 -1
- package/dist/src/core/config/types.js.map +1 -1
- package/dist/src/core/doctor/checkers/project-structure-checker.d.ts +1 -0
- package/dist/src/core/doctor/checkers/project-structure-checker.d.ts.map +1 -1
- package/dist/src/core/doctor/checkers/project-structure-checker.js +53 -3
- package/dist/src/core/doctor/checkers/project-structure-checker.js.map +1 -1
- package/dist/src/core/fabric/security-scanner.d.ts.map +1 -1
- package/dist/src/core/fabric/security-scanner.js +70 -9
- package/dist/src/core/fabric/security-scanner.js.map +1 -1
- package/dist/src/core/increment/increment-utils.d.ts +6 -0
- package/dist/src/core/increment/increment-utils.d.ts.map +1 -1
- package/dist/src/core/increment/increment-utils.js +5 -0
- package/dist/src/core/increment/increment-utils.js.map +1 -1
- package/dist/src/core/living-docs/discovery.d.ts +2 -0
- package/dist/src/core/living-docs/discovery.d.ts.map +1 -1
- package/dist/src/core/living-docs/discovery.js +91 -17
- package/dist/src/core/living-docs/discovery.js.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/index.d.ts +5 -0
- package/dist/src/core/living-docs/intelligent-analyzer/index.d.ts.map +1 -1
- package/dist/src/core/living-docs/intelligent-analyzer/index.js +3 -3
- package/dist/src/core/living-docs/intelligent-analyzer/index.js.map +1 -1
- package/dist/src/core/living-docs/lsp-bootstrapper.d.ts +64 -0
- package/dist/src/core/living-docs/lsp-bootstrapper.d.ts.map +1 -0
- package/dist/src/core/living-docs/lsp-bootstrapper.js +118 -0
- package/dist/src/core/living-docs/lsp-bootstrapper.js.map +1 -0
- package/dist/src/core/project/project-service.d.ts +10 -1
- package/dist/src/core/project/project-service.d.ts.map +1 -1
- package/dist/src/core/project/project-service.js +37 -2
- package/dist/src/core/project/project-service.js.map +1 -1
- package/dist/src/core/universal-auto-create.d.ts +64 -0
- package/dist/src/core/universal-auto-create.d.ts.map +1 -0
- package/dist/src/core/universal-auto-create.js +228 -0
- package/dist/src/core/universal-auto-create.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave/PLUGIN.md +0 -3
- package/plugins/specweave/commands/living-docs.md +0 -2
- package/plugins/specweave/hooks/stop-sync.sh +34 -5
- package/plugins/specweave/hooks/user-prompt-submit.sh +115 -326
- package/plugins/specweave/hooks/v2/dispatchers/post-tool-use.sh +19 -5
- package/plugins/specweave/hooks/v2/handlers/ac-sync-dispatcher.sh +14 -4
- package/plugins/specweave/hooks/v2/handlers/universal-auto-create-dispatcher.sh +181 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js +4 -2
- package/plugins/specweave/scripts/skill-context.sh +160 -0
- package/plugins/specweave/skills/architect/SKILL.md +1 -1
- package/plugins/specweave/skills/archive-increments/SKILL.md +13 -3
- package/plugins/specweave/skills/auto/SKILL.md +92 -1038
- package/plugins/specweave/skills/do/SKILL.md +66 -1106
- package/plugins/specweave/skills/docs/SKILL.md +124 -56
- package/plugins/specweave/skills/done/SKILL.md +76 -1406
- package/plugins/specweave/skills/framework/SKILL.md +1 -1
- package/plugins/specweave/skills/increment/SKILL.md +1 -1
- package/plugins/specweave/skills/increment-planner/SKILL.md +29 -19
- package/plugins/specweave/skills/jobs/SKILL.md +52 -0
- package/plugins/specweave/skills/multi-project-spec-mapper/SKILL.md +1 -1
- package/plugins/specweave/skills/save/SKILL.md +51 -1372
- package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +1 -1
- package/plugins/specweave/skills/tdd-orchestrator/SKILL.md +1 -1
- package/plugins/specweave/skills/validate/SKILL.md +65 -848
- package/plugins/specweave-backend/skills/database-optimizer/SKILL.md +1 -1
- package/plugins/specweave-backend/skills/graphql/SKILL.md +1 -1
- package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +1 -1
- package/plugins/specweave-frontend/skills/frontend/SKILL.md +1 -1
- package/plugins/specweave-frontend/skills/frontend-architect/SKILL.md +1 -1
- package/plugins/specweave-frontend/skills/frontend-design/SKILL.md +1 -1
- package/plugins/specweave-frontend/skills/i18n-expert/SKILL.md +1 -1
- package/plugins/specweave-payments/skills/billing-automation/SKILL.md +1 -1
- package/plugins/specweave-testing/skills/accessibility-testing/SKILL.md +1 -1
- package/src/templates/CLAUDE.md.template +50 -356
- package/src/templates/config.json.template +5 -1
- package/plugins/specweave/commands/brownfield-analyzer.md +0 -408
- package/plugins/specweave/commands/brownfield-onboarder.md +0 -837
- package/plugins/specweave/commands/export-skills.md +0 -179
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Analyzes existing brownfield projects to map documentation to SpecWeave's structure (PRD/HLD/Spec/Runbook). Use when migrating existing projects to SpecWeave, scanning legacy docs, or creating project context maps. Detects external tools (JIRA, ADO, GitHub) and supports incremental or comprehensive migration paths.
|
|
3
|
-
disable-model-invocation: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Brownfield Analyzer
|
|
7
|
-
|
|
8
|
-
**Self-contained brownfield project analysis for ANY existing codebase.**
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Purpose
|
|
13
|
-
|
|
14
|
-
Analyze existing projects and create migration plan to SpecWeave structure. Two paths supported: Quick Start (incremental) or Comprehensive (upfront).
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## Two Migration Paths
|
|
19
|
-
|
|
20
|
-
### Path 1: Quick Start (Recommended for Large Projects)
|
|
21
|
-
|
|
22
|
-
**Best for**: 50k+ LOC, fast iteration, small teams
|
|
23
|
-
|
|
24
|
-
**Process**:
|
|
25
|
-
1. Initial scan: Document core architecture (1-3 hours)
|
|
26
|
-
2. Start working immediately
|
|
27
|
-
3. Per increment: Document → Modify → Update docs
|
|
28
|
-
4. Documentation grows with changes
|
|
29
|
-
|
|
30
|
-
**Benefits**:
|
|
31
|
-
- Start in days, not weeks
|
|
32
|
-
- Focus where it matters
|
|
33
|
-
- No analysis paralysis
|
|
34
|
-
|
|
35
|
-
### Path 2: Comprehensive Upfront
|
|
36
|
-
|
|
37
|
-
**Best for**: <50k LOC, teams, regulated industries
|
|
38
|
-
|
|
39
|
-
**Process**:
|
|
40
|
-
1. Full analysis (1-4 weeks)
|
|
41
|
-
2. Document all modules, business rules
|
|
42
|
-
3. Create baseline tests
|
|
43
|
-
4. Then start increments
|
|
44
|
-
|
|
45
|
-
**Benefits**:
|
|
46
|
-
- Complete context upfront
|
|
47
|
-
- Full regression coverage
|
|
48
|
-
- Team coordination
|
|
49
|
-
- Compliance ready
|
|
50
|
-
|
|
51
|
-
### Automatic Recommendation
|
|
52
|
-
|
|
53
|
-
| Project Size | LOC | Upfront Effort | Recommended |
|
|
54
|
-
|--------------|-----|----------------|-------------|
|
|
55
|
-
| Small | <10k | 4-8 hours | Comprehensive |
|
|
56
|
-
| Medium | 10k-50k | 1-2 weeks | User Choice |
|
|
57
|
-
| Large | 50k-200k | 2-4 weeks | Quick Start |
|
|
58
|
-
| Very Large | 200k+ | 1-3 months | Quick Start (Mandatory) |
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## Analysis Workflow
|
|
63
|
-
|
|
64
|
-
### Step 1: Project Assessment
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
# Scan project
|
|
68
|
-
find . -type f -name "*.ts" -o -name "*.js" -o -name "*.py" | wc -l
|
|
69
|
-
find . -type f \( -name "*.ts" -o -name "*.js" \) -exec wc -l {} + | awk '{sum+=$1} END {print sum}'
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**Calculate**:
|
|
73
|
-
- Total files
|
|
74
|
-
- Total LOC
|
|
75
|
-
- Module count
|
|
76
|
-
- Test coverage (if exists)
|
|
77
|
-
|
|
78
|
-
**Output**:
|
|
79
|
-
```
|
|
80
|
-
📊 Project Analysis
|
|
81
|
-
Files: 1,245
|
|
82
|
-
LOC: 45,678
|
|
83
|
-
Modules: 23
|
|
84
|
-
Tests: 45% coverage
|
|
85
|
-
|
|
86
|
-
💡 Recommendation: Medium project → User choice (Quick Start or Comprehensive)
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Step 2: Document Classification
|
|
90
|
-
|
|
91
|
-
Scan for documentation:
|
|
92
|
-
|
|
93
|
-
**PRD Candidates** (Product Requirements):
|
|
94
|
-
- `requirements.md`, `PRD.md`, `product-spec.md`
|
|
95
|
-
- `docs/product/`, `specs/requirements/`
|
|
96
|
-
|
|
97
|
-
**HLD Candidates** (High-Level Design):
|
|
98
|
-
- `architecture.md`, `design.md`, `ARCHITECTURE.md`
|
|
99
|
-
- `docs/architecture/`, `docs/design/`
|
|
100
|
-
|
|
101
|
-
**ADR Candidates** (Architecture Decision Records):
|
|
102
|
-
- `adr/`, `decisions/`, `docs/decisions/`
|
|
103
|
-
- Files with "ADR-" prefix or "decision" in name
|
|
104
|
-
|
|
105
|
-
**Spec Candidates** (Technical Specs):
|
|
106
|
-
- `spec.md`, `technical-spec.md`
|
|
107
|
-
- `docs/specs/`, `docs/technical/`
|
|
108
|
-
|
|
109
|
-
**Runbook Candidates** (Operations):
|
|
110
|
-
- `runbook.md`, `operations.md`, `deployment.md`
|
|
111
|
-
- `docs/ops/`, `docs/runbooks/`
|
|
112
|
-
|
|
113
|
-
**Diagrams**:
|
|
114
|
-
- `*.png`, `*.svg`, `*.drawio`, `*.mmd`
|
|
115
|
-
- `diagrams/`, `docs/diagrams/`
|
|
116
|
-
|
|
117
|
-
### Step 3: External Tool Detection
|
|
118
|
-
|
|
119
|
-
**Jira Integration**:
|
|
120
|
-
```bash
|
|
121
|
-
# Search for Jira references
|
|
122
|
-
grep -r "JIRA" . --include="*.md" --include="*.txt"
|
|
123
|
-
grep -r "jira.atlassian" . --include="*.md"
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
**Azure DevOps**:
|
|
127
|
-
```bash
|
|
128
|
-
grep -r "dev.azure.com" . --include="*.md"
|
|
129
|
-
grep -r "visualstudio.com" . --include="*.md"
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
**GitHub Issues**:
|
|
133
|
-
```bash
|
|
134
|
-
grep -r "github.com/.*/issues" . --include="*.md"
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### Step 4: Coding Standards Discovery
|
|
138
|
-
|
|
139
|
-
**Auto-detect**:
|
|
140
|
-
- ESLint config (`.eslintrc`, `eslint.config.js`)
|
|
141
|
-
- Prettier config (`.prettierrc`)
|
|
142
|
-
- TypeScript config (`tsconfig.json`)
|
|
143
|
-
- Test config (`vitest.config`, `jest.config`)
|
|
144
|
-
|
|
145
|
-
**Analyze patterns**:
|
|
146
|
-
```bash
|
|
147
|
-
# Naming conventions
|
|
148
|
-
grep -rh "^export function" src/ | head -20
|
|
149
|
-
grep -rh "^export class" src/ | head -20
|
|
150
|
-
|
|
151
|
-
# Import patterns
|
|
152
|
-
grep -rh "^import" src/ | sort | uniq -c | sort -rn | head -10
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Step 5: Generate Migration Plan
|
|
156
|
-
|
|
157
|
-
**Quick Start Plan**:
|
|
158
|
-
```markdown
|
|
159
|
-
# Migration Plan: Quick Start Path
|
|
160
|
-
|
|
161
|
-
## Phase 1: Initial Setup (1-2 hours)
|
|
162
|
-
- [ ] Run `specweave init`
|
|
163
|
-
- [ ] Document core architecture only
|
|
164
|
-
- [ ] Create 1-2 ADRs for critical decisions
|
|
165
|
-
|
|
166
|
-
## Phase 2: First Increment (1-3 days)
|
|
167
|
-
- [ ] Select first feature to modify
|
|
168
|
-
- [ ] Document module before touching
|
|
169
|
-
- [ ] Create increment with /sw:increment
|
|
170
|
-
- [ ] Implement changes
|
|
171
|
-
- [ ] Update docs
|
|
172
|
-
|
|
173
|
-
## Phase 3: Iterate
|
|
174
|
-
- [ ] Repeat per feature
|
|
175
|
-
- [ ] Documentation grows organically
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
**Comprehensive Plan**:
|
|
179
|
-
```markdown
|
|
180
|
-
# Migration Plan: Comprehensive Path
|
|
181
|
-
|
|
182
|
-
## Phase 1: Documentation Baseline (1-2 weeks)
|
|
183
|
-
- [ ] Map all modules to .specweave/docs/internal/modules/
|
|
184
|
-
- [ ] Create ADRs for major architectural decisions
|
|
185
|
-
- [ ] Document business rules
|
|
186
|
-
- [ ] Identify technical debt
|
|
187
|
-
|
|
188
|
-
## Phase 2: Test Baseline (1 week)
|
|
189
|
-
- [ ] Add baseline tests for core functionality
|
|
190
|
-
- [ ] Target 60-70% coverage
|
|
191
|
-
- [ ] Document test strategy
|
|
192
|
-
|
|
193
|
-
## Phase 3: Structure Migration (2-3 days)
|
|
194
|
-
- [ ] Run `specweave init`
|
|
195
|
-
- [ ] Migrate existing docs
|
|
196
|
-
- [ ] Organize by SpecWeave structure
|
|
197
|
-
|
|
198
|
-
## Phase 4: Ready for Increments
|
|
199
|
-
- [ ] Start feature work with full context
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
---
|
|
203
|
-
|
|
204
|
-
## Migration Checklist
|
|
205
|
-
|
|
206
|
-
### Before SpecWeave Init
|
|
207
|
-
|
|
208
|
-
- [ ] Assess project size (LOC, files)
|
|
209
|
-
- [ ] Choose path (Quick Start or Comprehensive)
|
|
210
|
-
- [ ] Backup existing docs
|
|
211
|
-
- [ ] Identify external tool integrations
|
|
212
|
-
- [ ] Check coding standards exist
|
|
213
|
-
|
|
214
|
-
### During Migration
|
|
215
|
-
|
|
216
|
-
**Quick Start**:
|
|
217
|
-
- [ ] Document core architecture only
|
|
218
|
-
- [ ] Create 1-2 critical ADRs
|
|
219
|
-
- [ ] Set up external tool sync (optional)
|
|
220
|
-
- [ ] Start first increment immediately
|
|
221
|
-
|
|
222
|
-
**Comprehensive**:
|
|
223
|
-
- [ ] Scan all documentation
|
|
224
|
-
- [ ] Classify and organize docs
|
|
225
|
-
- [ ] Create complete module docs
|
|
226
|
-
- [ ] Document all business rules
|
|
227
|
-
- [ ] Create ADRs for decisions
|
|
228
|
-
- [ ] Add baseline tests
|
|
229
|
-
- [ ] Set up external tool sync
|
|
230
|
-
|
|
231
|
-
### After Migration
|
|
232
|
-
|
|
233
|
-
- [ ] Verify `.specweave/` structure exists
|
|
234
|
-
- [ ] Test increment workflow
|
|
235
|
-
- [ ] Train team on SpecWeave
|
|
236
|
-
- [ ] Document migration decisions
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
## Document Mapping
|
|
241
|
-
|
|
242
|
-
**Map existing docs to SpecWeave structure**:
|
|
243
|
-
|
|
244
|
-
```
|
|
245
|
-
Existing Structure SpecWeave Structure
|
|
246
|
-
───────────────── ───────────────────
|
|
247
|
-
docs/product/ .specweave/docs/internal/strategy/
|
|
248
|
-
docs/architecture/ .specweave/docs/internal/architecture/
|
|
249
|
-
docs/decisions/ .specweave/docs/internal/architecture/adr/
|
|
250
|
-
docs/specs/ .specweave/docs/internal/specs/
|
|
251
|
-
docs/runbooks/ .specweave/docs/public/runbooks/
|
|
252
|
-
docs/api/ .specweave/docs/public/api-docs/
|
|
253
|
-
README.md .specweave/docs/public/README.md
|
|
254
|
-
CONTRIBUTING.md .specweave/docs/public/CONTRIBUTING.md
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
## External Tool Migration
|
|
260
|
-
|
|
261
|
-
### Jira → SpecWeave
|
|
262
|
-
|
|
263
|
-
**1. Detect Jira usage**:
|
|
264
|
-
```bash
|
|
265
|
-
grep -r "jira" . --include="*.md" | head -5
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
**2. Map Jira structure**:
|
|
269
|
-
- Epic → Feature (FS-XXX)
|
|
270
|
-
- Story → User Story (US-XXX)
|
|
271
|
-
- Task → Task (T-XXX)
|
|
272
|
-
|
|
273
|
-
**3. Sync strategy**:
|
|
274
|
-
```bash
|
|
275
|
-
# Option 1: Import existing Jira items
|
|
276
|
-
/sw-jira:sync --import
|
|
277
|
-
|
|
278
|
-
# Option 2: Start fresh, sync new work only
|
|
279
|
-
# (Use SpecWeave as source of truth)
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
### Azure DevOps → SpecWeave
|
|
283
|
-
|
|
284
|
-
**Map work items**:
|
|
285
|
-
- Feature → Feature (FS-XXX)
|
|
286
|
-
- User Story → User Story (US-XXX)
|
|
287
|
-
- Task → Task (T-XXX)
|
|
288
|
-
|
|
289
|
-
**Sync**:
|
|
290
|
-
```bash
|
|
291
|
-
/sw-ado:sync --import
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
### GitHub Issues → SpecWeave
|
|
295
|
-
|
|
296
|
-
**Map issues**:
|
|
297
|
-
- Milestone → Feature (FS-XXX)
|
|
298
|
-
- Issue → User Story (US-XXX)
|
|
299
|
-
- Task list → Tasks (T-XXX)
|
|
300
|
-
|
|
301
|
-
**Sync**:
|
|
302
|
-
```bash
|
|
303
|
-
/sw-github:sync --import
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
---
|
|
307
|
-
|
|
308
|
-
## Best Practices
|
|
309
|
-
|
|
310
|
-
**✅ DO**:
|
|
311
|
-
- Choose appropriate path (Quick Start for large projects)
|
|
312
|
-
- Document before modifying code
|
|
313
|
-
- Migrate incrementally (don't big-bang)
|
|
314
|
-
- Preserve existing docs (don't delete)
|
|
315
|
-
- Use external tool sync for existing items
|
|
316
|
-
- Train team on SpecWeave workflow
|
|
317
|
-
|
|
318
|
-
**❌ DON'T**:
|
|
319
|
-
- Force Comprehensive for 100k+ LOC projects
|
|
320
|
-
- Delete existing documentation
|
|
321
|
-
- Migrate all features upfront (Quick Start)
|
|
322
|
-
- Skip coding standards discovery
|
|
323
|
-
- Ignore external tool integrations
|
|
324
|
-
- Over-analyze in Quick Start mode
|
|
325
|
-
|
|
326
|
-
---
|
|
327
|
-
|
|
328
|
-
## Example: Large Project Migration
|
|
329
|
-
|
|
330
|
-
**Scenario**: 85k LOC Node.js backend, Jira, 15% test coverage
|
|
331
|
-
|
|
332
|
-
**Recommended**: Quick Start
|
|
333
|
-
|
|
334
|
-
**Plan**:
|
|
335
|
-
```
|
|
336
|
-
Week 1: Setup (2 hours)
|
|
337
|
-
- Run specweave init
|
|
338
|
-
- Document core architecture (5 modules)
|
|
339
|
-
- Create 2 ADRs (database, API design)
|
|
340
|
-
- Configure Jira sync
|
|
341
|
-
|
|
342
|
-
Week 1-2: First Increment
|
|
343
|
-
- Select first feature: "Add rate limiting"
|
|
344
|
-
- Document rate-limiting module
|
|
345
|
-
- Create increment with /sw:increment
|
|
346
|
-
- Implement with TDD
|
|
347
|
-
- Update docs
|
|
348
|
-
|
|
349
|
-
Week 3+: Iterate
|
|
350
|
-
- Repeat per feature
|
|
351
|
-
- Documentation grows to 40% over 3 months
|
|
352
|
-
- Eventually covers critical paths
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
**Result**: Started working in 2 hours, documentation grows naturally.
|
|
356
|
-
|
|
357
|
-
---
|
|
358
|
-
|
|
359
|
-
## Example: Small Project Migration
|
|
360
|
-
|
|
361
|
-
**Scenario**: 8k LOC Python app, GitHub Issues, 60% test coverage
|
|
362
|
-
|
|
363
|
-
**Recommended**: Comprehensive Upfront
|
|
364
|
-
|
|
365
|
-
**Plan**:
|
|
366
|
-
```
|
|
367
|
-
Week 1: Full Documentation (8 hours)
|
|
368
|
-
- Document all 5 modules
|
|
369
|
-
- Create 8 ADRs
|
|
370
|
-
- Map business rules
|
|
371
|
-
- Document API contracts
|
|
372
|
-
|
|
373
|
-
Week 1: Test Baseline (4 hours)
|
|
374
|
-
- Add missing unit tests (80% coverage)
|
|
375
|
-
- Document test strategy
|
|
376
|
-
|
|
377
|
-
Week 1: Structure Migration (2 hours)
|
|
378
|
-
- Run specweave init
|
|
379
|
-
- Migrate existing docs
|
|
380
|
-
- Configure GitHub sync
|
|
381
|
-
|
|
382
|
-
Week 2+: Start Increments
|
|
383
|
-
- Full context available
|
|
384
|
-
- High confidence changes
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
**Result**: 2 weeks to full documentation, then smooth increment workflow.
|
|
388
|
-
|
|
389
|
-
---
|
|
390
|
-
|
|
391
|
-
## Troubleshooting
|
|
392
|
-
|
|
393
|
-
**Issue**: Can't find existing documentation
|
|
394
|
-
**Solution**: Check common locations: `docs/`, `wiki/`, `.github/`, Notion exports
|
|
395
|
-
|
|
396
|
-
**Issue**: Too many documents to classify
|
|
397
|
-
**Solution**: Focus on architecture docs first, skip implementation details
|
|
398
|
-
|
|
399
|
-
**Issue**: Conflicting documentation
|
|
400
|
-
**Solution**: Use git history to find latest/canonical version
|
|
401
|
-
|
|
402
|
-
**Issue**: External tool API limits
|
|
403
|
-
**Solution**: Use throttled sync, batch imports
|
|
404
|
-
|
|
405
|
-
---
|
|
406
|
-
|
|
407
|
-
**This skill is self-contained and works for ANY brownfield project.**
|
|
408
|
-
|