@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,470 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: power-skills-sync
|
|
3
|
+
description: Synchronize skills between project library and global library
|
|
4
|
+
arguments:
|
|
5
|
+
- name: direction
|
|
6
|
+
description: Sync direction (push, pull, both, dry-run)
|
|
7
|
+
required: false
|
|
8
|
+
type: string
|
|
9
|
+
default: "both"
|
|
10
|
+
triggers:
|
|
11
|
+
- "sync skills"
|
|
12
|
+
- "push skills"
|
|
13
|
+
- "pull skills"
|
|
14
|
+
- "share skills"
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# /fire-skills-sync - Sync Local/Global Skills
|
|
18
|
+
|
|
19
|
+
Synchronize skills between the project skills library and the global skills library.
|
|
20
|
+
|
|
21
|
+
## Purpose
|
|
22
|
+
|
|
23
|
+
- Share proven patterns across all your projects
|
|
24
|
+
- Pull skills discovered in other projects
|
|
25
|
+
- Maintain a central knowledge base
|
|
26
|
+
- Resolve skill version conflicts
|
|
27
|
+
- Keep skills up-to-date everywhere
|
|
28
|
+
|
|
29
|
+
## Library Locations
|
|
30
|
+
|
|
31
|
+
| Library | Path | Purpose |
|
|
32
|
+
|---------|------|---------|
|
|
33
|
+
| **Project** | `~/.claude/plugins/dominion-flow/skills-library/` | Plugin-bundled skills |
|
|
34
|
+
| **Global** | `~/.claude/fire-skills-global/` | User's personal skills across all projects |
|
|
35
|
+
|
|
36
|
+
## Arguments
|
|
37
|
+
|
|
38
|
+
| Argument | Required | Default | Description |
|
|
39
|
+
|----------|----------|---------|-------------|
|
|
40
|
+
| `direction` | No | `both` | Sync direction: `--push`, `--pull`, `--both`, `--dry-run` |
|
|
41
|
+
|
|
42
|
+
## Usage Examples
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Bidirectional sync (default)
|
|
46
|
+
/fire-skills-sync
|
|
47
|
+
|
|
48
|
+
# Push project skills to global library
|
|
49
|
+
/fire-skills-sync --push
|
|
50
|
+
|
|
51
|
+
# Pull global skills to project
|
|
52
|
+
/fire-skills-sync --pull
|
|
53
|
+
|
|
54
|
+
# Preview changes without applying
|
|
55
|
+
/fire-skills-sync --dry-run
|
|
56
|
+
|
|
57
|
+
# Force sync (overwrite conflicts with source)
|
|
58
|
+
/fire-skills-sync --push --force
|
|
59
|
+
|
|
60
|
+
# Sync specific category only
|
|
61
|
+
/fire-skills-sync --category database-solutions
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Process
|
|
65
|
+
|
|
66
|
+
<step number="1">
|
|
67
|
+
### Initialize Global Library
|
|
68
|
+
|
|
69
|
+
If global library doesn't exist, create it:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
mkdir -p ~/.claude/fire-skills-global
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Create structure matching project library:
|
|
76
|
+
```
|
|
77
|
+
~/.claude/fire-skills-global/
|
|
78
|
+
├── GLOBAL-INDEX.md # Master index
|
|
79
|
+
├── database-solutions/
|
|
80
|
+
├── api-patterns/
|
|
81
|
+
├── security/
|
|
82
|
+
├── performance/
|
|
83
|
+
├── frontend/
|
|
84
|
+
├── testing/
|
|
85
|
+
├── infrastructure/
|
|
86
|
+
├── form-solutions/
|
|
87
|
+
├── ecommerce/
|
|
88
|
+
├── video-media/
|
|
89
|
+
├── document-processing/
|
|
90
|
+
├── integrations/
|
|
91
|
+
├── automation/
|
|
92
|
+
├── patterns-standards/
|
|
93
|
+
└── methodology/
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Initialize git for versioning:
|
|
97
|
+
```bash
|
|
98
|
+
cd ~/.claude/fire-skills-global
|
|
99
|
+
git init
|
|
100
|
+
git add .
|
|
101
|
+
git commit -m "Initialize global skills library"
|
|
102
|
+
```
|
|
103
|
+
</step>
|
|
104
|
+
|
|
105
|
+
<step number="2">
|
|
106
|
+
### Compare Libraries
|
|
107
|
+
|
|
108
|
+
Scan both libraries and categorize skills:
|
|
109
|
+
|
|
110
|
+
**Comparison Algorithm:**
|
|
111
|
+
```
|
|
112
|
+
For each skill in project library:
|
|
113
|
+
- Check if exists in global library
|
|
114
|
+
- If exists: Compare versions and last_updated dates
|
|
115
|
+
- If not exists: Mark as "new in project"
|
|
116
|
+
|
|
117
|
+
For each skill in global library:
|
|
118
|
+
- Check if exists in project library
|
|
119
|
+
- If not exists: Mark as "available from global"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Comparison Categories:**
|
|
123
|
+
1. **New in Project** - Skills only in project (can push)
|
|
124
|
+
2. **Available from Global** - Skills only in global (can pull)
|
|
125
|
+
3. **Identical** - Same version in both (no action)
|
|
126
|
+
4. **Project Newer** - Project has newer version (suggest push)
|
|
127
|
+
5. **Global Newer** - Global has newer version (suggest pull)
|
|
128
|
+
6. **Conflict** - Both modified since last sync (manual resolution)
|
|
129
|
+
</step>
|
|
130
|
+
|
|
131
|
+
<step number="3">
|
|
132
|
+
### Display Sync Report
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
=============================================================
|
|
136
|
+
SKILLS SYNC REPORT
|
|
137
|
+
=============================================================
|
|
138
|
+
|
|
139
|
+
Project Library: ~/.claude/plugins/dominion-flow/skills-library/
|
|
140
|
+
Global Library: ~/.claude/fire-skills-global/
|
|
141
|
+
|
|
142
|
+
-------------------------------------------------------------
|
|
143
|
+
SUMMARY
|
|
144
|
+
-------------------------------------------------------------
|
|
145
|
+
|
|
146
|
+
Total Skills in Project: {N}
|
|
147
|
+
Total Skills in Global: {M}
|
|
148
|
+
Already Synchronized: {X}
|
|
149
|
+
|
|
150
|
+
-------------------------------------------------------------
|
|
151
|
+
PUSH TO GLOBAL ({count} skills)
|
|
152
|
+
-------------------------------------------------------------
|
|
153
|
+
|
|
154
|
+
New skills from project -> global:
|
|
155
|
+
|
|
156
|
+
+ database-solutions/connection-pool-timeout.md
|
|
157
|
+
Contributed: 2026-01-22 | Tags: postgresql, prisma
|
|
158
|
+
Problem: Connection pool exhaustion under load
|
|
159
|
+
|
|
160
|
+
+ api-patterns/retry-with-backoff.md
|
|
161
|
+
Contributed: 2026-01-20 | Tags: api, resilience
|
|
162
|
+
Problem: Transient API failures causing cascading errors
|
|
163
|
+
|
|
164
|
+
+ security/jwt-refresh-rotation.md
|
|
165
|
+
Contributed: 2026-01-18 | Tags: jwt, auth, security
|
|
166
|
+
Problem: JWT refresh token reuse vulnerabilities
|
|
167
|
+
|
|
168
|
+
Updated skills (project newer):
|
|
169
|
+
|
|
170
|
+
~ database-solutions/n-plus-1.md
|
|
171
|
+
Project: v2.1.0 (2026-01-22)
|
|
172
|
+
Global: v2.0.0 (2026-01-15)
|
|
173
|
+
Changes: Added Prisma-specific examples
|
|
174
|
+
|
|
175
|
+
-------------------------------------------------------------
|
|
176
|
+
PULL FROM GLOBAL ({count} skills)
|
|
177
|
+
-------------------------------------------------------------
|
|
178
|
+
|
|
179
|
+
Available skills from global -> project:
|
|
180
|
+
|
|
181
|
+
+ performance/image-lazy-loading.md
|
|
182
|
+
Contributed: 2026-01-19 | Source: book-writer-app
|
|
183
|
+
Problem: Large images blocking page load
|
|
184
|
+
|
|
185
|
+
+ frontend/react-memo-patterns.md
|
|
186
|
+
Contributed: 2026-01-17 | Source: ecommerce-platform
|
|
187
|
+
Problem: Unnecessary re-renders in React components
|
|
188
|
+
|
|
189
|
+
+ testing/snapshot-testing.md
|
|
190
|
+
Contributed: 2026-01-14 | Source: component-library
|
|
191
|
+
Problem: UI regression detection
|
|
192
|
+
|
|
193
|
+
Updated skills (global newer):
|
|
194
|
+
|
|
195
|
+
~ infrastructure/docker-multi-stage.md
|
|
196
|
+
Global: v1.2.0 (2026-01-21)
|
|
197
|
+
Project: v1.1.0 (2026-01-10)
|
|
198
|
+
Changes: Added ARM64 build support
|
|
199
|
+
|
|
200
|
+
-------------------------------------------------------------
|
|
201
|
+
CONFLICTS ({count} skills)
|
|
202
|
+
-------------------------------------------------------------
|
|
203
|
+
|
|
204
|
+
Both libraries modified since last sync:
|
|
205
|
+
|
|
206
|
+
! security/input-validation.md
|
|
207
|
+
Project: v2.0.0 (2026-01-22) - Added Zod examples
|
|
208
|
+
Global: v2.0.0 (2026-01-20) - Added Yup examples
|
|
209
|
+
|
|
210
|
+
Resolution options:
|
|
211
|
+
[P] Use project version
|
|
212
|
+
[G] Use global version
|
|
213
|
+
[M] Manual merge
|
|
214
|
+
[S] Skip (resolve later)
|
|
215
|
+
|
|
216
|
+
Select (P/G/M/S): > _
|
|
217
|
+
|
|
218
|
+
-------------------------------------------------------------
|
|
219
|
+
ACTIONS
|
|
220
|
+
-------------------------------------------------------------
|
|
221
|
+
|
|
222
|
+
Proceed with sync?
|
|
223
|
+
|
|
224
|
+
Direction: {push|pull|both}
|
|
225
|
+
Skills to push: {N}
|
|
226
|
+
Skills to pull: {M}
|
|
227
|
+
Conflicts: {X} (must resolve first)
|
|
228
|
+
|
|
229
|
+
[Y] Yes, proceed
|
|
230
|
+
[N] No, cancel
|
|
231
|
+
[R] Review changes in detail
|
|
232
|
+
[C] Resolve conflicts first
|
|
233
|
+
|
|
234
|
+
> _
|
|
235
|
+
|
|
236
|
+
=============================================================
|
|
237
|
+
```
|
|
238
|
+
</step>
|
|
239
|
+
|
|
240
|
+
<step number="4">
|
|
241
|
+
### Handle Conflicts
|
|
242
|
+
|
|
243
|
+
For each conflict, offer resolution options:
|
|
244
|
+
|
|
245
|
+
**Option P - Use Project Version:**
|
|
246
|
+
```bash
|
|
247
|
+
cp project/skills-library/{skill}.md global/fire-skills-global/{skill}.md
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Option G - Use Global Version:**
|
|
251
|
+
```bash
|
|
252
|
+
cp global/fire-skills-global/{skill}.md project/skills-library/{skill}.md
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
**Option M - Manual Merge:**
|
|
256
|
+
```
|
|
257
|
+
-------------------------------------------------------------
|
|
258
|
+
MANUAL MERGE: security/input-validation.md
|
|
259
|
+
-------------------------------------------------------------
|
|
260
|
+
|
|
261
|
+
PROJECT VERSION (v2.0.0 - 2026-01-22):
|
|
262
|
+
```markdown
|
|
263
|
+
## Code Example
|
|
264
|
+
|
|
265
|
+
// Using Zod for validation
|
|
266
|
+
import { z } from 'zod';
|
|
267
|
+
|
|
268
|
+
const userSchema = z.object({
|
|
269
|
+
email: z.string().email(),
|
|
270
|
+
age: z.number().min(18)
|
|
271
|
+
});
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
GLOBAL VERSION (v2.0.0 - 2026-01-20):
|
|
275
|
+
```markdown
|
|
276
|
+
## Code Example
|
|
277
|
+
|
|
278
|
+
// Using Yup for validation
|
|
279
|
+
import * as yup from 'yup';
|
|
280
|
+
|
|
281
|
+
const userSchema = yup.object({
|
|
282
|
+
email: yup.string().email().required(),
|
|
283
|
+
age: yup.number().min(18).required()
|
|
284
|
+
});
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
-------------------------------------------------------------
|
|
288
|
+
|
|
289
|
+
Merge strategy:
|
|
290
|
+
[1] Keep both examples (append)
|
|
291
|
+
[2] Create project-specific variant
|
|
292
|
+
[3] Edit manually now
|
|
293
|
+
[4] Skip for later
|
|
294
|
+
|
|
295
|
+
> _
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
**Option S - Skip:**
|
|
299
|
+
Mark conflict as unresolved, continue with other syncs.
|
|
300
|
+
</step>
|
|
301
|
+
|
|
302
|
+
<step number="5">
|
|
303
|
+
### Execute Sync
|
|
304
|
+
|
|
305
|
+
Based on direction:
|
|
306
|
+
|
|
307
|
+
**Push (project -> global):**
|
|
308
|
+
```bash
|
|
309
|
+
# For each new/updated skill
|
|
310
|
+
cp ~/.claude/plugins/dominion-flow/skills-library/{category}/{skill}.md \
|
|
311
|
+
~/.claude/fire-skills-global/{category}/{skill}.md
|
|
312
|
+
|
|
313
|
+
# Update global index
|
|
314
|
+
# Merge entries into GLOBAL-INDEX.md
|
|
315
|
+
|
|
316
|
+
# Git commit
|
|
317
|
+
cd ~/.claude/fire-skills-global
|
|
318
|
+
git add .
|
|
319
|
+
git commit -m "sync: Push {N} skills from {project-name}"
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
**Pull (global -> project):**
|
|
323
|
+
```bash
|
|
324
|
+
# For each new/updated skill
|
|
325
|
+
cp ~/.claude/fire-skills-global/{category}/{skill}.md \
|
|
326
|
+
~/.claude/plugins/dominion-flow/skills-library/{category}/{skill}.md
|
|
327
|
+
|
|
328
|
+
# Update project index
|
|
329
|
+
# Merge entries into SKILLS-INDEX.md
|
|
330
|
+
|
|
331
|
+
# Git commit if skills-library is versioned
|
|
332
|
+
cd ~/.claude/plugins/dominion-flow/skills-library
|
|
333
|
+
git add .
|
|
334
|
+
git commit -m "sync: Pull {N} skills from global library"
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
**Both (bidirectional):**
|
|
338
|
+
Execute push first, then pull, handling conflicts along the way.
|
|
339
|
+
</step>
|
|
340
|
+
|
|
341
|
+
<step number="6">
|
|
342
|
+
### Update Indexes
|
|
343
|
+
|
|
344
|
+
Update both index files with sync metadata:
|
|
345
|
+
|
|
346
|
+
**SKILLS-INDEX.md additions:**
|
|
347
|
+
```markdown
|
|
348
|
+
## Sync History
|
|
349
|
+
|
|
350
|
+
| Date | Direction | Skills | Source/Destination |
|
|
351
|
+
|------|-----------|--------|-------------------|
|
|
352
|
+
| 2026-01-22 | pull | 3 | global library |
|
|
353
|
+
| 2026-01-20 | push | 2 | global library |
|
|
354
|
+
| 2026-01-18 | both | 5 | global library |
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**GLOBAL-INDEX.md additions:**
|
|
358
|
+
```markdown
|
|
359
|
+
## Contributing Projects
|
|
360
|
+
|
|
361
|
+
| Project | Skills Contributed | Last Sync |
|
|
362
|
+
|---------|-------------------|-----------|
|
|
363
|
+
| my-project | 12 | 2026-01-22 |
|
|
364
|
+
| book-writer-app | 8 | 2026-01-20 |
|
|
365
|
+
| ecommerce-platform | 15 | 2026-01-18 |
|
|
366
|
+
```
|
|
367
|
+
</step>
|
|
368
|
+
|
|
369
|
+
<step number="7">
|
|
370
|
+
### Confirmation
|
|
371
|
+
|
|
372
|
+
```
|
|
373
|
+
=============================================================
|
|
374
|
+
SYNC COMPLETE
|
|
375
|
+
=============================================================
|
|
376
|
+
|
|
377
|
+
Direction: {direction}
|
|
378
|
+
Duration: {time}
|
|
379
|
+
|
|
380
|
+
-------------------------------------------------------------
|
|
381
|
+
RESULTS
|
|
382
|
+
-------------------------------------------------------------
|
|
383
|
+
|
|
384
|
+
Pushed to Global:
|
|
385
|
+
- {skill-1} (new)
|
|
386
|
+
- {skill-2} (updated v2.0.0 -> v2.1.0)
|
|
387
|
+
- {skill-3} (new)
|
|
388
|
+
|
|
389
|
+
Pulled from Global:
|
|
390
|
+
- {skill-4} (new)
|
|
391
|
+
- {skill-5} (updated v1.1.0 -> v1.2.0)
|
|
392
|
+
|
|
393
|
+
Conflicts Resolved:
|
|
394
|
+
- {skill-6} (used project version)
|
|
395
|
+
|
|
396
|
+
Skipped:
|
|
397
|
+
- {skill-7} (conflict unresolved)
|
|
398
|
+
|
|
399
|
+
-------------------------------------------------------------
|
|
400
|
+
LIBRARY STATUS
|
|
401
|
+
-------------------------------------------------------------
|
|
402
|
+
|
|
403
|
+
Project Library: {N} skills
|
|
404
|
+
Global Library: {M} skills
|
|
405
|
+
Synchronized: {X} skills
|
|
406
|
+
|
|
407
|
+
-------------------------------------------------------------
|
|
408
|
+
NEXT STEPS
|
|
409
|
+
-------------------------------------------------------------
|
|
410
|
+
|
|
411
|
+
1. Resolve remaining conflicts:
|
|
412
|
+
/fire-skills-sync --resolve-conflicts
|
|
413
|
+
|
|
414
|
+
2. View sync history:
|
|
415
|
+
/fire-skills-history --sync-log
|
|
416
|
+
|
|
417
|
+
3. Search newly available skills:
|
|
418
|
+
/fire-search "category:performance"
|
|
419
|
+
|
|
420
|
+
=============================================================
|
|
421
|
+
```
|
|
422
|
+
</step>
|
|
423
|
+
|
|
424
|
+
## Options
|
|
425
|
+
|
|
426
|
+
| Option | Description |
|
|
427
|
+
|--------|-------------|
|
|
428
|
+
| `--push` | Push project skills to global only |
|
|
429
|
+
| `--pull` | Pull global skills to project only |
|
|
430
|
+
| `--both` | Bidirectional sync (default) |
|
|
431
|
+
| `--dry-run` | Preview changes without applying |
|
|
432
|
+
| `--force` | Overwrite conflicts with source version |
|
|
433
|
+
| `--category {name}` | Sync specific category only |
|
|
434
|
+
| `--skill {name}` | Sync specific skill only |
|
|
435
|
+
| `--resolve-conflicts` | Interactive conflict resolution |
|
|
436
|
+
| `--auto-resolve newest` | Auto-resolve using newer version |
|
|
437
|
+
| `--auto-resolve project` | Auto-resolve using project version |
|
|
438
|
+
| `--auto-resolve global` | Auto-resolve using global version |
|
|
439
|
+
|
|
440
|
+
## Conflict Resolution Strategies
|
|
441
|
+
|
|
442
|
+
| Strategy | When to Use |
|
|
443
|
+
|----------|-------------|
|
|
444
|
+
| **Newest wins** | When changes are additive/improvements |
|
|
445
|
+
| **Project wins** | When project has specific customizations |
|
|
446
|
+
| **Global wins** | When global has community-validated updates |
|
|
447
|
+
| **Manual merge** | When both versions have unique value |
|
|
448
|
+
| **Create variant** | When approaches differ by context |
|
|
449
|
+
|
|
450
|
+
## Automation
|
|
451
|
+
|
|
452
|
+
Set up automatic sync on session end:
|
|
453
|
+
|
|
454
|
+
```json
|
|
455
|
+
// In hooks/hooks.json
|
|
456
|
+
{
|
|
457
|
+
"event": "SessionEnd",
|
|
458
|
+
"hooks": [{
|
|
459
|
+
"type": "command",
|
|
460
|
+
"command": "/fire-skills-sync --push --auto-resolve newest"
|
|
461
|
+
}]
|
|
462
|
+
}
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
## Related Commands
|
|
466
|
+
|
|
467
|
+
- `/fire-search` - Search skills in current library
|
|
468
|
+
- `/fire-contribute` - Add new skill
|
|
469
|
+
- `/fire-skills-history` - View version history
|
|
470
|
+
- `/fire-skills-diff` - Compare skill versions
|