@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.
Files changed (215) hide show
  1. package/.claude-plugin/plugin.json +64 -0
  2. package/ARCHITECTURE-DIAGRAM.md +440 -0
  3. package/COMMAND-REFERENCE.md +172 -0
  4. package/DOMINION-FLOW-OVERVIEW.md +421 -0
  5. package/LICENSE +21 -0
  6. package/QUICK-START.md +351 -0
  7. package/README.md +398 -0
  8. package/TROUBLESHOOTING.md +264 -0
  9. package/agents/fire-codebase-mapper.md +484 -0
  10. package/agents/fire-debugger.md +535 -0
  11. package/agents/fire-executor.md +949 -0
  12. package/agents/fire-fact-checker.md +276 -0
  13. package/agents/fire-learncoding-explainer.md +237 -0
  14. package/agents/fire-learncoding-walker.md +147 -0
  15. package/agents/fire-planner.md +675 -0
  16. package/agents/fire-project-researcher.md +155 -0
  17. package/agents/fire-research-synthesizer.md +166 -0
  18. package/agents/fire-researcher.md +723 -0
  19. package/agents/fire-reviewer.md +499 -0
  20. package/agents/fire-roadmapper.md +203 -0
  21. package/agents/fire-verifier.md +880 -0
  22. package/bin/cli.js +208 -0
  23. package/commands/fire-0-orient.md +476 -0
  24. package/commands/fire-1-new.md +281 -0
  25. package/commands/fire-1a-discuss.md +455 -0
  26. package/commands/fire-2-plan.md +527 -0
  27. package/commands/fire-3-execute.md +1303 -0
  28. package/commands/fire-4-verify.md +845 -0
  29. package/commands/fire-5-handoff.md +515 -0
  30. package/commands/fire-6-resume.md +501 -0
  31. package/commands/fire-7-review.md +409 -0
  32. package/commands/fire-add-new-skill.md +598 -0
  33. package/commands/fire-analytics.md +499 -0
  34. package/commands/fire-assumptions.md +78 -0
  35. package/commands/fire-autonomous.md +528 -0
  36. package/commands/fire-brainstorm.md +413 -0
  37. package/commands/fire-complete-milestone.md +270 -0
  38. package/commands/fire-dashboard.md +375 -0
  39. package/commands/fire-debug.md +663 -0
  40. package/commands/fire-discover.md +616 -0
  41. package/commands/fire-double-check.md +460 -0
  42. package/commands/fire-execute-plan.md +182 -0
  43. package/commands/fire-learncoding.md +242 -0
  44. package/commands/fire-loop-resume.md +272 -0
  45. package/commands/fire-loop-stop.md +198 -0
  46. package/commands/fire-loop.md +1168 -0
  47. package/commands/fire-map-codebase.md +313 -0
  48. package/commands/fire-new-milestone.md +356 -0
  49. package/commands/fire-reflect.md +235 -0
  50. package/commands/fire-research.md +246 -0
  51. package/commands/fire-search.md +330 -0
  52. package/commands/fire-security-audit-repo.md +293 -0
  53. package/commands/fire-security-scan.md +484 -0
  54. package/commands/fire-session-summary.md +252 -0
  55. package/commands/fire-skills-diff.md +506 -0
  56. package/commands/fire-skills-history.md +388 -0
  57. package/commands/fire-skills-rollback.md +408 -0
  58. package/commands/fire-skills-sync.md +470 -0
  59. package/commands/fire-test.md +520 -0
  60. package/commands/fire-todos.md +335 -0
  61. package/commands/fire-transition.md +186 -0
  62. package/commands/fire-update.md +312 -0
  63. package/commands/fire-verify-uat.md +146 -0
  64. package/commands/fire-vuln-scan.md +493 -0
  65. package/hooks/hooks.json +16 -0
  66. package/hooks/run-hook.cmd +69 -0
  67. package/hooks/run-hook.sh +8 -0
  68. package/hooks/run-session-end.cmd +49 -0
  69. package/hooks/run-session-end.sh +7 -0
  70. package/hooks/session-end.sh +90 -0
  71. package/hooks/session-start.sh +111 -0
  72. package/package.json +52 -0
  73. package/plugin.json +7 -0
  74. package/references/auto-skill-extraction.md +136 -0
  75. package/references/behavioral-directives.md +365 -0
  76. package/references/blocker-tracking.md +155 -0
  77. package/references/checkpoints.md +165 -0
  78. package/references/circuit-breaker.md +410 -0
  79. package/references/context-engineering.md +587 -0
  80. package/references/decision-time-guidance.md +289 -0
  81. package/references/error-classification.md +326 -0
  82. package/references/execution-mode-intelligence.md +242 -0
  83. package/references/git-integration.md +217 -0
  84. package/references/honesty-protocols.md +304 -0
  85. package/references/integration-architecture.md +470 -0
  86. package/references/issue-to-pr-pipeline.md +150 -0
  87. package/references/metrics-and-trends.md +234 -0
  88. package/references/playwright-e2e-testing.md +326 -0
  89. package/references/questioning.md +125 -0
  90. package/references/research-improvements.md +110 -0
  91. package/references/skills-usage-guide.md +429 -0
  92. package/references/tdd.md +131 -0
  93. package/references/testing-enforcement.md +192 -0
  94. package/references/ui-brand.md +383 -0
  95. package/references/validation-checklist.md +456 -0
  96. package/references/verification-patterns.md +187 -0
  97. package/references/warrior-principles.md +173 -0
  98. package/skills-library/SKILLS-INDEX.md +588 -0
  99. package/skills-library/_general/frontend/html-visual-reports.md +292 -0
  100. package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
  101. package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
  102. package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
  103. package/skills-library/basics/api-rest-basics.md +162 -0
  104. package/skills-library/basics/env-variables.md +96 -0
  105. package/skills-library/basics/error-handling-basics.md +125 -0
  106. package/skills-library/basics/git-commit-conventions.md +106 -0
  107. package/skills-library/basics/readme-template.md +108 -0
  108. package/skills-library/common-tasks/async-await-patterns.md +157 -0
  109. package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
  110. package/skills-library/common-tasks/database-schema-design.md +166 -0
  111. package/skills-library/common-tasks/file-upload-basics.md +166 -0
  112. package/skills-library/common-tasks/form-validation.md +159 -0
  113. package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
  114. package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
  115. package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
  116. package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
  117. package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
  118. package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
  119. package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
  120. package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
  121. package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
  122. package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
  123. package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
  124. package/skills-library/performance/cache-augmented-generation.md +172 -0
  125. package/skills-library/quality-safety/debugging-steps.md +147 -0
  126. package/skills-library/quality-safety/deployment-checklist.md +155 -0
  127. package/skills-library/quality-safety/security-checklist.md +204 -0
  128. package/skills-library/quality-safety/testing-basics.md +180 -0
  129. package/skills-library/security/agent-security-scanner.md +445 -0
  130. package/skills-library/specialists/api-architecture/api-designer.md +49 -0
  131. package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
  132. package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
  133. package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
  134. package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
  135. package/skills-library/specialists/backend/django-expert.md +52 -0
  136. package/skills-library/specialists/backend/fastapi-expert.md +52 -0
  137. package/skills-library/specialists/backend/laravel-specialist.md +52 -0
  138. package/skills-library/specialists/backend/nestjs-expert.md +51 -0
  139. package/skills-library/specialists/backend/rails-expert.md +53 -0
  140. package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
  141. package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
  142. package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
  143. package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
  144. package/skills-library/specialists/data-ml/rag-architect.md +51 -0
  145. package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
  146. package/skills-library/specialists/frontend/angular-architect.md +52 -0
  147. package/skills-library/specialists/frontend/flutter-expert.md +51 -0
  148. package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
  149. package/skills-library/specialists/frontend/react-native-expert.md +50 -0
  150. package/skills-library/specialists/frontend/vue-expert.md +51 -0
  151. package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
  152. package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
  153. package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
  154. package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
  155. package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
  156. package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
  157. package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
  158. package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
  159. package/skills-library/specialists/languages/cpp-pro.md +74 -0
  160. package/skills-library/specialists/languages/csharp-developer.md +69 -0
  161. package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
  162. package/skills-library/specialists/languages/golang-pro.md +51 -0
  163. package/skills-library/specialists/languages/java-architect.md +49 -0
  164. package/skills-library/specialists/languages/javascript-pro.md +68 -0
  165. package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
  166. package/skills-library/specialists/languages/php-pro.md +49 -0
  167. package/skills-library/specialists/languages/python-pro.md +52 -0
  168. package/skills-library/specialists/languages/react-expert.md +51 -0
  169. package/skills-library/specialists/languages/rust-engineer.md +50 -0
  170. package/skills-library/specialists/languages/sql-pro.md +56 -0
  171. package/skills-library/specialists/languages/swift-expert.md +69 -0
  172. package/skills-library/specialists/languages/typescript-pro.md +51 -0
  173. package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
  174. package/skills-library/specialists/platform/embedded-systems.md +53 -0
  175. package/skills-library/specialists/platform/game-developer.md +53 -0
  176. package/skills-library/specialists/platform/salesforce-developer.md +53 -0
  177. package/skills-library/specialists/platform/shopify-expert.md +49 -0
  178. package/skills-library/specialists/platform/wordpress-pro.md +49 -0
  179. package/skills-library/specialists/quality/code-documenter.md +51 -0
  180. package/skills-library/specialists/quality/code-reviewer.md +67 -0
  181. package/skills-library/specialists/quality/debugging-wizard.md +51 -0
  182. package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
  183. package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
  184. package/skills-library/specialists/quality/playwright-expert.md +65 -0
  185. package/skills-library/specialists/quality/spec-miner.md +56 -0
  186. package/skills-library/specialists/quality/test-master.md +65 -0
  187. package/skills-library/specialists/security/secure-code-guardian.md +55 -0
  188. package/skills-library/specialists/security/security-reviewer.md +53 -0
  189. package/skills-library/specialists/workflow/architecture-designer.md +53 -0
  190. package/skills-library/specialists/workflow/cli-developer.md +70 -0
  191. package/skills-library/specialists/workflow/feature-forge.md +65 -0
  192. package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
  193. package/skills-library/specialists/workflow/the-fool.md +62 -0
  194. package/templates/ASSUMPTIONS.md +125 -0
  195. package/templates/BLOCKERS.md +73 -0
  196. package/templates/DECISION_LOG.md +116 -0
  197. package/templates/UAT.md +96 -0
  198. package/templates/blueprint.md +94 -0
  199. package/templates/brainstorm.md +185 -0
  200. package/templates/conscience.md +92 -0
  201. package/templates/fire-handoff.md +159 -0
  202. package/templates/metrics.md +67 -0
  203. package/templates/phase-prompt.md +142 -0
  204. package/templates/record.md +131 -0
  205. package/templates/review-report.md +117 -0
  206. package/templates/skills-index.md +157 -0
  207. package/templates/verification.md +149 -0
  208. package/templates/vision.md +79 -0
  209. package/validation-config.yml +793 -0
  210. package/version.json +7 -0
  211. package/workflows/execute-phase.md +732 -0
  212. package/workflows/handoff-session.md +678 -0
  213. package/workflows/new-project.md +578 -0
  214. package/workflows/plan-phase.md +592 -0
  215. package/workflows/verify-phase.md +874 -0
@@ -0,0 +1,408 @@
1
+ ---
2
+ name: power-skills-rollback
3
+ description: Rollback a skill to a previous version
4
+ arguments:
5
+ - name: skill
6
+ description: Skill identifier in format category/skill-name
7
+ required: true
8
+ type: string
9
+ - name: version
10
+ description: Target version to rollback to (e.g., 1.2.0 or commit hash)
11
+ required: true
12
+ type: string
13
+ triggers:
14
+ - "rollback skill"
15
+ - "revert skill"
16
+ - "restore skill version"
17
+ ---
18
+
19
+ # /fire-skills-rollback - Rollback Skill to Previous Version
20
+
21
+ Restore a skill to a previous version from the git-backed skills library.
22
+
23
+ ## Purpose
24
+
25
+ - Revert problematic changes to a skill
26
+ - Restore a preferred earlier version
27
+ - Undo accidental modifications
28
+ - Recover from sync conflicts
29
+ - Test against older skill patterns
30
+
31
+ ## Prerequisites
32
+
33
+ The skills library must be git-versioned:
34
+ - `~/.claude/plugins/dominion-flow/skills-library/.git/`
35
+
36
+ ## Arguments
37
+
38
+ | Argument | Required | Description |
39
+ |----------|----------|-------------|
40
+ | `skill` | Yes | Skill path: `{category}/{skill-name}` |
41
+ | `version` | Yes | Target version: semantic version (e.g., `1.2.0`) or commit hash |
42
+
43
+ ## Usage Examples
44
+
45
+ ```bash
46
+ # Rollback to specific version
47
+ /fire-skills-rollback database-solutions/n-plus-1 1.2.0
48
+
49
+ # Rollback using commit hash
50
+ /fire-skills-rollback security/jwt-auth abc1234
51
+
52
+ # Rollback with confirmation skip
53
+ /fire-skills-rollback api-patterns/pagination 2.0.0 --yes
54
+
55
+ # Rollback in global library
56
+ /fire-skills-rollback performance/caching 1.0.0 --global
57
+
58
+ # Preview rollback without applying
59
+ /fire-skills-rollback testing/snapshot 1.1.0 --dry-run
60
+ ```
61
+
62
+ ## Process
63
+
64
+ <step number="1">
65
+ ### Validate Arguments
66
+
67
+ Verify skill and version exist:
68
+
69
+ ```bash
70
+ # Check skill exists
71
+ ls ~/.claude/plugins/dominion-flow/skills-library/{category}/{skill-name}.md
72
+
73
+ # Find version in git history
74
+ cd ~/.claude/plugins/dominion-flow/skills-library
75
+ git log --oneline -- {category}/{skill-name}.md | grep -i "v{version}"
76
+ ```
77
+
78
+ If version not found, search by semantic version in frontmatter:
79
+ ```bash
80
+ # Search commits for version tag
81
+ for commit in $(git log --format=%H -- {category}/{skill-name}.md); do
82
+ version_line=$(git show $commit:{category}/{skill-name}.md 2>/dev/null | grep "^version:")
83
+ if [[ "$version_line" == *"{target-version}"* ]]; then
84
+ echo "Found: $commit"
85
+ break
86
+ fi
87
+ done
88
+ ```
89
+
90
+ Error if not found:
91
+ ```
92
+ Error: Version {version} not found for skill {category}/{skill-name}
93
+
94
+ Available versions:
95
+ v2.1.0 (2026-01-22) - abc1234
96
+ v2.0.0 (2026-01-15) - def5678
97
+ v1.2.0 (2026-01-08) - ghi9012
98
+ v1.1.0 (2025-12-20) - jkl3456
99
+ v1.0.0 (2025-12-15) - mno7890
100
+
101
+ Usage: /fire-skills-rollback {skill} {version}
102
+ ```
103
+ </step>
104
+
105
+ <step number="2">
106
+ ### Show Comparison
107
+
108
+ Display current vs target version:
109
+
110
+ ```
111
+ =============================================================
112
+ SKILL ROLLBACK PREVIEW
113
+ =============================================================
114
+
115
+ Skill: {category}/{skill-name}
116
+ Current: v{current-version} ({current-date})
117
+ Target: v{target-version} ({target-date})
118
+
119
+ -------------------------------------------------------------
120
+ CURRENT VERSION (v{current-version})
121
+ -------------------------------------------------------------
122
+
123
+ {First 50 lines of current skill content}
124
+ ...
125
+
126
+ -------------------------------------------------------------
127
+ TARGET VERSION (v{target-version})
128
+ -------------------------------------------------------------
129
+
130
+ {First 50 lines of target skill content}
131
+ ...
132
+
133
+ -------------------------------------------------------------
134
+ CHANGES TO BE REVERTED
135
+ -------------------------------------------------------------
136
+
137
+ The following changes will be undone:
138
+
139
+ Version History (newest to oldest):
140
+
141
+ v{current} -> v{intermediate-1}
142
+ ├─ {change description 1}
143
+ ├─ {change description 2}
144
+ └─ {change description 3}
145
+
146
+ v{intermediate-1} -> v{intermediate-2}
147
+ ├─ {change description 4}
148
+ └─ {change description 5}
149
+
150
+ v{intermediate-2} -> v{target}
151
+ └─ (target version)
152
+
153
+ Total changes to revert: {N} commits
154
+
155
+ -------------------------------------------------------------
156
+ DIFF SUMMARY
157
+ -------------------------------------------------------------
158
+
159
+ {category}/{skill-name}.md
160
+
161
+ Lines added (to be removed): +{X}
162
+ Lines removed (to be restored): -{Y}
163
+ Net change: {Z} lines
164
+
165
+ -------------------------------------------------------------
166
+ WARNING
167
+ -------------------------------------------------------------
168
+
169
+ This rollback will:
170
+ - Restore skill to version v{target-version}
171
+ - Remove all changes made after {target-date}
172
+ - Create a new commit documenting the rollback
173
+ - NOT affect the global library (sync separately)
174
+
175
+ Recent usage of this skill:
176
+ - Applied {N} times since v{target-version}
177
+ - Last used: {date} in Phase {X}
178
+
179
+ Consider: Are newer patterns still needed in your codebase?
180
+
181
+ -------------------------------------------------------------
182
+ CONFIRMATION
183
+ -------------------------------------------------------------
184
+
185
+ Proceed with rollback?
186
+
187
+ [Y] Yes, rollback to v{target-version}
188
+ [N] No, cancel
189
+ [D] Show full diff
190
+ [V] View target version content
191
+
192
+ > _
193
+
194
+ =============================================================
195
+ ```
196
+ </step>
197
+
198
+ <step number="3">
199
+ ### Execute Rollback
200
+
201
+ Upon confirmation:
202
+
203
+ ```bash
204
+ cd ~/.claude/plugins/dominion-flow/skills-library
205
+
206
+ # Checkout the target version
207
+ git show {commit-hash}:{category}/{skill-name}.md > {category}/{skill-name}.md
208
+
209
+ # Update frontmatter with rollback note
210
+ # Add to changelog:
211
+ # - "{date}: Rolled back to v{target} from v{current}"
212
+
213
+ # Stage changes
214
+ git add {category}/{skill-name}.md
215
+
216
+ # Commit rollback
217
+ git commit -m "rollback({category}): revert {skill-name} to v{target-version}
218
+
219
+ Reverted from v{current-version} to v{target-version}
220
+ Reason: User-initiated rollback via /fire-skills-rollback
221
+
222
+ Changes reverted:
223
+ - {list of reverted changes}
224
+ "
225
+ ```
226
+ </step>
227
+
228
+ <step number="4">
229
+ ### Update SKILLS-INDEX.md
230
+
231
+ Update the index with rollback information:
232
+
233
+ ```markdown
234
+ ## Rollback History
235
+
236
+ | Date | Skill | From | To | Reason |
237
+ |------|-------|------|-----|--------|
238
+ | 2026-01-22 | database-solutions/n-plus-1 | v2.1.0 | v1.2.0 | User rollback |
239
+ ```
240
+ </step>
241
+
242
+ <step number="5">
243
+ ### Confirmation
244
+
245
+ ```
246
+ =============================================================
247
+ ROLLBACK COMPLETE
248
+ =============================================================
249
+
250
+ Skill: {category}/{skill-name}
251
+ Previous: v{current-version}
252
+ Restored: v{target-version}
253
+ Commit: {new-commit-hash}
254
+
255
+ -------------------------------------------------------------
256
+ DETAILS
257
+ -------------------------------------------------------------
258
+
259
+ Changes reverted:
260
+ - {change 1 that was undone}
261
+ - {change 2 that was undone}
262
+ - {change 3 that was undone}
263
+
264
+ Skill file updated:
265
+ ~/.claude/plugins/dominion-flow/skills-library/{category}/{skill-name}.md
266
+
267
+ SKILLS-INDEX.md updated:
268
+ - Rollback recorded in history
269
+
270
+ -------------------------------------------------------------
271
+ NEXT STEPS
272
+ -------------------------------------------------------------
273
+
274
+ 1. Verify the restored skill:
275
+ /fire-search --detail {category}/{skill-name}
276
+
277
+ 2. Update references in current plans:
278
+ Check if any BLUEPRINT.md references this skill
279
+
280
+ 3. Sync to global library (optional):
281
+ /fire-skills-sync --push --skill {category}/{skill-name}
282
+
283
+ 4. If you need to undo this rollback:
284
+ /fire-skills-rollback {category}/{skill-name} {current-version}
285
+
286
+ -------------------------------------------------------------
287
+ IMPORTANT NOTES
288
+ -------------------------------------------------------------
289
+
290
+ - The global library still has v{current-version}
291
+ - Other projects using this skill are not affected
292
+ - To propagate this rollback, run /fire-skills-sync --push
293
+
294
+ =============================================================
295
+ ```
296
+ </step>
297
+
298
+ ## Options
299
+
300
+ | Option | Description |
301
+ |--------|-------------|
302
+ | `--yes` / `-y` | Skip confirmation prompt |
303
+ | `--dry-run` | Preview changes without applying |
304
+ | `--global` | Rollback in global library instead |
305
+ | `--reason "{text}"` | Add reason to rollback commit message |
306
+ | `--no-commit` | Make changes but don't commit |
307
+ | `--preserve-newer` | Keep newer additions while reverting core changes |
308
+
309
+ ## Rollback Strategies
310
+
311
+ ### Strategy 1: Full Rollback (Default)
312
+ Completely replaces current version with target version.
313
+
314
+ ```bash
315
+ /fire-skills-rollback database-solutions/n-plus-1 1.2.0
316
+ ```
317
+
318
+ ### Strategy 2: Selective Rollback
319
+ Keep certain sections from current version.
320
+
321
+ ```bash
322
+ /fire-skills-rollback database-solutions/n-plus-1 1.2.0 --preserve-newer
323
+ ```
324
+
325
+ This prompts for which sections to keep:
326
+ ```
327
+ Which sections should keep newer content?
328
+
329
+ [ ] Problem description
330
+ [ ] Solution pattern
331
+ [x] Code examples (keep v2.1.0 Prisma examples)
332
+ [ ] When to use
333
+ [ ] When NOT to use
334
+ [x] References (keep newer links)
335
+
336
+ Proceed with selective rollback? [Y/n]
337
+ ```
338
+
339
+ ### Strategy 3: Create Branch Version
340
+ Instead of replacing, create a variant skill.
341
+
342
+ ```bash
343
+ /fire-skills-rollback database-solutions/n-plus-1 1.2.0 --branch classic
344
+ ```
345
+
346
+ Creates: `database-solutions/n-plus-1-classic.md` with v1.2.0 content
347
+
348
+ ## Recovery from Rollback
349
+
350
+ If you need to undo a rollback:
351
+
352
+ ```bash
353
+ # Option 1: Rollback to the version before rollback
354
+ /fire-skills-rollback {skill} {previous-current-version}
355
+
356
+ # Option 2: Pull from global (if global has newer)
357
+ /fire-skills-sync --pull --skill {skill}
358
+
359
+ # Option 3: Git reset (advanced)
360
+ cd ~/.claude/plugins/dominion-flow/skills-library
361
+ git revert HEAD # Reverts the rollback commit
362
+ ```
363
+
364
+ ## Safety Features
365
+
366
+ 1. **Confirmation Required**: Always shows preview before rollback
367
+ 2. **Git Backup**: Original version preserved in git history
368
+ 3. **Rollback Tracking**: All rollbacks logged in SKILLS-INDEX.md
369
+ 4. **No Global Impact**: Project rollback doesn't affect global library
370
+ 5. **Dry Run**: Preview changes with `--dry-run`
371
+
372
+ ## Error Handling
373
+
374
+ **Skill not found:**
375
+ ```
376
+ Error: Skill not found: {skill}
377
+ Available skills in {category}/:
378
+ - skill-1
379
+ - skill-2
380
+ ```
381
+
382
+ **Version not found:**
383
+ ```
384
+ Error: Version {version} not found
385
+ Available versions: v2.1.0, v2.0.0, v1.2.0, v1.1.0, v1.0.0
386
+ ```
387
+
388
+ **Git not initialized:**
389
+ ```
390
+ Error: Skills library is not git-versioned
391
+ Initialize with: cd ~/.claude/plugins/dominion-flow/skills-library && git init
392
+ ```
393
+
394
+ **Uncommitted changes:**
395
+ ```
396
+ Error: Skills library has uncommitted changes
397
+ Commit or stash changes before rollback:
398
+ git add . && git commit -m "WIP"
399
+ OR
400
+ git stash
401
+ ```
402
+
403
+ ## Related Commands
404
+
405
+ - `/fire-skills-history` - View version history
406
+ - `/fire-skills-diff` - Compare versions before rollback
407
+ - `/fire-search --detail` - View current skill content
408
+ - `/fire-skills-sync` - Sync rollback to global library