@thierrynakoa/fire-flow 10.0.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/.claude-plugin/plugin.json +64 -0
- package/ARCHITECTURE-DIAGRAM.md +440 -0
- package/COMMAND-REFERENCE.md +172 -0
- package/DOMINION-FLOW-OVERVIEW.md +421 -0
- package/LICENSE +21 -0
- package/QUICK-START.md +351 -0
- package/README.md +398 -0
- package/TROUBLESHOOTING.md +264 -0
- package/agents/fire-codebase-mapper.md +484 -0
- package/agents/fire-debugger.md +535 -0
- package/agents/fire-executor.md +949 -0
- package/agents/fire-fact-checker.md +276 -0
- package/agents/fire-learncoding-explainer.md +237 -0
- package/agents/fire-learncoding-walker.md +147 -0
- package/agents/fire-planner.md +675 -0
- package/agents/fire-project-researcher.md +155 -0
- package/agents/fire-research-synthesizer.md +166 -0
- package/agents/fire-researcher.md +723 -0
- package/agents/fire-reviewer.md +499 -0
- package/agents/fire-roadmapper.md +203 -0
- package/agents/fire-verifier.md +880 -0
- package/bin/cli.js +208 -0
- package/commands/fire-0-orient.md +476 -0
- package/commands/fire-1-new.md +281 -0
- package/commands/fire-1a-discuss.md +455 -0
- package/commands/fire-2-plan.md +527 -0
- package/commands/fire-3-execute.md +1303 -0
- package/commands/fire-4-verify.md +845 -0
- package/commands/fire-5-handoff.md +515 -0
- package/commands/fire-6-resume.md +501 -0
- package/commands/fire-7-review.md +409 -0
- package/commands/fire-add-new-skill.md +598 -0
- package/commands/fire-analytics.md +499 -0
- package/commands/fire-assumptions.md +78 -0
- package/commands/fire-autonomous.md +528 -0
- package/commands/fire-brainstorm.md +413 -0
- package/commands/fire-complete-milestone.md +270 -0
- package/commands/fire-dashboard.md +375 -0
- package/commands/fire-debug.md +663 -0
- package/commands/fire-discover.md +616 -0
- package/commands/fire-double-check.md +460 -0
- package/commands/fire-execute-plan.md +182 -0
- package/commands/fire-learncoding.md +242 -0
- package/commands/fire-loop-resume.md +272 -0
- package/commands/fire-loop-stop.md +198 -0
- package/commands/fire-loop.md +1168 -0
- package/commands/fire-map-codebase.md +313 -0
- package/commands/fire-new-milestone.md +356 -0
- package/commands/fire-reflect.md +235 -0
- package/commands/fire-research.md +246 -0
- package/commands/fire-search.md +330 -0
- package/commands/fire-security-audit-repo.md +293 -0
- package/commands/fire-security-scan.md +484 -0
- package/commands/fire-session-summary.md +252 -0
- package/commands/fire-skills-diff.md +506 -0
- package/commands/fire-skills-history.md +388 -0
- package/commands/fire-skills-rollback.md +408 -0
- package/commands/fire-skills-sync.md +470 -0
- package/commands/fire-test.md +520 -0
- package/commands/fire-todos.md +335 -0
- package/commands/fire-transition.md +186 -0
- package/commands/fire-update.md +312 -0
- package/commands/fire-verify-uat.md +146 -0
- package/commands/fire-vuln-scan.md +493 -0
- package/hooks/hooks.json +16 -0
- package/hooks/run-hook.cmd +69 -0
- package/hooks/run-hook.sh +8 -0
- package/hooks/run-session-end.cmd +49 -0
- package/hooks/run-session-end.sh +7 -0
- package/hooks/session-end.sh +90 -0
- package/hooks/session-start.sh +111 -0
- package/package.json +52 -0
- package/plugin.json +7 -0
- package/references/auto-skill-extraction.md +136 -0
- package/references/behavioral-directives.md +365 -0
- package/references/blocker-tracking.md +155 -0
- package/references/checkpoints.md +165 -0
- package/references/circuit-breaker.md +410 -0
- package/references/context-engineering.md +587 -0
- package/references/decision-time-guidance.md +289 -0
- package/references/error-classification.md +326 -0
- package/references/execution-mode-intelligence.md +242 -0
- package/references/git-integration.md +217 -0
- package/references/honesty-protocols.md +304 -0
- package/references/integration-architecture.md +470 -0
- package/references/issue-to-pr-pipeline.md +150 -0
- package/references/metrics-and-trends.md +234 -0
- package/references/playwright-e2e-testing.md +326 -0
- package/references/questioning.md +125 -0
- package/references/research-improvements.md +110 -0
- package/references/skills-usage-guide.md +429 -0
- package/references/tdd.md +131 -0
- package/references/testing-enforcement.md +192 -0
- package/references/ui-brand.md +383 -0
- package/references/validation-checklist.md +456 -0
- package/references/verification-patterns.md +187 -0
- package/references/warrior-principles.md +173 -0
- package/skills-library/SKILLS-INDEX.md +588 -0
- package/skills-library/_general/frontend/html-visual-reports.md +292 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
- package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
- package/skills-library/basics/api-rest-basics.md +162 -0
- package/skills-library/basics/env-variables.md +96 -0
- package/skills-library/basics/error-handling-basics.md +125 -0
- package/skills-library/basics/git-commit-conventions.md +106 -0
- package/skills-library/basics/readme-template.md +108 -0
- package/skills-library/common-tasks/async-await-patterns.md +157 -0
- package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
- package/skills-library/common-tasks/database-schema-design.md +166 -0
- package/skills-library/common-tasks/file-upload-basics.md +166 -0
- package/skills-library/common-tasks/form-validation.md +159 -0
- package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
- package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
- package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
- package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
- package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
- package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
- package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
- package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
- package/skills-library/performance/cache-augmented-generation.md +172 -0
- package/skills-library/quality-safety/debugging-steps.md +147 -0
- package/skills-library/quality-safety/deployment-checklist.md +155 -0
- package/skills-library/quality-safety/security-checklist.md +204 -0
- package/skills-library/quality-safety/testing-basics.md +180 -0
- package/skills-library/security/agent-security-scanner.md +445 -0
- package/skills-library/specialists/api-architecture/api-designer.md +49 -0
- package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
- package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
- package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
- package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
- package/skills-library/specialists/backend/django-expert.md +52 -0
- package/skills-library/specialists/backend/fastapi-expert.md +52 -0
- package/skills-library/specialists/backend/laravel-specialist.md +52 -0
- package/skills-library/specialists/backend/nestjs-expert.md +51 -0
- package/skills-library/specialists/backend/rails-expert.md +53 -0
- package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
- package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
- package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
- package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
- package/skills-library/specialists/data-ml/rag-architect.md +51 -0
- package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
- package/skills-library/specialists/frontend/angular-architect.md +52 -0
- package/skills-library/specialists/frontend/flutter-expert.md +51 -0
- package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
- package/skills-library/specialists/frontend/react-native-expert.md +50 -0
- package/skills-library/specialists/frontend/vue-expert.md +51 -0
- package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
- package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
- package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
- package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
- package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
- package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
- package/skills-library/specialists/languages/cpp-pro.md +74 -0
- package/skills-library/specialists/languages/csharp-developer.md +69 -0
- package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
- package/skills-library/specialists/languages/golang-pro.md +51 -0
- package/skills-library/specialists/languages/java-architect.md +49 -0
- package/skills-library/specialists/languages/javascript-pro.md +68 -0
- package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
- package/skills-library/specialists/languages/php-pro.md +49 -0
- package/skills-library/specialists/languages/python-pro.md +52 -0
- package/skills-library/specialists/languages/react-expert.md +51 -0
- package/skills-library/specialists/languages/rust-engineer.md +50 -0
- package/skills-library/specialists/languages/sql-pro.md +56 -0
- package/skills-library/specialists/languages/swift-expert.md +69 -0
- package/skills-library/specialists/languages/typescript-pro.md +51 -0
- package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
- package/skills-library/specialists/platform/embedded-systems.md +53 -0
- package/skills-library/specialists/platform/game-developer.md +53 -0
- package/skills-library/specialists/platform/salesforce-developer.md +53 -0
- package/skills-library/specialists/platform/shopify-expert.md +49 -0
- package/skills-library/specialists/platform/wordpress-pro.md +49 -0
- package/skills-library/specialists/quality/code-documenter.md +51 -0
- package/skills-library/specialists/quality/code-reviewer.md +67 -0
- package/skills-library/specialists/quality/debugging-wizard.md +51 -0
- package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
- package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
- package/skills-library/specialists/quality/playwright-expert.md +65 -0
- package/skills-library/specialists/quality/spec-miner.md +56 -0
- package/skills-library/specialists/quality/test-master.md +65 -0
- package/skills-library/specialists/security/secure-code-guardian.md +55 -0
- package/skills-library/specialists/security/security-reviewer.md +53 -0
- package/skills-library/specialists/workflow/architecture-designer.md +53 -0
- package/skills-library/specialists/workflow/cli-developer.md +70 -0
- package/skills-library/specialists/workflow/feature-forge.md +65 -0
- package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
- package/skills-library/specialists/workflow/the-fool.md +62 -0
- package/templates/ASSUMPTIONS.md +125 -0
- package/templates/BLOCKERS.md +73 -0
- package/templates/DECISION_LOG.md +116 -0
- package/templates/UAT.md +96 -0
- package/templates/blueprint.md +94 -0
- package/templates/brainstorm.md +185 -0
- package/templates/conscience.md +92 -0
- package/templates/fire-handoff.md +159 -0
- package/templates/metrics.md +67 -0
- package/templates/phase-prompt.md +142 -0
- package/templates/record.md +131 -0
- package/templates/review-report.md +117 -0
- package/templates/skills-index.md +157 -0
- package/templates/verification.md +149 -0
- package/templates/vision.md +79 -0
- package/validation-config.yml +793 -0
- package/version.json +7 -0
- package/workflows/execute-phase.md +732 -0
- package/workflows/handoff-session.md +678 -0
- package/workflows/new-project.md +578 -0
- package/workflows/plan-phase.md +592 -0
- package/workflows/verify-phase.md +874 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# /fire-reflect
|
|
2
|
+
|
|
3
|
+
> Capture, search, and review failure reflections. Reflexion-style self-reflection for cross-session learning.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
After any failure (debug resolution, test failure, approach rotation, stalled loop), capture **what was tried, why it failed, and what actually worked** as a persistent reflection. Future sessions search these before investigating.
|
|
10
|
+
|
|
11
|
+
**Research basis:** Reflexion (NeurIPS 2023) — 91% pass@1 via verbal self-reflection stored as linguistic memory.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Arguments
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
arguments:
|
|
19
|
+
action:
|
|
20
|
+
required: false
|
|
21
|
+
type: string
|
|
22
|
+
description: "Action to perform: capture (default), search, list, review"
|
|
23
|
+
example: "/fire-reflect capture"
|
|
24
|
+
|
|
25
|
+
optional_flags:
|
|
26
|
+
--from debug: "Auto-extract from most recent resolved debug session"
|
|
27
|
+
--from session: "Extract from current session context"
|
|
28
|
+
--project <name>: "Tag with project name"
|
|
29
|
+
--severity <level>: "minor | moderate | critical (default: moderate)"
|
|
30
|
+
--search <query>: "Search reflections by keyword/symptom"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Process
|
|
36
|
+
|
|
37
|
+
### Step 1: Determine Action
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
IF args contain "search" or --search:
|
|
41
|
+
→ Go to Search Mode (Step 5)
|
|
42
|
+
IF args contain "list":
|
|
43
|
+
→ Go to List Mode (Step 6)
|
|
44
|
+
IF args contain "review":
|
|
45
|
+
→ Go to Review Mode (Step 7)
|
|
46
|
+
ELSE:
|
|
47
|
+
→ Capture Mode (Step 2)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Step 2: Gather Reflection Content
|
|
51
|
+
|
|
52
|
+
**If `--from debug`:**
|
|
53
|
+
- Read most recent file in `.planning/debug/resolved/`
|
|
54
|
+
- Extract: symptoms, eliminated hypotheses, root cause, fix applied
|
|
55
|
+
- Auto-fill reflection fields
|
|
56
|
+
|
|
57
|
+
**If `--from session`:**
|
|
58
|
+
- Review current conversation context
|
|
59
|
+
- Identify: failed approaches, what was tried, what worked
|
|
60
|
+
- Auto-fill reflection fields
|
|
61
|
+
|
|
62
|
+
**If interactive (default):**
|
|
63
|
+
Ask using AskUserQuestion:
|
|
64
|
+
|
|
65
|
+
1. **What was the problem?** — Brief symptom description
|
|
66
|
+
2. **What did you try that failed?** — Each approach and why it didn't work
|
|
67
|
+
3. **What actually worked?** — The solution that resolved it
|
|
68
|
+
4. **The lesson** — One-sentence takeaway for future self
|
|
69
|
+
5. **Search triggers** — When should future agents find this?
|
|
70
|
+
|
|
71
|
+
### Step 3: Generate Reflection File
|
|
72
|
+
|
|
73
|
+
Create file at `~/.claude/reflections/{date}_{slug}.md`:
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
---
|
|
77
|
+
type: reflection
|
|
78
|
+
date: {YYYY-MM-DD}
|
|
79
|
+
project: {project-name}
|
|
80
|
+
trigger: debug-resolution | test-failure | approach-rotation | stalled-loop
|
|
81
|
+
severity: minor | moderate | critical
|
|
82
|
+
tags: [{technology}, {pattern}, {symptom}]
|
|
83
|
+
---
|
|
84
|
+
# What I tried and why it failed
|
|
85
|
+
|
|
86
|
+
## The Problem
|
|
87
|
+
{Brief description of symptoms — what went wrong, what was observed}
|
|
88
|
+
|
|
89
|
+
## What I Tried (and why each failed)
|
|
90
|
+
1. **{Approach 1}** — {Why it didn't work. What was the evidence?}
|
|
91
|
+
2. **{Approach 2}** — {Why it didn't work. What disproved it?}
|
|
92
|
+
|
|
93
|
+
## What Actually Worked
|
|
94
|
+
{The solution. Be specific — include the code pattern, command, or insight.}
|
|
95
|
+
|
|
96
|
+
## The Lesson
|
|
97
|
+
{One-sentence takeaway. This is what a future agent reads first.}
|
|
98
|
+
|
|
99
|
+
## Future Self: Search For This When
|
|
100
|
+
- {Symptom 1 that should trigger finding this reflection}
|
|
101
|
+
- {Symptom 2}
|
|
102
|
+
- {Error message pattern}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Step 4: Save and Confirm
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
Save to: ~/.claude/reflections/{date}_{slug}.md
|
|
109
|
+
|
|
110
|
+
Display:
|
|
111
|
+
+----------------------------------------------------------------------+
|
|
112
|
+
| REFLECTION CAPTURED |
|
|
113
|
+
+----------------------------------------------------------------------+
|
|
114
|
+
| |
|
|
115
|
+
| File: ~/.claude/reflections/{date}_{slug}.md |
|
|
116
|
+
| Project: {project} |
|
|
117
|
+
| Severity: {severity} |
|
|
118
|
+
| Tags: {tags} |
|
|
119
|
+
| |
|
|
120
|
+
| Lesson: {one-sentence lesson} |
|
|
121
|
+
| |
|
|
122
|
+
| This reflection will be searchable via: |
|
|
123
|
+
| /fire-remember "{symptom}" --type reflection |
|
|
124
|
+
| /fire-reflect --search "{keyword}" |
|
|
125
|
+
| |
|
|
126
|
+
+----------------------------------------------------------------------+
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Step 5: Search Mode
|
|
130
|
+
|
|
131
|
+
When called with `--search` or `search` action:
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
1. Search ~/.claude/reflections/ for matching files
|
|
135
|
+
2. Use keyword matching on: tags, problem description, lesson, search triggers
|
|
136
|
+
3. If vector memory available:
|
|
137
|
+
/fire-remember "{query}" --type reflection
|
|
138
|
+
4. Display matching reflections ranked by relevance
|
|
139
|
+
|
|
140
|
+
Output:
|
|
141
|
+
1. [{date}] {slug} — Severity: {severity}
|
|
142
|
+
Lesson: {one-sentence lesson}
|
|
143
|
+
Tags: {tags}
|
|
144
|
+
Match: {what matched}
|
|
145
|
+
|
|
146
|
+
2. ...
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Step 6: List Mode
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
List all reflections sorted by date (newest first):
|
|
153
|
+
|
|
154
|
+
# | Date | Project | Severity | Lesson
|
|
155
|
+
1 | 2026-02-20 | voice-bridge | critical | VK codes stable, char corrupted by Ctrl
|
|
156
|
+
2 | 2026-02-19 | dominion-flow | moderate | ...
|
|
157
|
+
...
|
|
158
|
+
|
|
159
|
+
Total: {N} reflections across {M} projects
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Step 7: Review Mode
|
|
163
|
+
|
|
164
|
+
Read a specific reflection and display it formatted:
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
/fire-reflect review {slug-or-number}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Auto-Trigger Integration
|
|
173
|
+
|
|
174
|
+
Reflections are auto-generated by other commands:
|
|
175
|
+
|
|
176
|
+
| Trigger | Command | When |
|
|
177
|
+
|---------|---------|------|
|
|
178
|
+
| Debug resolution | `/fire-debug` Step 7.5 | After root cause found and fix verified |
|
|
179
|
+
| Stalled loop | `/fire-loop` Step 9 | On STALLED → SPINNING transition |
|
|
180
|
+
| Approach rotation | `/fire-loop` Step 9 | On SPINNING state (forced rotation) |
|
|
181
|
+
|
|
182
|
+
Auto-generated reflections use `--from debug` or `--from session` to extract context automatically.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Pre-Investigation Search
|
|
187
|
+
|
|
188
|
+
Before starting any debug or complex task, search reflections:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
Search reflections for: "[error symptoms]"
|
|
192
|
+
If match found with relevant lesson:
|
|
193
|
+
"I've encountered this before — {lesson}. Applying directly instead of re-investigating."
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
This is wired into:
|
|
197
|
+
- `/fire-debug` Step 2.5 — Search before investigating
|
|
198
|
+
- `/fire-loop` iteration start — Check for known failure patterns
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Reflection Quality Guidelines
|
|
203
|
+
|
|
204
|
+
**Good reflection:**
|
|
205
|
+
- Specific symptoms (error messages, behaviors)
|
|
206
|
+
- Multiple failed approaches with reasons
|
|
207
|
+
- Concrete solution (code, command, config change)
|
|
208
|
+
- One-sentence lesson that's useful without context
|
|
209
|
+
- Search triggers that match how you'd describe the problem
|
|
210
|
+
|
|
211
|
+
**Bad reflection:**
|
|
212
|
+
- Vague ("something was wrong")
|
|
213
|
+
- Only records the solution without the journey
|
|
214
|
+
- No search triggers
|
|
215
|
+
- Lesson is too abstract ("be more careful")
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Success Criteria
|
|
220
|
+
|
|
221
|
+
- [ ] Reflection file created with all sections filled
|
|
222
|
+
- [ ] Tags extracted from problem domain
|
|
223
|
+
- [ ] Severity classified correctly
|
|
224
|
+
- [ ] Search triggers are realistic symptom descriptions
|
|
225
|
+
- [ ] Lesson is a single actionable sentence
|
|
226
|
+
- [ ] File saved to `~/.claude/reflections/`
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## References
|
|
231
|
+
|
|
232
|
+
- **Research:** Reflexion (NeurIPS 2023) — verbal self-reflection, 91% pass@1
|
|
233
|
+
- **Storage:** `~/.claude/reflections/` — searchable via vector memory
|
|
234
|
+
- **Index:** Qdrant sourceType: `reflection` — auto-indexed by your-memory-repo
|
|
235
|
+
- **Related:** `/fire-debug`, `/fire-loop`, `/fire-remember`
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# /fire-research
|
|
2
|
+
|
|
3
|
+
> Daily AI research-to-upgrade pipeline — search papers, score findings, implement in waves
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
Systematic daily workflow for finding, evaluating, and implementing AI research improvements into dominion-flow. Eliminates the need to explain the process each session — any fresh agent follows this pipeline autonomously.
|
|
10
|
+
|
|
11
|
+
**Proven track record:** 7 successful executions (v3.2 through v8.0), producing 70+ implemented enhancements from 200+ papers analyzed.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Arguments
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
arguments:
|
|
19
|
+
focus:
|
|
20
|
+
required: false
|
|
21
|
+
type: string
|
|
22
|
+
description: "Research focus area (e.g., 'memory consolidation', 'failure taxonomy')"
|
|
23
|
+
example: "/fire-research agent confidence calibration"
|
|
24
|
+
|
|
25
|
+
optional_flags:
|
|
26
|
+
--scan-only: "Research and score papers but don't implement (reconnaissance mode)"
|
|
27
|
+
--from-deferred: "Start from deferred candidates of last version"
|
|
28
|
+
--quick: "Single agent search instead of parallel (faster, less thorough)"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Process
|
|
34
|
+
|
|
35
|
+
### Step 1: Load the Research Pipeline Skill
|
|
36
|
+
|
|
37
|
+
Read the full methodology skill — it contains scoring matrices, wave templates, and citation formats refined across 7 versions:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
@skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**This is MANDATORY.** The skill contains the paper scoring matrix, gap taxonomy, wave grouping rules, and citation format. Do not skip.
|
|
44
|
+
|
|
45
|
+
### Step 2: Determine Focus Area
|
|
46
|
+
|
|
47
|
+
**If arguments provided:** Use as focus area directly.
|
|
48
|
+
|
|
49
|
+
**If `--from-deferred`:** Check MEMORY.md and recent handoffs for deferred candidates:
|
|
50
|
+
```bash
|
|
51
|
+
cd ~/.claude/memory
|
|
52
|
+
npm run search -- "deferred candidate" --type handoff --limit 5
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**If no arguments:** Ask user:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
What area should we research today?
|
|
59
|
+
|
|
60
|
+
Recent deferred candidates from previous versions:
|
|
61
|
+
1. [List from memory search]
|
|
62
|
+
2. [List from memory search]
|
|
63
|
+
|
|
64
|
+
Or describe a new focus area:
|
|
65
|
+
> [User input]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Step 3: Launch Parallel Research Agents
|
|
69
|
+
|
|
70
|
+
Launch 3-4 agents in a SINGLE message for true parallelism:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Agent 1: Academic Papers (arXiv, ACL, NeurIPS, ICML, ICLR — 2024-2026)
|
|
74
|
+
- Search: "[focus area] AI agent 2025 2026"
|
|
75
|
+
- Extract per paper: title, venue, date, key finding, measurable result,
|
|
76
|
+
how it maps to our workflow, specific file/step it would modify
|
|
77
|
+
- Return: Top 15 papers ranked by APPLICABILITY
|
|
78
|
+
|
|
79
|
+
Agent 2: Community Patterns + Industry Tools
|
|
80
|
+
- Search: Manus AI, Replit Agent, Cursor, Devin, SWE-Agent, Claude Code
|
|
81
|
+
- Focus: What do production AI coding tools do that we don't?
|
|
82
|
+
- Return: Top 10 patterns with source links
|
|
83
|
+
|
|
84
|
+
Agent 3: Internal Gap Analysis (Explore subagent)
|
|
85
|
+
- Read: All workflow files in the dominion-flow plugin directory
|
|
86
|
+
- Classify each gap: MEMORY | REFLECTION | PLANNING | ACTION | SYSTEM
|
|
87
|
+
- Return: Top 10 gaps ranked by impact
|
|
88
|
+
|
|
89
|
+
Agent 4 (optional): Failure Pattern Mining
|
|
90
|
+
- Search Qdrant: debug_resolution + failure_pattern source types
|
|
91
|
+
- Find recurring failures indicating systemic gaps
|
|
92
|
+
- Return: Top 5 failure patterns
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Step 4: Score Papers With Matrix
|
|
96
|
+
|
|
97
|
+
When agents return, evaluate each finding:
|
|
98
|
+
|
|
99
|
+
| Criterion | Weight | Scoring |
|
|
100
|
+
|-----------|--------|---------|
|
|
101
|
+
| Recency | 15% | 2026=5, 2025=4, 2024=3, older=1 |
|
|
102
|
+
| Measurable Results | 25% | Has numbers=5, qualitative=3, none=1 |
|
|
103
|
+
| Applicability | 30% | Maps to specific file=5, general=3, tangential=1 |
|
|
104
|
+
| Novelty | 15% | Don't do this at all=5, partial=3, already done=0 |
|
|
105
|
+
| Implementation Cost | 15% | <10 lines=5, <50 lines=3, architectural=1 |
|
|
106
|
+
|
|
107
|
+
**Threshold:** Score < 3.0 = deferred. Score > 4.0 = Wave 1.
|
|
108
|
+
|
|
109
|
+
Present scored results to user:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
=============================================================
|
|
113
|
+
RESEARCH RESULTS — [Focus Area]
|
|
114
|
+
=============================================================
|
|
115
|
+
|
|
116
|
+
Papers/Patterns Analyzed: [N]
|
|
117
|
+
Above threshold (≥3.0): [N]
|
|
118
|
+
Wave 1 candidates (≥4.0): [N]
|
|
119
|
+
|
|
120
|
+
-------------------------------------------------------------
|
|
121
|
+
TOP FINDINGS (sorted by score)
|
|
122
|
+
-------------------------------------------------------------
|
|
123
|
+
|
|
124
|
+
1. [Paper Name] ([Venue] [Year]) — Score: 4.7
|
|
125
|
+
Finding: [key result]
|
|
126
|
+
Maps to: [specific file/step]
|
|
127
|
+
|
|
128
|
+
2. [Paper Name] ([Venue] [Year]) — Score: 4.3
|
|
129
|
+
...
|
|
130
|
+
|
|
131
|
+
-------------------------------------------------------------
|
|
132
|
+
INTERNAL GAPS (from Agent 3)
|
|
133
|
+
-------------------------------------------------------------
|
|
134
|
+
|
|
135
|
+
1. [GAP-MEMORY] [description] — Score: 4.5
|
|
136
|
+
2. [GAP-PLANNING] [description] — Score: 3.8
|
|
137
|
+
|
|
138
|
+
-------------------------------------------------------------
|
|
139
|
+
DEFERRED (< 3.0, tracked for next version)
|
|
140
|
+
-------------------------------------------------------------
|
|
141
|
+
|
|
142
|
+
- [Paper] — Score: 2.7 — Reason: [why deferred]
|
|
143
|
+
|
|
144
|
+
=============================================================
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**If `--scan-only`:** Stop here. Save findings to handoff.
|
|
148
|
+
|
|
149
|
+
### Step 5: Group Into Waves
|
|
150
|
+
|
|
151
|
+
Not tiers (priority) — WAVES (dependency order):
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
Wave 1: Foundation (no dependencies)
|
|
155
|
+
- [changes that can be implemented immediately]
|
|
156
|
+
|
|
157
|
+
Wave 2: Intelligence (builds on Wave 1)
|
|
158
|
+
- [logic that USES Wave 1 structures]
|
|
159
|
+
|
|
160
|
+
Wave 3: Decision (builds on Wave 2)
|
|
161
|
+
- [higher-order patterns integrating Wave 1+2]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Confirm wave plan with user before implementing.
|
|
165
|
+
|
|
166
|
+
### Step 6: Implement Wave by Wave
|
|
167
|
+
|
|
168
|
+
For each wave:
|
|
169
|
+
1. Implement changes with inline citations:
|
|
170
|
+
```
|
|
171
|
+
> **Research basis (vX.Y):** [Paper] ([Venue] [Year]) — [finding].
|
|
172
|
+
> Applied: [what changed and why].
|
|
173
|
+
```
|
|
174
|
+
2. Verify wave works before starting next
|
|
175
|
+
3. Track deferred candidates
|
|
176
|
+
|
|
177
|
+
### Step 7: Post-Implementation
|
|
178
|
+
|
|
179
|
+
After all waves complete:
|
|
180
|
+
|
|
181
|
+
- [ ] **Version bump** — Update plugin version (semver minor for additions)
|
|
182
|
+
- [ ] **Generate report** — Save to `~/Documents/Claude Reports/`
|
|
183
|
+
- [ ] **Index into Qdrant** — `cd your-memory-repo && npm run index`
|
|
184
|
+
- [ ] **Update MEMORY.md** — Add concise entry with paper count, changes, key insight
|
|
185
|
+
- [ ] **Track deferred** — Add to handoff for next session's `/fire-research --from-deferred`
|
|
186
|
+
|
|
187
|
+
### Completion Display
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
=============================================================
|
|
191
|
+
FIRE RESEARCH COMPLETE
|
|
192
|
+
=============================================================
|
|
193
|
+
|
|
194
|
+
Version: [old] → [new]
|
|
195
|
+
Papers Analyzed: [N] from [N] parallel agents
|
|
196
|
+
Findings Above Threshold: [N]
|
|
197
|
+
Changes Implemented: [N] across [N] waves
|
|
198
|
+
|
|
199
|
+
-------------------------------------------------------------
|
|
200
|
+
WAVE SUMMARY
|
|
201
|
+
-------------------------------------------------------------
|
|
202
|
+
|
|
203
|
+
Wave 1: [N] changes — [brief description]
|
|
204
|
+
Wave 2: [N] changes — [brief description]
|
|
205
|
+
|
|
206
|
+
Files Modified: [N]
|
|
207
|
+
Key Insight: [one sentence]
|
|
208
|
+
|
|
209
|
+
-------------------------------------------------------------
|
|
210
|
+
DEFERRED TO NEXT VERSION
|
|
211
|
+
-------------------------------------------------------------
|
|
212
|
+
|
|
213
|
+
- [paper/pattern] — [reason]
|
|
214
|
+
|
|
215
|
+
-------------------------------------------------------------
|
|
216
|
+
NEXT STEPS
|
|
217
|
+
-------------------------------------------------------------
|
|
218
|
+
|
|
219
|
+
-> Run `/fire-4-verify` to validate changes
|
|
220
|
+
-> Run `/fire-5-handoff` to save session state
|
|
221
|
+
-> Tomorrow: `/fire-research --from-deferred`
|
|
222
|
+
|
|
223
|
+
=============================================================
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Success Criteria
|
|
229
|
+
|
|
230
|
+
- [ ] Research pipeline skill loaded
|
|
231
|
+
- [ ] Focus area determined (from args, deferred, or user)
|
|
232
|
+
- [ ] 3-4 parallel research agents launched
|
|
233
|
+
- [ ] Papers scored with 5-criterion matrix
|
|
234
|
+
- [ ] Findings grouped into dependency-ordered waves
|
|
235
|
+
- [ ] Each change has inline research citation
|
|
236
|
+
- [ ] Deferred candidates tracked
|
|
237
|
+
- [ ] Version bumped, report generated, memory indexed
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## Related Commands
|
|
242
|
+
|
|
243
|
+
- `/fire-search` — Search existing skills library
|
|
244
|
+
- `/fire-add-new-skill` — Contribute individual skill from session
|
|
245
|
+
- `/fire-4-verify` — Verify changes after implementation
|
|
246
|
+
- `/fire-5-handoff` — Save session state with deferred candidates
|