bmad-module-skill-forge 0.6.0 → 0.7.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.
Files changed (144) hide show
  1. package/README.md +2 -2
  2. package/docs/agents.md +9 -5
  3. package/docs/concepts.md +17 -13
  4. package/docs/examples.md +19 -4
  5. package/docs/getting-started.md +34 -19
  6. package/docs/how-it-works.md +87 -84
  7. package/docs/index.md +1 -1
  8. package/docs/workflows.md +88 -40
  9. package/package.json +1 -1
  10. package/src/agents/forger.agent.yaml +17 -5
  11. package/src/forger/README.md +1 -1
  12. package/src/forger/forge-tier.yaml +2 -1
  13. package/src/forger/preferences.yaml +5 -7
  14. package/src/knowledge/agentskills-spec.md +1 -1
  15. package/src/knowledge/architecture-verification.md +102 -0
  16. package/src/knowledge/ccc-bridge.md +3 -2
  17. package/src/knowledge/confidence-tiers.md +12 -1
  18. package/src/knowledge/doc-fetcher.md +1 -1
  19. package/src/knowledge/manual-section-integrity.md +2 -2
  20. package/src/knowledge/overview.md +11 -7
  21. package/src/knowledge/progressive-capability.md +5 -2
  22. package/src/knowledge/qmd-registry.md +5 -2
  23. package/src/knowledge/skf-knowledge-index.csv +2 -0
  24. package/src/knowledge/skill-lifecycle.md +26 -2
  25. package/src/knowledge/split-body-strategy.md +16 -2
  26. package/src/knowledge/tool-resolution.md +55 -0
  27. package/src/knowledge/zero-hallucination.md +11 -8
  28. package/src/module-help.csv +9 -6
  29. package/src/module.yaml +3 -0
  30. package/src/workflows/README.md +35 -17
  31. package/src/workflows/analyze-source/data/skill-brief-schema.md +18 -5
  32. package/src/workflows/analyze-source/steps-c/step-01-init.md +2 -2
  33. package/src/workflows/analyze-source/steps-c/step-01b-continue.md +1 -1
  34. package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +1 -1
  35. package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +1 -1
  36. package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +3 -3
  37. package/src/workflows/analyze-source/steps-c/step-05-recommend.md +1 -1
  38. package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +2 -2
  39. package/src/workflows/analyze-source/workflow.md +2 -2
  40. package/src/workflows/audit-skill/data/severity-rules.md +1 -1
  41. package/src/workflows/audit-skill/steps-c/step-01-init.md +2 -1
  42. package/src/workflows/audit-skill/steps-c/step-02-re-index.md +8 -1
  43. package/src/workflows/audit-skill/steps-c/step-03-structural-diff.md +2 -2
  44. package/src/workflows/audit-skill/steps-c/step-04-semantic-diff.md +2 -2
  45. package/src/workflows/audit-skill/steps-c/step-05-severity-classify.md +1 -1
  46. package/src/workflows/audit-skill/workflow.md +2 -1
  47. package/src/workflows/brief-skill/data/scope-templates.md +10 -0
  48. package/src/workflows/brief-skill/data/skill-brief-schema.md +25 -23
  49. package/src/workflows/brief-skill/steps-c/step-01-gather-intent.md +1 -1
  50. package/src/workflows/brief-skill/steps-c/step-02-analyze-target.md +1 -1
  51. package/src/workflows/brief-skill/steps-c/step-05-write-brief.md +3 -0
  52. package/src/workflows/create-skill/data/extraction-patterns.md +7 -1
  53. package/src/workflows/create-skill/data/skill-sections.md +12 -11
  54. package/src/workflows/create-skill/data/source-resolution-protocols.md +2 -2
  55. package/src/workflows/create-skill/data/tier-degradation-rules.md +1 -1
  56. package/src/workflows/create-skill/steps-c/step-01-load-brief.md +14 -10
  57. package/src/workflows/create-skill/steps-c/step-02b-ccc-discover.md +4 -0
  58. package/src/workflows/create-skill/steps-c/step-03-extract.md +19 -19
  59. package/src/workflows/create-skill/steps-c/step-03b-fetch-temporal.md +3 -3
  60. package/src/workflows/create-skill/steps-c/step-03c-fetch-docs.md +3 -1
  61. package/src/workflows/create-skill/steps-c/step-04-enrich.md +3 -1
  62. package/src/workflows/create-skill/steps-c/step-05-compile.md +4 -3
  63. package/src/workflows/create-skill/steps-c/step-06-validate.md +2 -2
  64. package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +33 -44
  65. package/src/workflows/create-skill/steps-c/step-08-report.md +25 -11
  66. package/src/workflows/create-skill/workflow.md +2 -2
  67. package/src/workflows/create-stack-skill/data/compose-mode-rules.md +65 -0
  68. package/src/workflows/create-stack-skill/data/manifest-patterns.md +23 -1
  69. package/src/workflows/create-stack-skill/data/stack-skill-template.md +28 -6
  70. package/src/workflows/create-stack-skill/steps-c/step-01-init.md +25 -7
  71. package/src/workflows/create-stack-skill/steps-c/step-02-detect-manifests.md +37 -3
  72. package/src/workflows/create-stack-skill/steps-c/step-03-rank-and-confirm.md +29 -3
  73. package/src/workflows/create-stack-skill/steps-c/step-04-parallel-extract.md +50 -7
  74. package/src/workflows/create-stack-skill/steps-c/step-05-detect-integrations.md +35 -3
  75. package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +5 -1
  76. package/src/workflows/create-stack-skill/steps-c/step-07-generate-output.md +53 -5
  77. package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +3 -3
  78. package/src/workflows/create-stack-skill/steps-c/step-09-report.md +8 -2
  79. package/src/workflows/create-stack-skill/workflow.md +2 -2
  80. package/src/workflows/export-skill/data/managed-section-format.md +8 -1
  81. package/src/workflows/export-skill/data/snippet-format.md +1 -1
  82. package/src/workflows/export-skill/steps-c/step-04-update-context.md +7 -2
  83. package/src/workflows/export-skill/steps-c/step-05-token-report.md +1 -1
  84. package/src/workflows/export-skill/workflow.md +3 -1
  85. package/src/workflows/quick-skill/data/skill-template.md +18 -6
  86. package/src/workflows/quick-skill/steps-c/step-04-compile.md +26 -6
  87. package/src/workflows/quick-skill/steps-c/step-05-validate.md +1 -1
  88. package/src/workflows/quick-skill/steps-c/step-06-write.md +3 -0
  89. package/src/workflows/quick-skill/workflow.md +1 -1
  90. package/src/workflows/refine-architecture/data/refinement-rules.md +102 -0
  91. package/src/workflows/refine-architecture/steps-c/step-01-init.md +188 -0
  92. package/src/workflows/refine-architecture/steps-c/step-02-gap-analysis.md +179 -0
  93. package/src/workflows/refine-architecture/steps-c/step-03-issue-detection.md +182 -0
  94. package/src/workflows/refine-architecture/steps-c/step-04-improvements.md +169 -0
  95. package/src/workflows/refine-architecture/steps-c/step-05-compile.md +200 -0
  96. package/src/workflows/refine-architecture/steps-c/step-06-report.md +147 -0
  97. package/src/workflows/refine-architecture/workflow.md +61 -0
  98. package/src/workflows/setup-forge/steps-c/step-01-detect-and-tier.md +2 -1
  99. package/src/workflows/setup-forge/steps-c/step-01b-ccc-index.md +5 -3
  100. package/src/workflows/setup-forge/steps-c/step-02-write-config.md +15 -16
  101. package/src/workflows/setup-forge/steps-c/step-03-auto-index.md +1 -1
  102. package/src/workflows/setup-forge/steps-c/step-04-report.md +2 -2
  103. package/src/workflows/setup-forge/workflow.md +3 -2
  104. package/src/workflows/test-skill/data/scoring-rules.md +3 -0
  105. package/src/workflows/test-skill/data/source-access-protocol.md +1 -1
  106. package/src/workflows/test-skill/steps-c/step-01-init.md +1 -0
  107. package/src/workflows/test-skill/steps-c/step-02-detect-mode.md +2 -0
  108. package/src/workflows/test-skill/workflow.md +2 -2
  109. package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +3 -3
  110. package/src/workflows/update-skill/steps-c/step-03-re-extract.md +8 -3
  111. package/src/workflows/update-skill/steps-c/step-05-validate.md +8 -12
  112. package/src/workflows/update-skill/steps-c/step-06-write.md +5 -2
  113. package/src/workflows/update-skill/workflow.md +1 -1
  114. package/src/workflows/verify-stack/data/coverage-patterns.md +45 -0
  115. package/src/workflows/verify-stack/data/feasibility-report-template.md +63 -0
  116. package/src/workflows/verify-stack/data/integration-verification-rules.md +73 -0
  117. package/src/workflows/verify-stack/steps-c/step-01-init.md +174 -0
  118. package/src/workflows/verify-stack/steps-c/step-02-coverage.md +181 -0
  119. package/src/workflows/verify-stack/steps-c/step-03-integrations.md +195 -0
  120. package/src/workflows/verify-stack/steps-c/step-04-requirements.md +168 -0
  121. package/src/workflows/verify-stack/steps-c/step-05-synthesize.md +191 -0
  122. package/src/workflows/verify-stack/steps-c/step-06-report.md +197 -0
  123. package/src/workflows/verify-stack/workflow.md +61 -0
  124. package/src/workflows/analyze-source/validation-report.md +0 -657
  125. package/src/workflows/analyze-source/workflow-plan-analyze-source.md +0 -385
  126. package/src/workflows/audit-skill/validation-report.md +0 -545
  127. package/src/workflows/audit-skill/workflow-plan-audit-skill.md +0 -318
  128. package/src/workflows/brief-skill/validation-report.md +0 -630
  129. package/src/workflows/brief-skill/workflow-plan-brief-skill.md +0 -360
  130. package/src/workflows/create-skill/validation-report.md +0 -189
  131. package/src/workflows/create-skill/workflow-plan-create-skill.md +0 -525
  132. package/src/workflows/create-stack-skill/validation-report.md +0 -401
  133. package/src/workflows/create-stack-skill/workflow-plan-create-stack-skill.md +0 -481
  134. package/src/workflows/export-skill/validation-report.md +0 -263
  135. package/src/workflows/export-skill/workflow-plan-export-skill.md +0 -369
  136. package/src/workflows/quick-skill/validation-report.md +0 -543
  137. package/src/workflows/quick-skill/workflow-plan-quick-skill.md +0 -405
  138. package/src/workflows/setup-forge/validation-report.md +0 -504
  139. package/src/workflows/setup-forge/workflow-plan-setup-forge.md +0 -430
  140. package/src/workflows/test-skill/validation-report.md +0 -390
  141. package/src/workflows/test-skill/workflow-plan-test-skill.md +0 -292
  142. package/src/workflows/update-skill/data/tier-degradation-rules.md +0 -46
  143. package/src/workflows/update-skill/validation-report.md +0 -559
  144. package/src/workflows/update-skill/workflow-plan-update-skill.md +0 -441
@@ -1,263 +0,0 @@
1
- ---
2
- validationDate: 2026-02-26
3
- workflowName: export-skill
4
- workflowPath: _bmad-output/bmb-creations/workflows/export-skill
5
- validationStatus: PASS
6
- ---
7
-
8
- # Validation Report: export-skill
9
-
10
- **Validation Started:** 2026-02-26
11
- **Validator:** BMAD Workflow Validation System
12
- **Standards Version:** BMAD Workflow Standards
13
-
14
- ---
15
-
16
- ## File Structure & Size
17
-
18
- **Status: ✅ PASS**
19
-
20
- ### Folder Structure
21
-
22
- ```
23
- export-skill/
24
- ├── workflow.md ✅ Entry point present
25
- ├── data/ ✅ Shared data folder
26
- │ ├── snippet-format.md ✅ ADR-L template
27
- │ └── managed-section-format.md ✅ ADR-J template
28
- ├── steps-c/ ✅ Create steps folder
29
- │ ├── step-01-load-skill.md ✅ Sequential
30
- │ ├── step-02-package.md ✅ Sequential
31
- │ ├── step-03-generate-snippet.md ✅ Sequential
32
- │ ├── step-04-update-context.md ✅ Sequential
33
- │ ├── step-05-token-report.md ✅ Sequential
34
- │ └── step-06-summary.md ✅ Sequential (final)
35
- ├── workflow-plan-export-skill.md ✅ Build plan
36
- └── validation-report.md ✅ This report
37
- ```
38
-
39
- - ✅ workflow.md exists
40
- - ✅ Steps organized in steps-c/ folder
41
- - ✅ Data files organized in data/ folder
42
- - ✅ Sequential numbering (01-06), no gaps
43
- - ✅ Final step exists (step-06-summary.md)
44
- - ✅ No step-01b-continue.md (correct — single-session workflow)
45
-
46
- ### File Size Analysis
47
-
48
- | File | Lines | Limit | Status |
49
- |------|-------|-------|--------|
50
- | step-01-load-skill.md | 185 | 200 | ✅ Good |
51
- | step-02-package.md | 153 | 200 | ✅ Good |
52
- | step-03-generate-snippet.md | 166 | 200 | ✅ Good |
53
- | step-04-update-context.md | 220 | 250 | ⚠️ Approaching limit |
54
- | step-05-token-report.md | 126 | 200 | ✅ Good |
55
- | step-06-summary.md | 167 | 200 | ✅ Good |
56
- | workflow.md | 58 | — | ✅ Good |
57
- | data/snippet-format.md | 32 | — | ✅ Good |
58
- | data/managed-section-format.md | 70 | — | ✅ Good |
59
-
60
- **Note:** step-04-update-context.md at 220 lines is approaching the 250-line max but within limits. This is justified by the three-case CLAUDE.md logic complexity.
61
-
62
- ### Issues Found: 0
63
-
64
- ## Frontmatter Validation
65
-
66
- **Status: ✅ PASS (after remediation)**
67
-
68
- ### Findings
69
-
70
- 3 unused frontmatter variable violations found and remediated:
71
-
72
- | File | Variable | Issue | Fix |
73
- |------|----------|-------|-----|
74
- | workflow.md | `web_bundle: true` | Not referenced in body | Removed |
75
- | workflow.md | `installed_path` | Not referenced in body | Removed |
76
- | step-01-load-skill.md | `snippetFormatData` | Not used in step-01 (belongs in step-03 only) | Removed |
77
-
78
- All remaining frontmatter variables verified as used:
79
- - `name`, `description` — present in all files ✅
80
- - `nextStepFile` — correctly referenced in steps 01-05, absent from step-06 (final) ✅
81
- - `snippetFormatData` — step-03 only ✅
82
- - `managedSectionData` — step-04 only ✅
83
-
84
- ### Issues Found: 3 (all remediated)
85
-
86
- ---
87
-
88
- ## Critical Path Violations
89
-
90
- **Status: ✅ PASS**
91
-
92
- - All step file references resolve to existing files
93
- - `nextStepFile` chain: step-01 → 02 → 03 → 04 → 05 → 06 (verified)
94
- - Data file references (`snippetFormatData`, `managedSectionData`) resolve correctly
95
- - No circular references or broken paths detected
96
-
97
- ### Issues Found: 0
98
-
99
- ---
100
-
101
- ## Menu Handling Validation
102
-
103
- **Status: ✅ PASS (with notes)**
104
-
105
- | Step | Pattern | Expected | Actual | Status |
106
- |------|---------|----------|--------|--------|
107
- | step-01 | P2: C only | Confirmation gate | C-only menu with halt | ✅ |
108
- | step-02 | P3: Auto-proceed | No user choice | Auto-proceed after validation | ✅ |
109
- | step-03 | P3: Auto-proceed | No user choice | Auto-proceed after snippet gen | ✅ |
110
- | step-04 | P2: C only | Confirmation gate | C-only with dry-run auto-proceed | ✅ |
111
- | step-05 | P3: Auto-proceed | No user choice | Auto-proceed after report | ✅ |
112
- | step-06 | Final | No next step | No menu, workflow ends | ✅ |
113
-
114
- **Notes:**
115
- - step-04 dry-run path auto-proceeds without a formal Menu Handling Logic block — acceptable design choice for conditional behavior
116
- - step-02 auto-proceed message says "snippet generation" but step-03 may be skipped (passive_context off) — technically accurate since step-03 is loaded next regardless and handles the skip internally
117
-
118
- ### Issues Found: 0
119
-
120
- ---
121
-
122
- ## Step Type Validation
123
-
124
- **Status: ✅ PASS (with notes)**
125
-
126
- | Step | Declared Type | Actual Behavior | Match |
127
- |------|--------------|-----------------|-------|
128
- | step-01 | Init (Input Discovery) | Discovers skill, validates, confirms | ✅ |
129
- | step-02 | Middle (Simple) | Validates package, auto-proceeds | ✅ |
130
- | step-03 | Middle (Simple) | Generates snippet, auto-proceeds | ✅ |
131
- | step-04 | Middle (Standard) | Three-case logic, confirmation gate | ✅ |
132
- | step-05 | Middle (Simple) | Token report, auto-proceeds | ✅ |
133
- | step-06 | Final | Summary, no next step | ✅ |
134
-
135
- **Notes:**
136
- - step-04 uses P2 C-only menu rather than P1 standard menu — matches design spec's "confirmation gate" pattern, appropriate for shared file modification
137
-
138
- ### Issues Found: 0
139
-
140
- ---
141
-
142
- ## Instruction Style Check
143
-
144
- **Status: ✅ PASS (after remediation)**
145
-
146
- **Overall Style:** Prescriptive (consistent across all steps)
147
-
148
- | File | Clarity Score | Notes |
149
- |------|--------------|-------|
150
- | workflow.md | 9/10 | Clear initialization, micro-file principles well articulated |
151
- | step-01-load-skill.md | 9/10 | Six numbered sections, clear conditionals, table summaries |
152
- | step-02-package.md | 9/10 | Package structure diagram, three readiness levels |
153
- | step-03-generate-snippet.md | 9/10 | Passive context check, snippet templates, edge cases handled |
154
- | step-04-update-context.md | 9/10 | Three-case logic, diff preview, post-write verification |
155
- | step-05-token-report.md | 8/10 | Consistent heuristic, clear budget impact breakdown |
156
- | step-06-summary.md | 9/10 | Conditional distribution instructions, clear completion signal |
157
-
158
- ### Findings
159
-
160
- 1. **workflow.md typo** — "adhere too 1 file" → fixed to "adhere to 1 file" ✅ Remediated
161
- 2. **step-02 auto-proceed message** — says "snippet generation" without noting potential skip. Technically accurate (step-03 handles skip internally). Informational only.
162
-
163
- ### Issues Found: 1 (remediated)
164
-
165
- ---
166
-
167
- ## Collaborative Experience Check
168
-
169
- **Status: ✅ PASS**
170
-
171
- - **Role Clarity:** Clear — Ferris Delivery mode consistently defined across all steps
172
- - **User Interaction:** Good — 2 confirmation gates (step-01, step-04) at appropriate high-impact decision points
173
- - **Cross-Step Consistency:** Consistent — all `nextStepFile` references correct, data flow accurate, CONTEXT BOUNDARIES sections properly describe available data
174
- - **Dry-Run Handling:** Consistent across all relevant steps (03, 04 write-capable; 01, 02, 05, 06 read-only)
175
- - **Passive Context Handling:** Consistent — detected in step-01, gated in steps 03-04, reflected in step-05/06 output
176
-
177
- ### Issues Found: 0
178
-
179
- ---
180
-
181
- ## Subprocess Optimization Opportunities
182
-
183
- **Status: ✅ N/A**
184
-
185
- No subprocesses needed — lightweight linear pipeline with small files (~50-80 tokens per snippet). All operations are sequential with data dependencies between steps.
186
-
187
- ### Issues Found: 0
188
-
189
- ---
190
-
191
- ## Cohesive Review
192
-
193
- **Status: ✅ PASS (after remediation)**
194
-
195
- ### End-to-End Flow: Coherent
196
-
197
- Complete logical progression: Load → Validate Package → Generate Snippet → Update Context → Report Tokens → Summary. No gaps between steps. Auto-proceed (02, 03, 05) and confirmation gates (01, 04) appropriately placed.
198
-
199
- ### Data Consistency: Consistent
200
-
201
- - Variable names (`{skills_output_folder}`, `{skill-name}`, `{platform}`, `{target-file}`, `{forge_data_folder}`) used consistently across all steps
202
- - Data file content matches step usage: `snippet-format.md` ↔ step-03, `managed-section-format.md` ↔ step-04
203
- - ADR references: ADR-J (step-04), ADR-K (workflow.md), ADR-L (step-03) — all consistent
204
-
205
- ### Edge Case Handling: Complete (after fixes)
206
-
207
- | Edge Case | Handling | Status |
208
- |-----------|----------|--------|
209
- | `--dry-run` | Writes → previews across steps 03, 04; reminder in step-06 | ✅ |
210
- | `passive_context: false` | Steps 03-04 skip; step-05 notes N/A; step-06 shows "skipped" | ✅ |
211
- | Missing files / invalid JSON | Hard halt in step-01 | ✅ |
212
- | Empty exports array | Graceful warn in step-01; omit exports line in step-03 | ✅ |
213
- | Zero skills during index rebuild | Generate header-only managed section (added) | ✅ Remediated |
214
- | Metadata validation gap (step-01 vs step-02) | Step-01 now validates all 7 required fields | ✅ Remediated |
215
-
216
- ### Quality Score: 8.5/10
217
-
218
- ### Top Strengths:
219
- 1. Comprehensive passive_context and dry-run handling with consistent patterns across all steps
220
- 2. Excellent data file design — self-contained templates for snippet format and managed section
221
- 3. Strong safety model for shared file writes — diff preview, confirmation gate, post-write verification
222
-
223
- ### Issues Found: 2 (both remediated)
224
-
225
- ---
226
-
227
- ## Plan Quality Validation
228
-
229
- **Status: ✅ PASS**
230
-
231
- The workflow plan (`workflow-plan-export-skill.md`) accurately reflects the built workflow:
232
- - All 6 steps match plan design
233
- - Step types, menu patterns, and action plans align with implementation
234
- - Data flow matches step sequence
235
- - Error handling table covers all scenarios
236
- - File structure matches actual output
237
-
238
- ### Issues Found: 0
239
-
240
- ---
241
-
242
- ## Summary
243
-
244
- **Overall Status: ✅ PASS**
245
-
246
- | Check | Status | Issues | Remediated |
247
- |-------|--------|--------|------------|
248
- | File Structure & Size | ✅ PASS | 0 | — |
249
- | Frontmatter Validation | ✅ PASS | 3 | 3 ✅ |
250
- | Critical Path Violations | ✅ PASS | 0 | — |
251
- | Menu Handling | ✅ PASS | 0 | — |
252
- | Step Type Validation | ✅ PASS | 0 | — |
253
- | Instruction Style | ✅ PASS | 1 | 1 ✅ |
254
- | Collaborative Experience | ✅ PASS | 0 | — |
255
- | Subprocess Optimization | N/A | 0 | — |
256
- | Cohesive Review | ✅ PASS | 2 | 2 ✅ |
257
- | Plan Quality | ✅ PASS | 0 | — |
258
-
259
- **Total Issues Found:** 6
260
- **Total Remediated:** 6
261
- **Outstanding Issues:** 0
262
-
263
- **Validation Complete.** The export-skill workflow passes all validation checks. All discovered issues were remediated during the validation phase.
@@ -1,369 +0,0 @@
1
- ---
2
- conversionFrom: 'src/workflows/export-skill/export-skill.spec.md'
3
- originalFormat: 'Workflow Specification (pre-implementation blueprint)'
4
- stepsCompleted: ['step-00-conversion', 'step-02-classification', 'step-03-requirements', 'step-04-tools', 'step-05-plan-review', 'step-06-design', 'step-07-foundation', 'step-08-build-step-01', 'step-09-build-steps-02-06', 'step-10-confirmation', 'step-11-completion']
5
- created: 2026-02-26
6
- completionDate: 2026-02-26
7
- status: COMPLETE
8
- approvedDate: 2026-02-26
9
- confirmationDate: 2026-02-26
10
- confirmationType: conversion
11
- coverageStatus: complete
12
- validationStatus: PASS
13
- ---
14
-
15
- # Workflow Creation Plan
16
-
17
- ## Conversion Source
18
-
19
- **Original Path:** src/workflows/export-skill/export-skill.spec.md
20
- **Original Format:** Workflow Specification — pre-implementation blueprint (no step files exist yet)
21
- **Detected Structure:** 6-step create-only utility workflow defined as a spec with planned steps, inputs, outputs, and implementation notes. Enriched with module brief ADR decisions (J, K, L) and dual-output delivery strategy.
22
-
23
- ---
24
-
25
- ## Original Workflow Analysis
26
-
27
- ### Goal (from source)
28
-
29
- Package a skill for distribution + platform-aware context injection. Final delivery workflow that packages a skill as an agentskills.io-compliant package ready for `npx skills publish`. Generates/updates context-snippet.md. Updates the managed `<!-- SKF:BEGIN/END -->` section in CLAUDE.md/AGENTS.md with compressed skill index. Platform-aware formatting via `--platform` flag.
30
-
31
- ### Original Steps (Complete List)
32
-
33
- **Step 1:** load-skill - Load skill and validate spec compliance
34
- **Step 2:** package - Prepare agentskills.io-compliant package structure
35
- **Step 3:** generate-snippet - Create/update context-snippet.md
36
- **Step 4:** update-context - Update managed section in CLAUDE.md/AGENTS.md
37
- **Step 5:** token-report - Calculate and report token counts
38
- **Step 6:** summary - Display export summary with distribution instructions
39
-
40
- ### Output / Deliverable
41
-
42
- - Updated `{skills_output_folder}/{name}/context-snippet.md`
43
- - Updated CLAUDE.md/AGENTS.md managed section (`<!-- SKF:BEGIN/END -->`)
44
- - agentskills.io-compliant package (ready for `npx skills publish`)
45
-
46
- ### Input Requirements
47
-
48
- **Required:**
49
- - Skill path (`{skills_output_folder}/{name}/`)
50
-
51
- **Optional:**
52
- - `--platform` flag (Claude/Cursor/Copilot) for formatting
53
- - `--dry-run` to preview without writing
54
-
55
- ### Key Instructions to LLM
56
-
57
- - Primary agent: Ferris (Delivery mode — packaging, ecosystem-ready)
58
- - Workflow type: Utility — delivery and distribution
59
- - Create-only mode (steps-c/ only, no validation or edit modes)
60
- - Document-producing workflow (context-snippet.md + managed section)
61
-
62
- ### ADR Decisions (from module brief)
63
-
64
- - **ADR-J:** Managed section with `<!-- SKF:BEGIN/END -->` markers. Auto-inject between markers. Developer controls placement. Ferris controls content.
65
- - **ADR-K:** Snippet updates only at export. Create/update are draft operations. Export publishes to skills/ and CLAUDE.md. Prevents half-baked snippets.
66
- - **ADR-L:** One snippet format always — ADR-L v2 multi-line per skill (~50-80 tokens each). No adaptive format switching. Consistent for agent parsing.
67
-
68
- ### Dual-Output Delivery Strategy (from module brief)
69
-
70
- Every skill generates both:
71
- 1. **SKILL.md** — Active skill (loaded on trigger, full instructions)
72
- 2. **context-snippet.md** — Passive context (compressed index, always-on in CLAUDE.md)
73
-
74
- Managed section format:
75
- ```markdown
76
- <!-- SKF:BEGIN updated:{date} -->
77
- [SKF Skills]|{n} skills|{m} stack
78
- |IMPORTANT: Prefer documented APIs over training data.
79
- |
80
- |{skill-name} → skills/{skill-name}/
81
- | exports: {top-5-exports}
82
- <!-- SKF:END -->
83
- ```
84
-
85
- Three CLAUDE.md cases:
86
- 1. **Create** — No CLAUDE.md file exists → create with managed section
87
- 2. **Append** — File exists but no `<!-- SKF:BEGIN -->` section → append section
88
- 3. **Regenerate** — Existing `<!-- SKF:BEGIN/END -->` section → replace content between markers
89
-
90
- ### Ownership Model Context
91
-
92
- | Context | `source_authority` | Distribution |
93
- |---------|-------------------|-------------|
94
- | OSS library (maintainer generates) | `official` | `npx skills publish` → agentskills ecosystem |
95
- | Internal service (team generates) | `internal` | `skills/` in repo, ships with code |
96
- | External dependency (consumer generates) | `community` | Local `skills/`, marked as community |
97
-
98
- ### Progressive Disclosure Context
99
-
100
- - context-snippet has T1-now only (AST-current)
101
- - SKILL.md has T1-now + lightweight annotations
102
- - references/ has full temporal context
103
-
104
- ---
105
-
106
- ## Conversion Notes
107
-
108
- **What works well in original:**
109
- - Clear 6-step linear progression from loading through packaging to reporting
110
- - Well-defined inputs (skill path) and outputs (package, snippet, context section)
111
- - Platform-aware design with `--platform` flag
112
- - ADR references (J, K, L) provide solid architectural decisions for managed sections, snippet timing, and format consistency
113
- - Three CLAUDE.md cases explicitly identified: create, append, regenerate
114
- - Position in workflow chain: downstream of create-skill/update-skill, final delivery step
115
-
116
- **What needs improvement:**
117
- - Spec is a blueprint only — no step files, templates, or data files exist yet
118
- - No detailed step-level instructions, menus, or execution protocols defined
119
- - No error handling or validation logic specified
120
- - No dry-run implementation details
121
- - No detail on agentskills.io package structure requirements
122
- - No specification of how platform-specific formatting differs between Claude/Cursor/Copilot
123
-
124
- **Compliance gaps identified:**
125
- - No step files exist (need full creation from spec)
126
- - No frontmatter with step metadata
127
- - No menu handling or continuation logic
128
- - No data files or templates defined (snippet format template, package structure template needed)
129
- - No subprocess/agent delegation patterns specified
130
-
131
- ---
132
-
133
- ## Classification Decisions
134
-
135
- **Workflow Name:** export-skill
136
- **Target Path:** {project-root}/_bmad/skf/workflows/export-skill/
137
-
138
- **4 Key Decisions:**
139
- 1. **Document Output:** false (action-based — produces files as side effects of packaging actions, not progressive document building)
140
- 2. **Module Affiliation:** SKF (Skill Forge module — access to skills_output_folder, forge tier, sidecar state)
141
- 3. **Session Type:** single-session (fast utility workflow — load, package, write, report)
142
- 4. **Lifecycle Support:** create-only (steps-c/ only — deterministic utility, re-export to fix)
143
-
144
- **Structure Implications:**
145
- - `steps-c/` directory only (no steps-e/ or steps-v/)
146
- - Standard `step-01-init.md` (no continuation logic, no step-01b-continue.md)
147
- - No `stepsCompleted` tracking in output frontmatter
148
- - Action-based step pattern — steps perform file operations rather than building a document
149
- - Data folder needed for snippet format template and package structure reference
150
- - Ferris Delivery mode activated (only workflow using this mode)
151
-
152
- ---
153
-
154
- ## Requirements
155
-
156
- **Flow Structure:**
157
- - Pattern: Linear (Step 1 → Step 2 → Step 3 → Step 4 → Step 5 → Step 6)
158
- - Phases: Load & Validate → Package & Generate → Publish → Report
159
- - Estimated steps: 6
160
- - No branching — three CLAUDE.md cases (create/append/regenerate) handled as conditional logic within step-04
161
-
162
- **User Interaction:**
163
- - Style: Mostly autonomous with targeted checkpoints
164
- - Decision points: After step-01 (confirm correct skill loaded), after step-04 (confirm CLAUDE.md changes)
165
- - Checkpoint frequency: 2 checkpoints in 6 steps
166
- - `--dry-run` flag converts entire workflow to preview mode (no writes)
167
-
168
- **Inputs Required:**
169
- - Required: Skill path (`{skills_output_folder}/{name}/`) containing SKILL.md, metadata.json
170
- - Optional: `--platform` flag (Claude/Cursor/Copilot), `--dry-run` flag
171
- - Prerequisites: Skill must exist (created by create-skill or update-skill). test-skill recommended but advisory.
172
- - Implicit: forge-config.yaml for `passive_context` opt-out check, existing CLAUDE.md/AGENTS.md content
173
-
174
- **Output Specifications:**
175
- - Type: Action-based (file writes + console output)
176
- - Files written:
177
- 1. `{skills_output_folder}/{name}/context-snippet.md` — ADR-L v2 format (~80-120 tokens/skill)
178
- 2. CLAUDE.md or AGENTS.md — managed `<!-- SKF:BEGIN/END -->` section per ADR-J (3 cases: create/append/regenerate)
179
- 3. agentskills.io package structure — ready for `npx skills publish`
180
- - Console output: Token count report + export summary with distribution instructions
181
- - Frequency: Single skill per run (batch mode deferred)
182
-
183
- **Success Criteria:**
184
- - Skill loaded and validated against agentskills.io spec
185
- - context-snippet.md generated with correct ADR-L v2 format
186
- - CLAUDE.md managed section correctly handles all three cases without corrupting existing content
187
- - Token counts calculated and reported for all generated artifacts
188
- - Package structure ready for `npx skills publish`
189
- - `--dry-run` shows preview with zero file writes
190
- - Zero data loss — existing CLAUDE.md content outside markers preserved
191
-
192
- **Instruction Style:**
193
- - Overall: Prescriptive (deterministic utility, exact file operations)
194
- - Notes: Auto-proceed between most steps (P3 pattern). Confirmation gates only at step-01 (skill loaded) and step-04 (CLAUDE.md changes). Similar to create-skill's compile/generate-artifacts prescriptive pattern.
195
-
196
- ---
197
-
198
- ## Tools Configuration
199
-
200
- **Core BMAD Tools:**
201
- - **Party Mode:** Excluded — deterministic utility workflow, no creative exploration needed
202
- - **Advanced Elicitation:** Excluded — no complex decision-making requiring deep probing
203
- - **Brainstorming:** Excluded — no ideation phases
204
-
205
- **LLM Features:**
206
- - **File I/O:** Included — Core requirement. Reads skill artifacts, writes context-snippet.md, modifies CLAUDE.md/AGENTS.md, creates package files
207
- - **Web-Browsing:** Excluded — all data is local
208
- - **Sub-Agents:** Excluded — linear pipeline, no parallelization
209
- - **Sub-Processes:** Excluded — sequential dependency chain
210
-
211
- **Memory:**
212
- - Type: Single-session (no sidecar, no continuation tracking)
213
- - State: In-context only — skill metadata and generated content passed between steps
214
-
215
- **External Integrations:**
216
- - None required. All operations are local file system.
217
-
218
- **Installation Requirements:**
219
- - None. All tools are built-in LLM capabilities.
220
-
221
- ## Workflow Structure Preview
222
-
223
- **Phase 1: Load & Validate (step-01-load-skill)**
224
- - Load skill from `{skills_output_folder}/{name}/`
225
- - Validate SKILL.md, metadata.json, references/ exist
226
- - Check agentskills.io spec compliance
227
- - Read metadata for skill type, source_authority, exports
228
- - **Checkpoint:** Confirm correct skill loaded, show metadata summary
229
-
230
- **Phase 2: Package (step-02-package)**
231
- - Build agentskills.io-compliant package structure
232
- - Validate package completeness
233
- - Auto-proceed
234
-
235
- **Phase 3: Generate Snippet (step-03-generate-snippet)**
236
- - Generate context-snippet.md in ADR-L v2 format
237
- - T1-now content only — top-5 exports, pointer to skill path
238
- - ~50-80 tokens per skill target
239
- - Auto-proceed
240
-
241
- **Phase 4: Update Context (step-04-update-context)**
242
- - Check `passive_context` opt-out in forge-config.yaml
243
- - Detect platform (Claude → CLAUDE.md, Cursor → .cursorrules, Copilot → AGENTS.md)
244
- - Execute three-case logic: create file / append section / regenerate section
245
- - Parse existing `<!-- SKF:BEGIN/END -->` markers, preserve all content outside
246
- - **Checkpoint:** Show diff of changes before writing
247
-
248
- **Phase 5: Token Report (step-05-token-report)**
249
- - Calculate token counts for context-snippet.md, managed section, SKILL.md, full package
250
- - Auto-proceed
251
-
252
- **Phase 6: Summary (step-06-summary)**
253
- - Display export summary: files written, token counts, distribution instructions
254
- - Show `npx skills publish` command if source_authority is `official`
255
- - Show internal distribution path if `internal`
256
-
257
- ---
258
-
259
- ## Workflow Design
260
-
261
- ### Step Sequence
262
-
263
- | Step | Name | Type | Menu Pattern | Goal |
264
- |------|------|------|-------------|------|
265
- | 01 | load-skill | Init (Input Discovery) | P2: C only | Load skill artifacts, validate spec compliance, confirm with user |
266
- | 02 | package | Middle (Simple) | P3: Auto-proceed | Build agentskills.io package structure |
267
- | 03 | generate-snippet | Middle (Simple) | P3: Auto-proceed | Generate context-snippet.md in ADR-L v2 format |
268
- | 04 | update-context | Middle (Standard) | P2: C only | Update managed section in CLAUDE.md/AGENTS.md (3-case logic) |
269
- | 05 | token-report | Middle (Simple) | P3: Auto-proceed | Calculate and report token counts |
270
- | 06 | summary | Final | No next step | Display export summary with distribution instructions |
271
-
272
- ### Step Action Plans
273
-
274
- **Step 01 — load-skill (Init with Input Discovery):**
275
- - Discover skill at `{skills_output_folder}/{name}/`
276
- - Validate required files: SKILL.md, metadata.json
277
- - Validate optional: references/ directory
278
- - Read metadata.json for: skill_type, source_authority, exports list, generation date
279
- - Check forge-config.yaml for `passive_context` opt-out
280
- - Parse `--platform` flag (default: Claude → CLAUDE.md)
281
- - Parse `--dry-run` flag
282
- - Present skill summary to user, confirm correct skill
283
- - Menu: [C] Continue
284
-
285
- **Step 02 — package (Middle Simple, auto-proceed):**
286
- - Assemble agentskills.io package structure from skill artifacts
287
- - Validate package contains: SKILL.md, metadata.json, references/
288
- - Generate package manifest if needed
289
- - Verify metadata.json has required agentskills.io fields
290
- - Auto-proceed to step-03
291
-
292
- **Step 03 — generate-snippet (Middle Simple, auto-proceed):**
293
- - Load data/snippet-format.md template (ADR-L)
294
- - Generate context-snippet.md from metadata: skill name, path, top-5 exports
295
- - ADR-L v2 format, ~50-80 tokens target, T1-now content only
296
- - Write to `{skills_output_folder}/{name}/context-snippet.md` (or preview if dry-run)
297
- - Auto-proceed to step-04
298
-
299
- **Step 04 — update-context (Middle Standard, confirmation gate):**
300
- - Load data/managed-section-format.md template (ADR-J)
301
- - Determine target file based on platform flag (Claude→CLAUDE.md, Cursor→.cursorrules, Copilot→AGENTS.md)
302
- - Execute three-case detection: Create / Append / Regenerate
303
- - For regenerate: scan ALL skills in `{skills_output_folder}/*/context-snippet.md` to rebuild complete index
304
- - Show diff preview of changes
305
- - Menu: [C] Continue to write (or skip if dry-run)
306
-
307
- **Step 05 — token-report (Middle Simple, auto-proceed):**
308
- - Calculate token counts: context-snippet.md, managed section, SKILL.md, full package
309
- - Display token report table
310
- - Auto-proceed to step-06
311
-
312
- **Step 06 — summary (Final):**
313
- - Display export summary: files written/previewed, token counts
314
- - Distribution instructions based on source_authority (official/internal/community)
315
- - If dry-run: remind no files written, show command for real run
316
- - Recommend next: audit-skill, update-skill
317
- - No next step file
318
-
319
- ### Data Flow
320
-
321
- ```
322
- step-01 → skill_metadata, platform, dry_run, passive_context_enabled
323
- step-02 → package_structure (validated)
324
- step-03 → context-snippet.md written
325
- step-04 → CLAUDE.md/AGENTS.md updated
326
- step-05 → token_counts
327
- step-06 → console summary (terminal)
328
- ```
329
-
330
- ### File Structure
331
-
332
- ```
333
- export-skill/
334
- ├── workflow.md
335
- ├── data/
336
- │ ├── snippet-format.md
337
- │ └── managed-section-format.md
338
- └── steps-c/
339
- ├── step-01-load-skill.md
340
- ├── step-02-package.md
341
- ├── step-03-generate-snippet.md
342
- ├── step-04-update-context.md
343
- ├── step-05-token-report.md
344
- └── step-06-summary.md
345
- ```
346
-
347
- ### Error Handling
348
-
349
- | Scenario | Response |
350
- |----------|----------|
351
- | Skill path doesn't exist | Hard halt — "Run create-skill first" |
352
- | SKILL.md or metadata.json missing | Hard halt — "Incomplete skill" |
353
- | passive_context: false | Skip steps 03-04, package-only export |
354
- | CLAUDE.md write failure | Hard halt, no partial writes |
355
- | --dry-run mode | All writes become preview-only |
356
- | No exports in metadata | Graceful — snippet shows name + path only |
357
-
358
- ### Subprocess Optimization
359
-
360
- None needed — lightweight linear pipeline, small files (~50-80 tokens per snippet).
361
-
362
- ### Workflow Chaining
363
-
364
- - **Prerequisites:** create-skill or update-skill (required), test-skill (advisory)
365
- - **Downstream:** None required — terminal workflow. Optional: audit-skill, update-skill
366
-
367
- ### Role and Persona
368
-
369
- Ferris Delivery mode — precise, efficient, ecosystem-ready packaging. Brief forge metaphor at completion.