bmad-module-skill-forge 0.6.0 → 0.7.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 (136) 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 +85 -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 +1 -1
  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 +10 -7
  21. package/src/knowledge/progressive-capability.md +3 -2
  22. package/src/knowledge/qmd-registry.md +4 -1
  23. package/src/knowledge/skf-knowledge-index.csv +1 -0
  24. package/src/knowledge/skill-lifecycle.md +26 -2
  25. package/src/knowledge/split-body-strategy.md +16 -2
  26. package/src/knowledge/zero-hallucination.md +11 -8
  27. package/src/module-help.csv +9 -6
  28. package/src/module.yaml +3 -0
  29. package/src/workflows/README.md +35 -17
  30. package/src/workflows/analyze-source/data/skill-brief-schema.md +18 -5
  31. package/src/workflows/analyze-source/steps-c/step-01-init.md +2 -2
  32. package/src/workflows/analyze-source/steps-c/step-01b-continue.md +1 -1
  33. package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +1 -1
  34. package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +1 -1
  35. package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +1 -1
  36. package/src/workflows/analyze-source/steps-c/step-05-recommend.md +1 -1
  37. package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +2 -2
  38. package/src/workflows/analyze-source/workflow.md +2 -2
  39. package/src/workflows/audit-skill/data/severity-rules.md +1 -1
  40. package/src/workflows/audit-skill/steps-c/step-01-init.md +1 -0
  41. package/src/workflows/audit-skill/steps-c/step-02-re-index.md +5 -0
  42. package/src/workflows/audit-skill/steps-c/step-04-semantic-diff.md +1 -1
  43. package/src/workflows/audit-skill/workflow.md +2 -1
  44. package/src/workflows/brief-skill/data/scope-templates.md +10 -0
  45. package/src/workflows/brief-skill/data/skill-brief-schema.md +25 -23
  46. package/src/workflows/brief-skill/steps-c/step-01-gather-intent.md +1 -1
  47. package/src/workflows/brief-skill/steps-c/step-05-write-brief.md +3 -0
  48. package/src/workflows/create-skill/data/skill-sections.md +12 -11
  49. package/src/workflows/create-skill/data/source-resolution-protocols.md +1 -1
  50. package/src/workflows/create-skill/steps-c/step-01-load-brief.md +13 -9
  51. package/src/workflows/create-skill/steps-c/step-03-extract.md +15 -19
  52. package/src/workflows/create-skill/steps-c/step-03b-fetch-temporal.md +3 -3
  53. package/src/workflows/create-skill/steps-c/step-03c-fetch-docs.md +3 -1
  54. package/src/workflows/create-skill/steps-c/step-04-enrich.md +1 -1
  55. package/src/workflows/create-skill/steps-c/step-05-compile.md +4 -3
  56. package/src/workflows/create-skill/steps-c/step-06-validate.md +2 -2
  57. package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +33 -44
  58. package/src/workflows/create-skill/steps-c/step-08-report.md +25 -11
  59. package/src/workflows/create-skill/workflow.md +2 -2
  60. package/src/workflows/create-stack-skill/data/compose-mode-rules.md +65 -0
  61. package/src/workflows/create-stack-skill/data/stack-skill-template.md +28 -6
  62. package/src/workflows/create-stack-skill/steps-c/step-01-init.md +23 -7
  63. package/src/workflows/create-stack-skill/steps-c/step-02-detect-manifests.md +35 -2
  64. package/src/workflows/create-stack-skill/steps-c/step-03-rank-and-confirm.md +26 -2
  65. package/src/workflows/create-stack-skill/steps-c/step-04-parallel-extract.md +24 -0
  66. package/src/workflows/create-stack-skill/steps-c/step-05-detect-integrations.md +30 -2
  67. package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +5 -1
  68. package/src/workflows/create-stack-skill/steps-c/step-07-generate-output.md +53 -5
  69. package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +3 -3
  70. package/src/workflows/create-stack-skill/steps-c/step-09-report.md +8 -2
  71. package/src/workflows/create-stack-skill/workflow.md +2 -2
  72. package/src/workflows/export-skill/data/managed-section-format.md +8 -1
  73. package/src/workflows/export-skill/data/snippet-format.md +1 -1
  74. package/src/workflows/export-skill/steps-c/step-04-update-context.md +7 -2
  75. package/src/workflows/export-skill/steps-c/step-05-token-report.md +1 -1
  76. package/src/workflows/export-skill/workflow.md +3 -1
  77. package/src/workflows/quick-skill/data/skill-template.md +18 -6
  78. package/src/workflows/quick-skill/steps-c/step-04-compile.md +26 -6
  79. package/src/workflows/quick-skill/steps-c/step-05-validate.md +1 -1
  80. package/src/workflows/quick-skill/steps-c/step-06-write.md +3 -0
  81. package/src/workflows/quick-skill/workflow.md +1 -1
  82. package/src/workflows/refine-architecture/data/refinement-rules.md +102 -0
  83. package/src/workflows/refine-architecture/steps-c/step-01-init.md +188 -0
  84. package/src/workflows/refine-architecture/steps-c/step-02-gap-analysis.md +179 -0
  85. package/src/workflows/refine-architecture/steps-c/step-03-issue-detection.md +182 -0
  86. package/src/workflows/refine-architecture/steps-c/step-04-improvements.md +169 -0
  87. package/src/workflows/refine-architecture/steps-c/step-05-compile.md +200 -0
  88. package/src/workflows/refine-architecture/steps-c/step-06-report.md +147 -0
  89. package/src/workflows/refine-architecture/workflow.md +61 -0
  90. package/src/workflows/setup-forge/steps-c/step-01-detect-and-tier.md +2 -1
  91. package/src/workflows/setup-forge/steps-c/step-01b-ccc-index.md +1 -1
  92. package/src/workflows/setup-forge/steps-c/step-02-write-config.md +15 -16
  93. package/src/workflows/setup-forge/steps-c/step-03-auto-index.md +1 -1
  94. package/src/workflows/setup-forge/steps-c/step-04-report.md +2 -2
  95. package/src/workflows/setup-forge/workflow.md +3 -2
  96. package/src/workflows/test-skill/data/scoring-rules.md +3 -0
  97. package/src/workflows/test-skill/data/source-access-protocol.md +1 -1
  98. package/src/workflows/test-skill/steps-c/step-01-init.md +1 -0
  99. package/src/workflows/test-skill/steps-c/step-02-detect-mode.md +2 -0
  100. package/src/workflows/test-skill/workflow.md +2 -2
  101. package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +2 -2
  102. package/src/workflows/update-skill/steps-c/step-03-re-extract.md +5 -2
  103. package/src/workflows/update-skill/steps-c/step-05-validate.md +7 -11
  104. package/src/workflows/update-skill/steps-c/step-06-write.md +5 -2
  105. package/src/workflows/update-skill/workflow.md +1 -1
  106. package/src/workflows/verify-stack/data/coverage-patterns.md +45 -0
  107. package/src/workflows/verify-stack/data/feasibility-report-template.md +63 -0
  108. package/src/workflows/verify-stack/data/integration-verification-rules.md +73 -0
  109. package/src/workflows/verify-stack/steps-c/step-01-init.md +174 -0
  110. package/src/workflows/verify-stack/steps-c/step-02-coverage.md +181 -0
  111. package/src/workflows/verify-stack/steps-c/step-03-integrations.md +195 -0
  112. package/src/workflows/verify-stack/steps-c/step-04-requirements.md +168 -0
  113. package/src/workflows/verify-stack/steps-c/step-05-synthesize.md +191 -0
  114. package/src/workflows/verify-stack/steps-c/step-06-report.md +197 -0
  115. package/src/workflows/verify-stack/workflow.md +61 -0
  116. package/src/workflows/analyze-source/validation-report.md +0 -657
  117. package/src/workflows/analyze-source/workflow-plan-analyze-source.md +0 -385
  118. package/src/workflows/audit-skill/validation-report.md +0 -545
  119. package/src/workflows/audit-skill/workflow-plan-audit-skill.md +0 -318
  120. package/src/workflows/brief-skill/validation-report.md +0 -630
  121. package/src/workflows/brief-skill/workflow-plan-brief-skill.md +0 -360
  122. package/src/workflows/create-skill/validation-report.md +0 -189
  123. package/src/workflows/create-skill/workflow-plan-create-skill.md +0 -525
  124. package/src/workflows/create-stack-skill/validation-report.md +0 -401
  125. package/src/workflows/create-stack-skill/workflow-plan-create-stack-skill.md +0 -481
  126. package/src/workflows/export-skill/validation-report.md +0 -263
  127. package/src/workflows/export-skill/workflow-plan-export-skill.md +0 -369
  128. package/src/workflows/quick-skill/validation-report.md +0 -543
  129. package/src/workflows/quick-skill/workflow-plan-quick-skill.md +0 -405
  130. package/src/workflows/setup-forge/validation-report.md +0 -504
  131. package/src/workflows/setup-forge/workflow-plan-setup-forge.md +0 -430
  132. package/src/workflows/test-skill/validation-report.md +0 -390
  133. package/src/workflows/test-skill/workflow-plan-test-skill.md +0 -292
  134. package/src/workflows/update-skill/data/tier-degradation-rules.md +0 -46
  135. package/src/workflows/update-skill/validation-report.md +0 -559
  136. package/src/workflows/update-skill/workflow-plan-update-skill.md +0 -441
package/docs/workflows.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  title: Workflows
3
- description: All 10 SKF workflows with commands, steps, and connection diagram
3
+ description: All 12 SKF workflows with commands, steps, and connection diagram
4
4
  ---
5
5
 
6
6
  # Workflows Reference
7
7
 
8
- SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.md), the AI agent that runs everything. Each workflow handles a specific part of the skill lifecycle — from analyzing source code to packaging for distribution. If any terms are unfamiliar, see the [Concepts](../concepts.md) page for plain-English definitions.
8
+ SKF has 12 workflows. You trigger them by typing commands to [Ferris](../agents/), the AI agent that runs everything. Each workflow handles a specific part of the skill lifecycle — from analyzing source code to packaging for distribution. If any terms are unfamiliar, see the [Concepts](../concepts/) page for definitions.
9
9
 
10
10
  ---
11
11
 
@@ -19,7 +19,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
19
19
 
20
20
  **When to Use:** First time using SKF in a project. Run once per project.
21
21
 
22
- **Key Steps:** Detect tools → CCC index check (Forge+) → Determine tier → Write forge-tier.yaml → QMD hygiene (Deep)
22
+ **Key Steps:** Detect tools + Determine tier → CCC index check (Forge+) → Write forge-tier.yaml → QMD + CCC registry hygiene (Deep/Forge+) → Status report
23
23
 
24
24
  **Agent:** Ferris (Architect mode)
25
25
 
@@ -33,7 +33,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
33
33
 
34
34
  **When to Use:** Before `Create Skill` when you want maximum control over what gets compiled.
35
35
 
36
- **Key Steps:** Gather intent → Analyze target → Define scope → Scripts/assets intent → Write skill-brief.yaml
36
+ **Key Steps:** Gather intent → Analyze target → Define scope → Confirm brief → Write skill-brief.yaml
37
37
 
38
38
  **Agent:** Ferris (Architect mode)
39
39
 
@@ -47,7 +47,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
47
47
 
48
48
  **When to Use:** After Brief Skill, or with an existing skill-brief.yaml.
49
49
 
50
- **Key Steps:** Load brief → Ecosystem check → AST extract → Scripts/assets detect → QMD enrich → Compile → Validate → Generate
50
+ **Key Steps:** Load brief → Ecosystem check → Extract (AST + scripts/assets) → QMD enrich (Deep) → Compile → Validate → Generate
51
51
 
52
52
  **Agent:** Ferris (Architect mode)
53
53
 
@@ -61,7 +61,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
61
61
 
62
62
  **When to Use:** After source code changes when an existing skill needs updating.
63
63
 
64
- **Key Steps:** Load existing → Detect changes (incl. scripts/assets) → Re-extract → Merge (preserve MANUAL) → Validate → Write
64
+ **Key Steps:** Load existing → Detect changes (incl. scripts/assets) → Re-extract → Merge (preserve MANUAL) → Validate → Write → Report
65
65
 
66
66
  **Agent:** Ferris (Surgeon mode)
67
67
 
@@ -87,11 +87,13 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
87
87
 
88
88
  **Command:** `@Ferris SS`
89
89
 
90
- **Purpose:** Consolidated project stack skill with integration patterns.
90
+ **Purpose:** Consolidated project stack skill with integration patterns. Supports two modes: **code-mode** (analyzes a codebase) and **compose-mode** (synthesizes from existing skills + architecture document, no codebase required).
91
91
 
92
- **When to Use:** When you want your agent to understand your entire project stack — not just individual libraries.
92
+ **When to Use:** When you want your agent to understand your entire project stack — not just individual libraries. Use code-mode for existing projects; compose-mode activates automatically after the VS → RA verification path when skills exist but no codebase is present.
93
93
 
94
- **Key Steps:** Detect manifests → Rank dependencies → Scope confirmation → Parallel extract → Detect integrations → Compile stack → Generate references
94
+ **Key Steps (code-mode):** Detect manifests → Rank dependencies → Scope confirmation → Parallel extract → Detect integrations → Compile stack → Generate references
95
+
96
+ **Key Steps (compose-mode):** Load existing skills → Confirm scope → Detect integrations from architecture doc → Compile stack → Generate references
95
97
 
96
98
  **Agent:** Ferris (Architect mode)
97
99
 
@@ -105,7 +107,9 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
105
107
 
106
108
  **When to Use:** Brownfield onboarding of large repos or multi-service projects.
107
109
 
108
- **Key Steps:** Scan project → Identify units → Map exports Detect integrations → Recommend → Generate briefs
110
+ **Key Steps:** Init → Scan project → Identify units → Map exports & detect integrations → Recommend → Generate briefs
111
+
112
+ **Note:** Supports resume — if the session is interrupted mid-analysis, re-run `@Ferris AN` and Ferris will resume from where it left off.
109
113
 
110
114
  **Agent:** Ferris (Architect mode)
111
115
 
@@ -119,7 +123,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
119
123
 
120
124
  **When to Use:** To check if a skill has fallen out of date with its source code.
121
125
 
122
- **Key Steps:** Load skill → Re-index source → Structural diff Script/asset drift → Semantic diff (Deep) → Classify severity → Report
126
+ **Key Steps:** Load skill → Re-index source → Structural diff (incl. script/asset drift) → Semantic diff (Deep) → Classify severity → Report
123
127
 
124
128
  **Agent:** Ferris (Audit mode)
125
129
 
@@ -133,23 +137,53 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
133
137
 
134
138
  **When to Use:** After creating or updating a skill, before exporting.
135
139
 
136
- **Key Steps:** Load skill → Detect mode → Coverage check → Coherence check → Score → Gap report
140
+ **Key Steps:** Load skill → Detect mode → Coverage check → Coherence check → External validation (skill-check, tessl) → Score → Gap report
141
+
142
+ **Agent:** Ferris (Audit mode)
143
+
144
+ ---
145
+
146
+ ## Architecture Verification Workflows
147
+
148
+ ### Verify Stack (VS)
149
+
150
+ **Command:** `@Ferris VS`
151
+
152
+ **Purpose:** Pre-code stack feasibility verification. Cross-references generated skills against architecture and PRD documents with three passes: coverage, integration compatibility, and requirements.
153
+
154
+ **When to Use:** After generating individual skills with CS/QS, before building a stack skill — to verify the tech stack can support the architecture.
155
+
156
+ **Key Steps:** Load skills + docs → Coverage analysis → Integration verification → Requirements check → Synthesize verdict → Present report
137
157
 
138
158
  **Agent:** Ferris (Audit mode)
139
159
 
140
160
  ---
141
161
 
162
+ ### Refine Architecture (RA)
163
+
164
+ **Command:** `@Ferris RA`
165
+
166
+ **Purpose:** Evidence-backed architecture improvement. Takes the original architecture doc + generated skills + optional VS report, fills gaps, flags contradictions, and suggests improvements — all citing specific APIs.
167
+
168
+ **When to Use:** After VS confirms feasibility, before running SS in compose-mode. Produces a refined architecture ready for stack skill composition.
169
+
170
+ **Key Steps:** Load inputs → Gap analysis → Issue detection → Improvement detection → Compile refined doc → Present report
171
+
172
+ **Agent:** Ferris (Architect mode)
173
+
174
+ ---
175
+
142
176
  ## Utility Workflows
143
177
 
144
178
  ### Export Skill (EX)
145
179
 
146
180
  **Command:** `@Ferris EX`
147
181
 
148
- **Purpose:** Package for distribution + platform-aware context injection into CLAUDE.md/AGENTS.md.
182
+ **Purpose:** Validate package structure, generate context snippets, and inject managed sections into CLAUDE.md/AGENTS.md/.cursorrules.
149
183
 
150
- **When to Use:** When a skill is ready for distribution or CLAUDE.md integration.
184
+ **When to Use:** When a skill is ready for CLAUDE.md/AGENTS.md integration. Also provides distribution instructions for `npx skills publish`.
151
185
 
152
- **Key Steps:** Load skill → Package → Generate snippet → Update CLAUDE.md → Token report → Summary
186
+ **Key Steps:** Load skill → Validate package → Generate snippet → Update context file (CLAUDE.md/AGENTS.md/.cursorrules) → Token report → Summary
153
187
 
154
188
  **Agent:** Ferris (Delivery mode)
155
189
 
@@ -157,34 +191,48 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
157
191
 
158
192
  ## Workflow Connections
159
193
 
194
+ **Standard path (code-mode):**
195
+
196
+ ```mermaid
197
+ flowchart TD
198
+ SF[Setup Forge — one-time] --> AN[Analyze Source]
199
+ SF --> QS[Quick Skill]
200
+ SF --> SS_code[Stack Skill — code-mode]
201
+
202
+ AN --> BS[Brief Skill]
203
+ BS --> CS[Create Skill]
204
+ AN -->|direct| CS
205
+
206
+ CS --> TS[Test Skill — quality gate]
207
+ QS --> TS
208
+ SS_code --> TS
209
+
210
+ TS --> EX[Export Skill]
211
+ TS --> AS[Audit Skill]
212
+ AS --> US[Update Skill]
213
+ US --> TS
160
214
  ```
161
- setup-forge (one-time)
162
-
163
- ┌──────────────┼──────────────┐
164
- │ │ │
165
- analyze-source quick-skill create-stack-skill
166
- │ │ │
167
- brief-skill │ │
168
- │ │ │
169
- create-skill │ │
170
- │ │ │
171
- └──────┬───────┘──────────────┘
172
-
173
- test-skill (quality gate)
174
-
175
- ┌──────┼──────┐
176
- │ │
177
- export-skill audit-skill
178
-
179
- update-skill (loops back to test)
215
+
216
+ **Pre-code verification path (compose-mode):**
217
+
218
+ ```mermaid
219
+ flowchart TD
220
+ GEN["Create Skill | Quick Skill ×N<br/>(per library)"] --> VS[Verify Stack — feasibility report]
221
+ VS --> RA[Refine Architecture — refined doc]
222
+ RA --> SS_compose[Stack Skill — compose-mode]
223
+ SS_compose --> TS[Test Skill]
224
+ TS --> EX[Export Skill]
180
225
  ```
181
226
 
182
227
  ---
183
228
 
184
- ## Build Priority
229
+ ## Workflow Categories
185
230
 
186
- | Phase | Workflows | Notes |
187
- |-------|-----------|-------|
188
- | 1a (Core Engine) | setup-forge, create-skill, test-skill, export-skill | Must build first |
189
- | 1b (Entry Points) | quick-skill, brief-skill, create-stack-skill | Complete v1.0 |
190
- | 2 (Lifecycle) | audit-skill, update-skill, analyze-source | Post-launch |
231
+ | Category | Workflows | Description |
232
+ |----------|-----------|-------------|
233
+ | Core | SF, BS, CS, US | Setup, brief, create, and update skills |
234
+ | Feature | QS, SS, AN | Quick skill, stack skill, and analyze source |
235
+ | Quality | AS, TS | Audit skill completeness and test skill accuracy |
236
+ | Architecture Verification | VS, RA | Pre-code architecture feasibility and refinement |
237
+ | Utility | EX | Package and export for consumption |
238
+ | In-Agent | WS, KI | WS: show lifecycle position, active briefs, and forge tier; KI: list knowledge fragments (both in-agent, no file-based workflow) |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-module-skill-forge",
4
- "version": "0.6.0",
4
+ "version": "0.7.0",
5
5
  "description": "BMAD module — Turn code and docs into instructions AI agents can actually follow. Progressive capability tiers (Quick/Forge/Forge+/Deep).",
6
6
  "keywords": [
7
7
  "bmad",
@@ -41,11 +41,11 @@ agent:
41
41
  - "Agent-level knowledge informs judgment across workflows — consult knowledge/ when a step directs, not from memory"
42
42
 
43
43
  critical_actions:
44
- - "Load COMPLETE file {project-root}/_bmad/_memory/forger-sidecar/preferences.yaml"
45
- - "Load COMPLETE file {project-root}/_bmad/_memory/forger-sidecar/forge-tier.yaml"
46
- - "ONLY read/write files in {project-root}/_bmad/_memory/forger-sidecar/"
47
- - "Consult {project-root}/_bmad/skf/knowledge/skf-knowledge-index.csv to select knowledge fragments under knowledge/ and load only the files needed for the current task"
48
- - "Load the referenced fragment(s) from {project-root}/_bmad/skf/knowledge/ before giving recommendations"
44
+ - "Load COMPLETE file {sidecar_path}/preferences.yaml"
45
+ - "Load COMPLETE file {sidecar_path}/forge-tier.yaml"
46
+ - "ONLY write STATE files to {project-root}/_bmad/_memory/forger-sidecar/ — reading from knowledge/ and workflow files is expected"
47
+ - "When a workflow step directs knowledge consultation, consult {project-root}/_bmad/skf/knowledge/skf-knowledge-index.csv to select the relevant fragment(s) and load only those files"
48
+ - "Load the referenced fragment(s) from {project-root}/_bmad/skf/ using the path in the fragment_file column (e.g., knowledge/overview.md resolves to {project-root}/_bmad/skf/knowledge/overview.md) before giving recommendations on the topic the step directed"
49
49
 
50
50
  menu:
51
51
  - trigger: SF or fuzzy match on setup-forge
@@ -80,6 +80,14 @@ agent:
80
80
  workflow: "{project-root}/_bmad/skf/workflows/skillforge/audit-skill/workflow.md"
81
81
  description: "[AS] Audit Skill — check for drift"
82
82
 
83
+ - trigger: VS or fuzzy match on verify-stack
84
+ workflow: "{project-root}/_bmad/skf/workflows/skillforge/verify-stack/workflow.md"
85
+ description: "[VS] Verify Stack — validate tech stack feasibility against architecture and PRD"
86
+
87
+ - trigger: RA or fuzzy match on refine-architecture
88
+ workflow: "{project-root}/_bmad/skf/workflows/skillforge/refine-architecture/workflow.md"
89
+ description: "[RA] Refine Architecture — improve architecture doc using verified skill data"
90
+
83
91
  - trigger: TS or fuzzy match on test-skill
84
92
  workflow: "{project-root}/_bmad/skf/workflows/skillforge/test-skill/workflow.md"
85
93
  description: "[TS] Test Skill — verify completeness"
@@ -88,6 +96,10 @@ agent:
88
96
  workflow: "{project-root}/_bmad/skf/workflows/skillforge/export-skill/workflow.md"
89
97
  description: "[EX] Export Skill — package for distribution"
90
98
 
99
+ - trigger: KI or fuzzy match on knowledge-index
100
+ action: "Load and display {project-root}/_bmad/skf/knowledge/skf-knowledge-index.csv — cross-cutting knowledge fragments available for JiT loading"
101
+ description: "[KI] Knowledge Index — list available knowledge fragments"
102
+
91
103
  - trigger: WS or fuzzy match on workflow-status
92
104
  action: "Show current lifecycle position, active skill briefs, and forge tier status"
93
105
  description: "[WS] Workflow Status — show current lifecycle position"
@@ -9,7 +9,7 @@ Cross-session state for the SKF module's skill compilation lifecycle.
9
9
  ## Files
10
10
 
11
11
  - `preferences.yaml` — User preferences: language defaults, output format settings
12
- - `forge-tier.yaml` — Tool availability (ast-grep, gh, QMD) and derived capability tier
12
+ - `forge-tier.yaml` — Tool availability (ast-grep, gh, QMD, ccc), derived capability tier, CCC index state, and QMD collection registry
13
13
 
14
14
  ## Runtime Access
15
15
 
@@ -7,7 +7,8 @@ tools:
7
7
  gh_cli: ~
8
8
  qmd: ~
9
9
  ccc: ~
10
- security_scan: ~
10
+ ccc_daemon: ~
11
+ security_scan: ~ # Detected but not yet consumed by downstream workflows — reserved for future validation pre-check
11
12
 
12
13
  # Capability tier (derived from tool availability)
13
14
  # Quick = no tools | Forge = + ast-grep | Forge+ = + ast-grep + ccc | Deep = + ast-grep + gh + QMD
@@ -8,10 +8,8 @@ tier_override: ~
8
8
  # Passive context injection (set to false to skip snippet generation and CLAUDE.md updates during export)
9
9
  passive_context: true
10
10
 
11
- # Language defaults
12
- output_language: ~
13
- skill_format_version: ~
14
-
15
- # Output preferences
16
- citation_style: ~
17
- confidence_display: ~
11
+ # Reserved for future use — these fields are not yet consumed by any workflow step
12
+ # output_language: ~
13
+ # skill_format_version: ~
14
+ # citation_style: ~
15
+ # confidence_display: ~
@@ -63,7 +63,7 @@ The format implements a three-phase loading model:
63
63
  | Phase | What Loads | Token Cost | When |
64
64
  | --- | --- | --- | --- |
65
65
  | Discovery | `name` + `description` from frontmatter | ~50-100 tokens | Agent startup, all skills |
66
- | Activation | Full `SKILL.md` body | < 5000 tokens | Task matches skill description |
66
+ | Activation | Full `SKILL.md` body | < 5000 tokens (~500 lines guideline) | Task matches skill description |
67
67
  | Execution | Files from `scripts/`, `references/`, `assets/` | Variable | SKILL.md directs agent to load |
68
68
 
69
69
  ## Pattern Examples
@@ -0,0 +1,102 @@
1
+ # Architecture Verification
2
+
3
+ ## Principle
4
+
5
+ A tech stack is only as strong as its weakest integration point. Architecture verification cross-references generated skills against architecture documents to produce evidence-backed feasibility verdicts — before a single line of application code is written. Every verdict must cite specific APIs, types, or function signatures from the generated skills. Speculation is labeled; evidence is cited.
6
+
7
+ ## Rationale
8
+
9
+ Architects commonly evaluate tech stacks by reading documentation, building proof-of-concepts, or asking on forums. This process is slow, incomplete, and leaves integration risks undiscovered until implementation. SKF's pre-code verification pipeline replaces guesswork with systematic cross-referencing:
10
+
11
+ 1. Generate skills for each candidate library (CS/QS) — producing T1/T2 extraction data
12
+ 2. Run Verify Stack (VS) — cross-reference extracted APIs against architecture integration claims
13
+ 3. Run Refine Architecture (RA) — improve the architecture doc with verified API evidence
14
+ 4. Run Stack Skill compose mode (SS) — synthesize a consolidated integration playbook
15
+
16
+ Without architecture verification:
17
+ - Integration risks surface during implementation (costly, late)
18
+ - Architecture documents describe intent without evidence
19
+ - Library selection is based on feature lists, not API compatibility
20
+
21
+ With architecture verification:
22
+ - Integration feasibility is validated pre-code with API-level evidence
23
+ - Architecture documents become evidence-backed engineering artifacts
24
+ - Library swaps happen in minutes (regenerate skill, re-run VS) not days
25
+
26
+ ## Verification Passes
27
+
28
+ ### Pass 1: Coverage Verification
29
+
30
+ Check that a generated skill exists for every technology referenced in the architecture document. Coverage gaps mean unverified assumptions about library capabilities.
31
+
32
+ - **Covered**: Skill exists — APIs are known
33
+ - **Missing**: Referenced but no skill — capabilities are assumed, not verified
34
+
35
+ ### Pass 2: Integration Verification
36
+
37
+ For each integration claim in the architecture document, cross-reference the API surfaces of both libraries:
38
+
39
+ - **Verified**: APIs demonstrably connect — matching types, documented bridge, or shared protocol
40
+ - **Plausible**: Compatible types or protocols but no documented integration path
41
+ - **Risky**: Type mismatch, protocol gap, or language boundary requiring a bridge
42
+ - **Blocked**: Fundamental incompatibility — no feasible integration path
43
+
44
+ Cross-reference protocol:
45
+ 1. Language boundary check (same language → direct calls; TypeScript↔Rust → needs FFI/IPC)
46
+ 2. Protocol compatibility (in-process, HTTP, WebSocket, shared filesystem)
47
+ 3. Type compatibility (does A export something B accepts?)
48
+ 4. Documentation cross-reference (does either library mention the other?)
49
+
50
+ ### Pass 3: Requirements Verification
51
+
52
+ If a PRD/vision document is provided, verify the stack covers stated capability requirements:
53
+
54
+ - **Fulfilled**: Stack capabilities demonstrably address the requirement
55
+ - **Partially Fulfilled**: Some aspects covered, gaps remain
56
+ - **Not Addressed**: No library in the stack covers this requirement
57
+
58
+ ## Iteration Loop
59
+
60
+ The core value of architecture verification is the iteration loop:
61
+
62
+ 1. VS produces verdicts → user reads RISKY/BLOCKED items
63
+ 2. User swaps a library → generates new skill via CS/QS
64
+ 3. User re-runs VS → sees delta: "Previously RISKY, now VERIFIED"
65
+ 4. Repeat until FEASIBLE
66
+
67
+ Each VS run should produce a diff from the previous run when a prior feasibility report exists. This makes the iteration cycle visible and measurable.
68
+
69
+ ## Evidence Citation Format
70
+
71
+ All verdicts cite evidence from generated skills:
72
+
73
+ ```
74
+ Library A exports: `function_name(params) → return_type` [from skill: skill-name]
75
+ Library B accepts: `function_name(params)` [from skill: skill-name]
76
+ Compatibility: {explanation}
77
+ ```
78
+
79
+ ## Lifecycle Position
80
+
81
+ Architecture verification sits between individual skill generation and stack skill synthesis:
82
+
83
+ ```
84
+ (CS|QS)×N → VS → RA → SS (compose) → TS → EX → Implementation → SS (code-mode)
85
+ ```
86
+
87
+ VS and RA are pre-code workflows. SS compose-mode synthesizes the implementation playbook. After the codebase grows, SS code-mode (the standard stack-skill mode that analyzes manifests and source) captures actual usage patterns — completing the lifecycle.
88
+
89
+ ## Anti-Patterns
90
+
91
+ - Treating VS verdicts as absolute — they are evidence-based assessments, not guarantees
92
+ - Running VS without generating skills first — VS reads skills, it does not create them
93
+ - Skipping the iteration loop — the first VS run often reveals gaps that require library swaps
94
+ - Using VS output as a SKILL.md — VS produces a feasibility report, not a skill; use SS compose-mode for the stack skill
95
+
96
+ ## Related Fragments
97
+
98
+ - [confidence-tiers.md](confidence-tiers.md) — T1/T2/T3 trust model for verdict evidence
99
+ - [skill-lifecycle.md](skill-lifecycle.md) — end-to-end pipeline and workflow connections
100
+ - [progressive-capability.md](progressive-capability.md) — tier philosophy for skill generation
101
+
102
+ _Source: synthesized from verify-stack/workflow.md, refine-architecture/workflow.md, and create-stack-skill compose-mode-rules.md_
@@ -19,7 +19,7 @@ The key architectural constraint: ccc discovers, ast-grep verifies. Discovery me
19
19
 
20
20
  ccc is a **discovery layer only**. It answers "where should I look?" — it does not produce citations or structural claims. Every path or symbol returned by ccc_bridge must be verified by `ast_bridge` (T1) or source reading (T1-low) before it enters the extraction inventory. ccc results never appear in provenance citations.
21
21
 
22
- ccc is available at **Forge+** and **Deep** tiers (when `tools.ccc: true` in forge-tier.yaml).
22
+ ccc is **required** at the Forge+ tier (it defines Forge+) and **optionally available** at the Deep tier as an enhancement (when `tools.ccc: true` in forge-tier.yaml).
23
23
 
24
24
  ## Availability
25
25
 
@@ -27,6 +27,17 @@ With confidence tiers:
27
27
  | T2 | QMD-enriched | Knowledge base | QMD semantic search + synthesis | Deep |
28
28
  | T3 | External reference | Docs, URLs | External documentation lookup | All tiers |
29
29
 
30
+ ## T2 Sub-Types
31
+
32
+ T2 enrichment content maps to temporal scopes that control where annotations surface:
33
+
34
+ | Sub-type | Content | Surface Level |
35
+ | --- | --- | --- |
36
+ | T2-past | Closed issues, merged PRs, changelogs — historical context explaining why the API looks the way it does | `references/` (full temporal context) |
37
+ | T2-future | Open PRs, deprecation warnings, RFCs — forward-looking context about upcoming changes | `SKILL.md` Section 4b (Migration & Deprecation Warnings) + `references/` |
38
+
39
+ The T2-past/T2-future distinction is operationally significant: T2-future annotations trigger the presence of a Migration & Deprecation Warnings section in SKILL.md, while T2-past annotations live in progressive disclosure reference files only.
40
+
30
41
  ## Citation Formats
31
42
 
32
43
  Each tier has a defined citation format used consistently across all skill output:
@@ -131,7 +142,7 @@ Every generated skill includes a confidence distribution in `metadata.json`:
131
142
  "t2": 12,
132
143
  "t3": 3
133
144
  },
134
- "extraction_tier": "deep" // valid values: "quick", "forge", "forge+", "deep"
145
+ "confidence_tier": "Deep" // valid values: "Quick", "Forge", "Forge+", "Deep"
135
146
  }
136
147
  ```
137
148
 
@@ -13,7 +13,7 @@ T3 external documentation fetching retrieves content from URLs specified in the
13
13
  All content obtained through doc fetching is classified as **external, untrusted** and subject to quarantine constraints:
14
14
 
15
15
  1. **Citation format** — every doc-fetched claim uses `[EXT:{url}]` citation format
16
- 2. **Conflict resolution priority** — T3 has the lowest priority: `T1 > T2 > source reading > T3`
16
+ 2. **Conflict resolution priority** — T3 has the lowest priority: `T1 > T1-low > T2 > T3`
17
17
  3. **Source authority cap** — T3 content forces `source_authority: community` in metadata; it never qualifies as `official`
18
18
  4. **No structural claims** — T3 cannot assert verified signatures or line-level precision
19
19
 
@@ -106,12 +106,12 @@ Runs pending database migrations in sequence.
106
106
  | Severity | Condition | Resolution |
107
107
  | --- | --- | --- |
108
108
  | HIGH | Regenerated content overlaps \[MANUAL\] position | Present both versions, user chooses |
109
- | WARNING | Parent section deleted, \[MANUAL\] block orphaned | Flag orphaned block, user decides to keep or remove |
109
+ | HIGH | Parent section deleted, \[MANUAL\] block orphaned | Flag orphaned block, user decides to keep or remove |
110
110
  | MEDIUM | \[MANUAL\] references a deleted export | Flag stale reference for user review |
111
111
  | LOW | New export generated adjacent to \[MANUAL\] block | Auto-resolve: place new content before the block |
112
112
 
113
113
  **Key Points:**
114
- - HIGH and WARNING conflicts always require user input — never auto-resolved
114
+ - HIGH conflicts always require user input — never auto-resolved
115
115
  - MEDIUM conflicts are flagged but do not block the update
116
116
  - LOW conflicts are auto-resolved with a deterministic rule (new content before block)
117
117
 
@@ -6,7 +6,7 @@ Agent-level knowledge files capture cross-cutting principles and patterns that F
6
6
 
7
7
  ## Rationale
8
8
 
9
- The SKF module has 10 workflows containing 19 operational `data/` files embedded in step directories. These data files define schemas, templates, scoring formulas, and extraction rules tightly coupled to individual steps. But several principles — zero hallucination, confidence tiers, provenance — cut across multiple workflows and need a single authoritative source rather than fragmented repetition.
9
+ The SKF module has 12 workflows containing numerous operational `data/` files embedded in step directories. These data files define schemas, templates, scoring formulas, and extraction rules tightly coupled to individual steps. But several principles — zero hallucination, confidence tiers, provenance — cut across multiple workflows and need a single authoritative source rather than fragmented repetition.
10
10
 
11
11
  Without a knowledge folder:
12
12
  - Cross-cutting principles get duplicated across workflow steps
@@ -22,21 +22,24 @@ With knowledge files:
22
22
 
23
23
  | File | Purpose | Key Workflows |
24
24
  |------------------------------------------------------------|-------------------------------------------------------------------|------------------------------------|
25
- | [zero-hallucination.md](zero-hallucination.md) | Every claim traces to source; uncitable content excluded | AN, BS, CS, QS, SS, US, AS, TS |
26
- | [confidence-tiers.md](confidence-tiers.md) | T1/T1-low/T2/T3 trust model and citation formats | AN, BS, CS, QS, SS, US, AS, TS, EX |
27
- | [progressive-capability.md](progressive-capability.md) | Quick/Forge/Forge+/Deep tier philosophy and behavior adaptation | All 10 |
25
+ | [zero-hallucination.md](zero-hallucination.md) | Every claim traces to source; uncitable content excluded | AN, BS, CS, QS, SS, US, AS, TS, RA |
26
+ | [confidence-tiers.md](confidence-tiers.md) | T1/T1-low/T2/T3 trust model and citation formats | AN, BS, CS, QS, SS, US, AS, TS, EX, RA, VS |
27
+ | [progressive-capability.md](progressive-capability.md) | Quick/Forge/Forge+/Deep tier philosophy and behavior adaptation | SF, AN, BS, CS, QS, SS, US, AS, TS, EX, VS, RA |
28
28
  | [agentskills-spec.md](agentskills-spec.md) | agentskills.io output format principles and compliance | CS, QS, SS, US, TS, EX |
29
- | [skill-lifecycle.md](skill-lifecycle.md) | End-to-end pipeline, artifact flow, workflow selection | All 10 |
29
+ | [skill-lifecycle.md](skill-lifecycle.md) | End-to-end pipeline, artifact flow, workflow selection | All 12 |
30
30
  | [provenance-tracking.md](provenance-tracking.md) | Provenance-map.json entries and file_entries, evidence reports, claim traceability | CS, QS, SS, US, AS, TS |
31
31
  | [manual-section-integrity.md](manual-section-integrity.md) | \[MANUAL\] marker preservation and merge algorithm | CS, US, AS, TS, EX |
32
32
  | [qmd-registry.md](qmd-registry.md) | Progressive QMD collection registry and collection gate principle | SF, BS, CS, US, AS |
33
- | [ccc-bridge.md](ccc-bridge.md) | ccc_bridge interface, indexing lifecycle, Forge+ discovery-before-extraction | SF, CS, SS, AS, US, BS |
33
+ | [ccc-bridge.md](ccc-bridge.md) | ccc_bridge interface, indexing lifecycle, Forge+ discovery-before-extraction | SF, AN, CS, SS, US, AS |
34
+ | [architecture-verification.md](architecture-verification.md) | Pre-code verification pipeline, integration verdicts, iteration loop | VS, RA, SS |
35
+ | [doc-fetcher.md](doc-fetcher.md) | T3 external documentation fetching, quarantine rules, tool-agnostic | CS, QS |
34
36
  | [split-body-strategy.md](split-body-strategy.md) | Selective vs full split-body, detection pattern, agent accuracy | CS, QS, US, TS, EX |
37
+ | [overview.md](overview.md) | Knowledge map and JiT loading protocol (this file) | All (entry point) |
35
38
 
36
39
  ## JiT Loading Protocol
37
40
 
38
41
  1. Ferris receives a task or workflow activation
39
- 2. Consult `skf-knowledge-index.csv` to identify relevant knowledge fragments by tags or description
42
+ 2. Consult `skf-knowledge-index.csv` to identify relevant knowledge fragments by tags or description. The `tier` column classifies fragments as `core` (always relevant when the domain applies) or `extended` (load only when the specific scenario is active — e.g., `doc-fetcher.md` only when `doc_urls` are present in the brief)
40
43
  3. Load only the files needed for the current task — never bulk-load all knowledge
41
44
  4. Apply knowledge principles during workflow execution alongside step-specific `data/` files
42
45
 
@@ -94,8 +94,9 @@ Deep: "Full intelligence pipeline — AST verification plus GitHub exploration
94
94
  **Context:** The test-skill workflow adjusts scoring weights based on the forge tier.
95
95
 
96
96
  **Implementation:**
97
- - **Quick (Naive mode):** Export Coverage 45%, Signature Accuracy 25%, Type Coverage 20%, External Validation 10%. No coherence check AST verification unavailable. When external validation tools (skill-check, tessl) are unavailable, their 10% is redistributed proportionally across the remaining categories.
98
- - **Forge (Contextual mode):** Export Coverage 40%, Signature Accuracy 25%, Type Coverage 15%, Coherence 20%. Full AST-backed verification.
97
+ - **Forge/Deep (Naive mode — individual skill):** Coherence weight (18%) redistributed to remaining categories: Export Coverage 45%, Signature Accuracy 25%, Type Coverage 20%, External Validation 10%. All four active categories are scored with AST-backed data.
98
+ - **Quick (any mode):** Signature Accuracy and Type Coverage are skipped (no AST available). Their weights redistribute proportionally to remaining active categories. For a Quick-tier individual skill (naive mode): after both adjustments (coherence removal + AST-dependent category removal), only Export Coverage and External Validation remain active — approximate redistributed weights: Export Coverage ~82%, External Validation ~18% (exact values depend on proportional redistribution; see scoring-rules.md for the calculation). When external validation tools (skill-check, tessl) are also unavailable, their weight is further redistributed, leaving Export Coverage as the sole scoring axis.
99
+ - **Forge (Contextual mode):** Export Coverage 36%, Signature Accuracy 22%, Type Coverage 14%, Coherence 18%, External Validation 10%. Full AST-backed verification. When external validation tools are unavailable, their 10% is redistributed proportionally.
99
100
  - **Forge+ (Contextual mode):** Same weights as Forge. The improved extraction coverage (from ccc pre-ranking) may increase T1 count and reduce gaps, but the scoring weights themselves do not change.
100
101
  - **Deep (Contextual mode):** Same weights as Forge, plus cross-repo verification and QMD coherence checks feed into the coherence score.
101
102
 
@@ -48,6 +48,7 @@ qmd_collections:
48
48
  | --- | --- | --- | --- |
49
49
  | `extraction` | create-skill step-07 | Compiled SKILL.md, references, context-snippet — structured, confidence-rated exports | audit-skill (drift detection), update-skill (T2 enrichment) |
50
50
  | `brief` | brief-skill step-05 | skill-brief.yaml — intent, scope, target repository metadata | Portfolio-level search (cross-skill deduplication) |
51
+ | `temporal` | create-skill step-03b | GitHub issues, PRs, releases, changelogs — historical and planned context at T2 confidence | step-04 enrichment (temporal annotations per exported function) |
51
52
  | `docs` | create-skill step-03c | Fetched external documentation — API references, guides, usage examples (T3 confidence) | step-04 enrichment (cross-reference doc context with source-extracted functions) |
52
53
 
53
54
  ### Lifecycle
@@ -55,11 +56,13 @@ qmd_collections:
55
56
  ```
56
57
  brief-skill writes brief → indexes {name}-brief → registers in forge-tier.yaml
57
58
 
59
+ create-skill fetches temporal context → indexes {name}-temporal → registers in forge-tier.yaml (Deep only)
60
+
58
61
  create-skill fetches docs → indexes {name}-docs → registers in forge-tier.yaml (Deep only)
59
62
 
60
63
  create-skill compiles skill → indexes {name}-extraction → registers in forge-tier.yaml
61
64
 
62
- audit-skill reads registry → queries {name}-extraction for temporal context
65
+ audit-skill reads registry → queries {name}-extraction for drift baseline
63
66
  update-skill reads registry → queries {name}-extraction for T2 enrichment
64
67
 
65
68
  setup-forge reads registry + QMD state → cleans orphans, removes stale entries
@@ -10,4 +10,5 @@ provenance-tracking,Provenance Tracking,"Provenance mechanism — provenance-map
10
10
  manual-section-integrity,Manual Section Integrity,"[MANUAL] preservation — marker format, merge algorithm, orphan detection","manual,preservation,merge,markers",core,knowledge/manual-section-integrity.md
11
11
  qmd-registry,QMD Collection Registry,"Progressive registry architecture — producer/consumer/janitor roles, collection gate principle, forge-tier.yaml registry schema","qmd,registry,collections,deep,indexing",core,knowledge/qmd-registry.md
12
12
  doc-fetcher,Doc Fetcher,"T3 external documentation — tool-agnostic URL fetching, quarantine rules, conflict resolution","doc-fetcher,t3,external,documentation,quarantine",extended,knowledge/doc-fetcher.md
13
+ architecture-verification,Architecture Verification,"Pre-code verification pipeline — VS/RA/SS-compose lifecycle, integration verdicts, coverage analysis, iteration loop","architecture,verification,stack,feasibility,integration,vs,ra,ss,compose",core,knowledge/architecture-verification.md
13
14
  split-body-strategy,Split-Body Strategy,"Selective split guidance — detection pattern, recommended approach, impact on tessl scores and snippet anchors","split-body,selective-split,references,body-size",core,knowledge/split-body-strategy.md