@thierrynakoa/fire-flow 10.0.0 → 12.2.1
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-plugin/plugin.json +8 -8
- package/ARCHITECTURE-DIAGRAM.md +7 -4
- package/COMMAND-REFERENCE.md +33 -13
- package/DOMINION-FLOW-OVERVIEW.md +581 -421
- package/QUICK-START.md +3 -3
- package/README.md +101 -44
- package/TROUBLESHOOTING.md +264 -264
- package/agents/fire-executor.md +200 -116
- package/agents/fire-fact-checker.md +276 -276
- package/agents/fire-phoenix-analyst.md +394 -0
- package/agents/fire-planner.md +145 -53
- package/agents/fire-project-researcher.md +155 -155
- package/agents/fire-research-synthesizer.md +166 -166
- package/agents/fire-researcher.md +144 -59
- package/agents/fire-roadmapper.md +215 -203
- package/agents/fire-verifier.md +247 -65
- package/agents/fire-vision-architect.md +381 -0
- package/commands/fire-0-orient.md +476 -476
- package/commands/fire-1a-new.md +216 -0
- package/commands/fire-1b-research.md +210 -0
- package/commands/fire-1c-setup.md +254 -0
- package/commands/{fire-1a-discuss.md → fire-1d-discuss.md} +35 -7
- package/commands/fire-3-execute.md +55 -2
- package/commands/fire-4-verify.md +61 -0
- package/commands/fire-5-handoff.md +2 -2
- package/commands/fire-6-resume.md +37 -2
- package/commands/fire-add-new-skill.md +2 -2
- package/commands/fire-autonomous.md +20 -3
- package/commands/fire-brainstorm.md +1 -1
- package/commands/fire-complete-milestone.md +2 -2
- package/commands/fire-cost.md +183 -0
- package/commands/fire-dashboard.md +2 -2
- package/commands/fire-debug.md +663 -663
- package/commands/fire-loop-resume.md +2 -2
- package/commands/fire-loop-stop.md +1 -1
- package/commands/fire-loop.md +1168 -1168
- package/commands/fire-map-codebase.md +3 -3
- package/commands/fire-new-milestone.md +356 -356
- package/commands/fire-phoenix.md +603 -0
- package/commands/fire-reflect.md +235 -235
- package/commands/fire-research.md +246 -246
- package/commands/fire-search.md +1 -1
- package/commands/fire-skills-diff.md +3 -3
- package/commands/fire-skills-history.md +3 -3
- package/commands/fire-skills-rollback.md +7 -7
- package/commands/fire-skills-sync.md +5 -5
- package/commands/fire-test.md +9 -9
- package/commands/fire-todos.md +1 -1
- package/commands/fire-update.md +5 -5
- package/hooks/hooks.json +16 -16
- package/hooks/run-hook.sh +8 -8
- package/hooks/run-session-end.sh +7 -7
- package/hooks/session-end.sh +90 -90
- package/hooks/session-start.sh +1 -1
- package/package.json +4 -2
- package/plugin.json +7 -7
- package/references/metrics-and-trends.md +1 -1
- package/skills-library/SKILLS-INDEX.md +588 -588
- package/skills-library/_general/methodology/AUTONOMOUS_ORCHESTRATION.md +182 -0
- package/skills-library/_general/methodology/BACKWARD_PLANNING_INTERVIEW.md +307 -0
- package/skills-library/_general/methodology/CIRCUIT_BREAKER_INTELLIGENCE.md +163 -0
- package/skills-library/_general/methodology/CONTEXT_ROTATION.md +151 -0
- package/skills-library/_general/methodology/DEAD_ENDS_SHELF.md +188 -0
- package/skills-library/_general/methodology/DESIGN_PHILOSOPHY_ENFORCEMENT.md +152 -0
- package/skills-library/_general/methodology/INTERNAL_CONSISTENCY_AUDIT.md +212 -0
- package/skills-library/_general/methodology/LIVE_BREADCRUMB_PROTOCOL.md +242 -0
- package/skills-library/_general/methodology/PHOENIX_REBUILD_METHODOLOGY.md +251 -0
- package/skills-library/_general/methodology/QUALITY_GATES_AND_VERIFICATION.md +157 -0
- package/skills-library/_general/methodology/RELIABILITY_PREDICTION.md +104 -0
- package/skills-library/_general/methodology/REQUIREMENTS_DECOMPOSITION.md +155 -0
- package/skills-library/_general/methodology/SELF_TESTING_FEEDBACK_LOOP.md +143 -0
- package/skills-library/_general/methodology/STACK_COMPATIBILITY_MATRIX.md +178 -0
- package/skills-library/_general/methodology/TIERED_CONTEXT_ARCHITECTURE.md +118 -0
- package/skills-library/_general/methodology/ZERO_FRICTION_CLI_SETUP.md +312 -0
- package/skills-library/_general/methodology/autonomous-multi-phase-build.md +133 -0
- package/skills-library/_general/methodology/claude-md-archival.md +280 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -240
- package/skills-library/_general/methodology/git-worktrees-parallel.md +232 -0
- package/skills-library/_general/methodology/llm-judge-memory-crud.md +241 -0
- package/skills-library/_general/methodology/multi-project-autonomous-build.md +360 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -238
- package/skills-library/_general/patterns-standards/GOF_DESIGN_PATTERNS_FOR_AI_AGENTS.md +358 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +1 -1
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +1 -1
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +1 -1
- package/templates/ASSUMPTIONS.md +1 -1
- package/templates/BLOCKERS.md +1 -1
- package/templates/DECISION_LOG.md +1 -1
- package/templates/phase-prompt.md +1 -1
- package/templates/phoenix-comparison.md +80 -0
- package/version.json +2 -2
- package/workflows/handoff-session.md +1 -1
- package/workflows/new-project.md +2 -2
- package/commands/fire-1-new.md +0 -281
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-md-archival
|
|
3
|
+
category: methodology
|
|
4
|
+
version: 4.0.0
|
|
5
|
+
contributed: 2026-03-03
|
|
6
|
+
contributor: global
|
|
7
|
+
last_updated: 2026-03-04
|
|
8
|
+
tags: [claude-md, context-management, archival, history, fast-start, lazy-loading, housekeeping]
|
|
9
|
+
difficulty: easy
|
|
10
|
+
scope: general
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# CLAUDE.md Archival Flow
|
|
14
|
+
|
|
15
|
+
## Core Concept: Lazy-Loaded Context
|
|
16
|
+
|
|
17
|
+
CLAUDE.md is a **fast-start index**. It keeps headings and bullet titles for orientation, but replaces full content with **file links** pointing to topic-scoped history files. Claude reads only the file relevant to the current problem — not everything at once.
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
CLAUDE.md
|
|
21
|
+
## Database Issues
|
|
22
|
+
- Connection pooling fix → history/database.md
|
|
23
|
+
- Migration guide → history/database.md
|
|
24
|
+
|
|
25
|
+
## Resolved Bugs
|
|
26
|
+
- PayPal webhook 401 → history/debugging.md
|
|
27
|
+
- JWT refresh loop → history/debugging.md
|
|
28
|
+
|
|
29
|
+
history/
|
|
30
|
+
phases/
|
|
31
|
+
phase-1-auth/ ← phase plan, notes, screenshots
|
|
32
|
+
phase-2-payments/ ← phase plan, notes, screenshots
|
|
33
|
+
screenshots/ ← general/unphased screenshots
|
|
34
|
+
database.md ← DB fixes, schema changes, migrations
|
|
35
|
+
debugging.md ← Resolved bug investigations
|
|
36
|
+
config.md ← Old/superseded configuration
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Session start: Claude reads CLAUDE.md (tiny, fast).
|
|
40
|
+
Mid-conversation: Claude reads only the specific history file it needs.
|
|
41
|
+
|
|
42
|
+
## Directory Structure
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
{project-root}/
|
|
46
|
+
CLAUDE.md ← Index only. Headings + links. Fast to load.
|
|
47
|
+
history/
|
|
48
|
+
│
|
|
49
|
+
├── phases/ ← One subfolder per completed phase
|
|
50
|
+
│ ├── phase-1-{name}/
|
|
51
|
+
│ │ ├── PLAN.md ← Phase plan moved from root on completion
|
|
52
|
+
│ │ ├── notes.md ← Phase-specific notes and decisions
|
|
53
|
+
│ │ └── screenshots/ ← UI screenshots captured during this phase
|
|
54
|
+
│ │ ├── login-ui.png
|
|
55
|
+
│ │ └── dashboard-v1.png
|
|
56
|
+
│ ├── phase-2-{name}/
|
|
57
|
+
│ │ ├── PLAN.md
|
|
58
|
+
│ │ └── screenshots/
|
|
59
|
+
│ └── ...
|
|
60
|
+
│
|
|
61
|
+
├── screenshots/ ← General screenshots (bug captures, UI reviews)
|
|
62
|
+
│ └── {YYYY-MM-DD}-{label}.png
|
|
63
|
+
│
|
|
64
|
+
├── database.md ← DB: schema changes, migrations, fixes
|
|
65
|
+
├── debugging.md ← Resolved bug investigations
|
|
66
|
+
├── config.md ← Superseded configuration, old ports/keys
|
|
67
|
+
└── integrations.md ← Third-party history (Stripe, Zoom, etc.)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Folders and files are created on demand — only when first archiving into them.
|
|
71
|
+
|
|
72
|
+
## Link Format in CLAUDE.md
|
|
73
|
+
|
|
74
|
+
Keep the bullet point title in CLAUDE.md. Replace the content with a filepath:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
## Database
|
|
78
|
+
|
|
79
|
+
- **Connection pooling fix** → `history/database.md`
|
|
80
|
+
- **RLS policy for enrollments** → `history/database.md`
|
|
81
|
+
- **PG-to-MySQL translation layer** → `history/database.md`
|
|
82
|
+
|
|
83
|
+
## Resolved Bugs
|
|
84
|
+
|
|
85
|
+
- **PayPal webhook returning 401** → `history/debugging.md`
|
|
86
|
+
- **JWT refresh loop on tab focus** → `history/debugging.md`
|
|
87
|
+
|
|
88
|
+
## Completed Phases
|
|
89
|
+
|
|
90
|
+
- **Phase 1: Auth + Enrollment** → `history/phases.md`
|
|
91
|
+
- **Phase 2: Stripe Payments** → `history/phases.md`
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The title stays visible in CLAUDE.md so Claude knows what exists. The content lives in the history file. Claude follows the link only when investigating that specific topic.
|
|
95
|
+
|
|
96
|
+
## Content Classification
|
|
97
|
+
|
|
98
|
+
### NEVER ARCHIVE — Always Full Content in CLAUDE.md
|
|
99
|
+
|
|
100
|
+
No matter how large the file: keep these in full, inline, always:
|
|
101
|
+
|
|
102
|
+
- Active credentials, ports, connection strings
|
|
103
|
+
- Rules tagged `NEVER` / `ALWAYS` / `CRITICAL` / `IMPORTANT`
|
|
104
|
+
- Current blocking bugs (unresolved)
|
|
105
|
+
- Active phase/milestone (what is being built right now)
|
|
106
|
+
- Architectural constraints that affect every PR
|
|
107
|
+
- The history file index (see below)
|
|
108
|
+
|
|
109
|
+
### ARCHIVE WITH LINK — Move Content, Keep Title
|
|
110
|
+
|
|
111
|
+
Content that is resolved, completed, or no longer needed at session init:
|
|
112
|
+
|
|
113
|
+
- Completed phase notes and summaries
|
|
114
|
+
- Resolved bug write-ups and root cause analyses
|
|
115
|
+
- Superseded configuration (old ports, old DB names, old env vars)
|
|
116
|
+
- Migration history and schema change logs
|
|
117
|
+
- Debug sessions that reached a conclusion
|
|
118
|
+
- Integration setup notes (once working, rarely referenced)
|
|
119
|
+
- Decisions that are stable — no longer need daily reinforcement
|
|
120
|
+
|
|
121
|
+
### JUDGMENT CALL
|
|
122
|
+
|
|
123
|
+
- Architectural patterns still being actively applied → keep inline
|
|
124
|
+
- "Lessons learned" that prevent recurring mistakes → keep if the pattern still bites you; archive once it's internalized
|
|
125
|
+
- Feature notes → keep if in active development, archive once shipped
|
|
126
|
+
|
|
127
|
+
## History File Format
|
|
128
|
+
|
|
129
|
+
Each history file uses dated entries, appended at the top (newest first):
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
# {Topic} History
|
|
133
|
+
<!-- newest entries at top -->
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
## {YYYY-MM-DD} — {Short Title}
|
|
137
|
+
**Reason:** {phase-complete | bug-resolved | config-change | manual}
|
|
138
|
+
|
|
139
|
+
{Full content here — as detailed as needed}
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
## {YYYY-MM-DD} — {Earlier Entry}
|
|
143
|
+
...
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Rules:
|
|
147
|
+
- **APPEND-ONLY** — never delete previous entries
|
|
148
|
+
- **Newest at top** — most recent context found first
|
|
149
|
+
- **One topic per file** — keeps files small and relevant
|
|
150
|
+
- **Preserve headings** — makes files grep-able
|
|
151
|
+
|
|
152
|
+
## When to Trigger
|
|
153
|
+
|
|
154
|
+
1. **Session start feels slow** — CLAUDE.md has grown with resolved/stale content
|
|
155
|
+
2. **Phase or milestone completes** — archive that phase's notes
|
|
156
|
+
3. **Bug resolved** — move the investigation to `history/debugging.md`
|
|
157
|
+
4. **IDE lag** — the file is slowing down tooling (VS Code, etc.)
|
|
158
|
+
5. **Manual request** — "archive claude.md", "clean up claude.md"
|
|
159
|
+
|
|
160
|
+
Do NOT trigger on line count alone. Trigger on content type: is this still needed at session init?
|
|
161
|
+
|
|
162
|
+
## Implementation Steps
|
|
163
|
+
|
|
164
|
+
### Step 1: Create history directory (first time only)
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
mkdir -p {project-root}/history
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Step 2: Classify content
|
|
171
|
+
|
|
172
|
+
Read CLAUDE.md. For each section:
|
|
173
|
+
- NEVER ARCHIVE → leave as-is
|
|
174
|
+
- ARCHIVE WITH LINK → identify target history file (`database.md`, `debugging.md`, etc.)
|
|
175
|
+
- JUDGMENT CALL → decide based on current active use
|
|
176
|
+
|
|
177
|
+
### Step 3: Write to topic history file
|
|
178
|
+
|
|
179
|
+
Append (or create) the relevant `history/{topic}.md` file with a dated entry containing the full content.
|
|
180
|
+
|
|
181
|
+
### Step 4: Replace content with link in CLAUDE.md
|
|
182
|
+
|
|
183
|
+
Keep the bullet/heading title. Replace the body with `→ history/{topic}.md`.
|
|
184
|
+
|
|
185
|
+
### Step 5: Verify
|
|
186
|
+
|
|
187
|
+
- NEVER ARCHIVE content is still inline in CLAUDE.md
|
|
188
|
+
- Each archived item has a title + link in CLAUDE.md
|
|
189
|
+
- History files contain the full content with dated headers
|
|
190
|
+
- Session start is faster
|
|
191
|
+
|
|
192
|
+
## Housekeeping: Phase Completion Folder Move
|
|
193
|
+
|
|
194
|
+
When a phase completes, run the full housekeeping sequence — not just CLAUDE.md archival.
|
|
195
|
+
|
|
196
|
+
### Step 1: Create the phase subfolder
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
mkdir -p history/phases/phase-{N}-{short-name}/screenshots
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Example: `history/phases/phase-2-payments/screenshots/`
|
|
203
|
+
|
|
204
|
+
### Step 2: Move phase plan files
|
|
205
|
+
|
|
206
|
+
Any phase plan, PRD, or roadmap file sitting in the project root gets moved in:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
mv PLAN.md history/phases/phase-{N}-{name}/PLAN.md
|
|
210
|
+
mv ROADMAP.md history/phases/phase-{N}-{name}/ROADMAP.md
|
|
211
|
+
mv PRD.md history/phases/phase-{N}-{name}/PRD.md
|
|
212
|
+
mv STATE.md history/phases/phase-{N}-{name}/STATE.md
|
|
213
|
+
# move any other phase-specific docs found in root
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Only move files that belong to the completed phase. Leave active docs in root.
|
|
217
|
+
|
|
218
|
+
### Step 3: Move phase screenshots
|
|
219
|
+
|
|
220
|
+
Screenshots taken during this phase (UI reviews, before/after comparisons, bug captures related to this phase) move into the phase subfolder:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
mv screenshots/phase-{N}-*.png history/phases/phase-{N}-{name}/screenshots/
|
|
224
|
+
mv screenshots/{YYYY-MM-DD}-*.png history/phases/phase-{N}-{name}/screenshots/
|
|
225
|
+
# or move by date range matching the phase
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
General/unphased screenshots (UI audits, ad-hoc captures) stay in `history/screenshots/`.
|
|
229
|
+
|
|
230
|
+
### Step 4: Update CLAUDE.md index
|
|
231
|
+
|
|
232
|
+
Add a link entry for the completed phase:
|
|
233
|
+
|
|
234
|
+
```markdown
|
|
235
|
+
## Completed Phases
|
|
236
|
+
|
|
237
|
+
- **Phase 1 — Auth & Enrollment** → `history/phases/phase-1-auth/`
|
|
238
|
+
- **Phase 2 — Stripe Payments** → `history/phases/phase-2-payments/`
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Step 5: Archive phase CLAUDE.md notes
|
|
242
|
+
|
|
243
|
+
Move the inline phase notes from CLAUDE.md into `history/phases/phase-{N}-{name}/notes.md`, then replace with the link.
|
|
244
|
+
|
|
245
|
+
### Naming Convention
|
|
246
|
+
|
|
247
|
+
| Item | Format |
|
|
248
|
+
|------|--------|
|
|
249
|
+
| Phase folder | `phase-{N}-{kebab-name}` e.g. `phase-3-video-player` |
|
|
250
|
+
| Screenshots (phased) | `{label}.png` inside phase screenshots/ folder |
|
|
251
|
+
| Screenshots (general) | `{YYYY-MM-DD}-{label}.png` in `history/screenshots/` |
|
|
252
|
+
| Phase plan files | Original filename preserved inside phase folder |
|
|
253
|
+
|
|
254
|
+
## Integration with Existing Flows
|
|
255
|
+
|
|
256
|
+
| Flow Command | When to Archive |
|
|
257
|
+
|-------------|----------------|
|
|
258
|
+
| `/fire-5-handoff`, `/power-5-handoff` | Archive completed phase notes → `history/phases.md` |
|
|
259
|
+
| `/fire-complete-milestone`, `/power-complete-milestone` | Archive milestone → `history/phases.md` |
|
|
260
|
+
| `/fire-debug` (after resolution) | Archive debug session → `history/debugging.md` |
|
|
261
|
+
| `/fire-6-resume`, `/power-6-resume` | Check CLAUDE.md for stale inline content |
|
|
262
|
+
| `/gsd:complete-milestone` | Archive milestone → `history/phases.md` |
|
|
263
|
+
| `/gsd:pause-work` | Archive stale content before pause |
|
|
264
|
+
|
|
265
|
+
## When Claude Should Read a History File
|
|
266
|
+
|
|
267
|
+
- Investigating a bug → read `history/debugging.md`
|
|
268
|
+
- Reviewing a past architectural decision → read relevant `history/{topic}.md`
|
|
269
|
+
- Resuming stale work → read `history/phases.md`
|
|
270
|
+
- Database issue → read `history/database.md`
|
|
271
|
+
- Only read the file that matches the current problem
|
|
272
|
+
|
|
273
|
+
## Common Mistakes
|
|
274
|
+
|
|
275
|
+
- Removing the title from CLAUDE.md when archiving (title must stay as a link anchor)
|
|
276
|
+
- Archiving content tagged NEVER/CRITICAL/IMPORTANT
|
|
277
|
+
- Archiving active credentials or unresolved bugs
|
|
278
|
+
- Creating one giant `claudemdbackup.md` instead of topic-scoped files
|
|
279
|
+
- Overwriting history files instead of appending
|
|
280
|
+
- Archiving without a dated header
|