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
@@ -0,0 +1,197 @@
1
+ ---
2
+ name: 'step-06-report'
3
+ description: 'Present the final feasibility report to the user with verdict, findings, and next steps'
4
+
5
+ outputFile: '{forge_data_folder}/feasibility-report-{project_name}.md'
6
+ ---
7
+
8
+ # Step 6: Present Report
9
+
10
+ ## STEP GOAL:
11
+
12
+ Present the complete feasibility report to the user. Display the overall verdict prominently, walk through key findings from each analysis pass, present actionable next steps based on the verdict, and offer the user options to review the full report or exit.
13
+
14
+ ## MANDATORY EXECUTION RULES (READ FIRST):
15
+
16
+ ### Universal Rules:
17
+
18
+ - 📖 CRITICAL: Read the complete step file before taking any action
19
+ - ⚙️ TOOL/SUBPROCESS FALLBACK: If any instruction references a subprocess, subagent, or tool you do not have access to, you MUST still achieve the outcome in your main context thread
20
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
21
+
22
+ ### Role Reinforcement:
23
+
24
+ - ✅ You are a stack verification analyst delivering the final report
25
+ - ✅ Present findings clearly and concisely — the user needs to make decisions
26
+ - ✅ Next step recommendations must match the verdict exactly
27
+
28
+ ### Step-Specific Rules:
29
+
30
+ - 🎯 Focus ONLY on presenting the completed report — no new analysis
31
+ - 🚫 FORBIDDEN to discover new findings, re-analyze skills, or change verdicts
32
+ - 🚫 FORBIDDEN to modify the report content — only read and present
33
+ - 📋 This is the FINAL step — no nextStepFile
34
+
35
+ ## EXECUTION PROTOCOLS:
36
+
37
+ - 🎯 Load and present the complete feasibility report
38
+ - 💾 No new content written — report was finalized in Step 05
39
+ - 📖 Present summary, detailed findings, and next steps clearly
40
+ - 🚫 Read-only presentation — do not alter report data
41
+
42
+ ## CONTEXT BOUNDARIES:
43
+
44
+ - Available: Complete {outputFile} with all sections from Steps 01-05
45
+ - Focus: Clear, actionable presentation of findings
46
+ - Limits: Do not add new analysis or change any verdicts
47
+ - Dependencies: All previous steps must be complete (Steps 01-05)
48
+
49
+ ## MANDATORY SEQUENCE
50
+
51
+ **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise.
52
+
53
+ ### 1. Load Complete Report
54
+
55
+ Read the entire `{outputFile}` to have all data available for presentation.
56
+
57
+ Verify all expected sections are present: Coverage Matrix, Integration Verdicts, Requirements Coverage (or skipped notation), Synthesis & Recommendations.
58
+
59
+ **Extract metrics from frontmatter:** Read `skills_analyzed`, `coverage_percentage`, `integrations_verified` (as `verified_count`), `integrations_plausible` (as `plausible_count`), `integrations_risky` (as `risky_count`), `integrations_blocked` (as `blocked_count`), `requirements_fulfilled` (as `fulfilled_count`), `requirements_partial` (as `partial_count`), `requirements_not_addressed` (as `not_addressed_count`), `requirements_pass`, `overall_verdict`, and `recommendation_count`. Use these mapped display names in the summary table and next steps below.
60
+
61
+ ### 2. Present Summary
62
+
63
+ "**Verify Stack — Feasibility Report**
64
+
65
+ ---
66
+
67
+ **Overall Verdict: {FEASIBLE / CONDITIONALLY FEASIBLE / NOT FEASIBLE}**
68
+
69
+ | Metric | Value |
70
+ |--------|-------|
71
+ | **Skills Analyzed** | {skills_analyzed} |
72
+ | **Coverage** | {coverage_percentage}% |
73
+ | **Integrations Verified** | {verified_count} |
74
+ | **Integrations Plausible** | {plausible_count} |
75
+ | **Integrations Risky** | {risky_count} |
76
+ | **Integrations Blocked** | {blocked_count} |
77
+ | **Requirements Fulfilled** | {fulfilled_count or 'N/A — no PRD'} |
78
+ | **Requirements Partially Fulfilled** | {partial_count or 'N/A — no PRD'} |
79
+ | **Requirements Not Addressed** | {not_addressed_count or 'N/A — no PRD'} |
80
+
81
+ {IF delta_improved is not null (delta from previous run exists):}
82
+ **Delta from Previous Run:**
83
+ - Improved: {delta_improved} items
84
+ - Regressed: {delta_regressed} items
85
+ - New: {delta_new} items
86
+ - Unchanged: {delta_unchanged} items
87
+
88
+ ---"
89
+
90
+ ### 3. Present Detailed Findings
91
+
92
+ Walk through each section briefly, focusing on items that need attention:
93
+
94
+ "**Coverage Highlights:**
95
+ {IF 100% coverage:}
96
+ - All referenced technologies have a matching skill
97
+
98
+ {IF any missing:}
99
+ - **Missing:** {list of missing technology names}
100
+
101
+ **Integration Verdicts:**
102
+ {IF all Verified/Plausible:}
103
+ - All integration pairs verified or plausible — no blockers
104
+
105
+ {IF any Risky:}
106
+ - **Risky:** {list of risky pairs with brief concern}
107
+
108
+ {IF any Blocked:}
109
+ - **Blocked:** {list of blocked pairs with brief incompatibility}
110
+
111
+ {IF requirements pass completed:}
112
+ **Requirements Gaps:**
113
+ {IF all Fulfilled:}
114
+ - All stated requirements addressed by the stack
115
+
116
+ {IF any Partially Fulfilled:}
117
+ - **Partially Fulfilled:** {list of partially covered requirements with gap description}
118
+
119
+ {IF any Not Addressed:}
120
+ - **Not Addressed:** {list of unaddressed requirements}"
121
+
122
+ ### 4. Present Next Steps
123
+
124
+ Based on the overall verdict, present the appropriate recommendation:
125
+
126
+ **IF FEASIBLE:**
127
+ "**Your stack is verified.** All technologies are covered, integrations are compatible, and requirements are all fulfilled (or requirements pass was skipped).
128
+
129
+ **Recommended next steps:**
130
+ 1. **[RA] Refine Architecture** — Produce an implementation-ready architecture document enriched with skill-backed API details
131
+ 2. **[SS] Create Stack Skill** — compose your individual skills into a unified stack skill, providing the refined architecture doc when prompted
132
+ 3. **[TS] Test Skill** → **[EX] Export Skill** — Verify completeness and package for distribution"
133
+
134
+ **IF CONDITIONALLY FEASIBLE:**
135
+ "**Your stack is conditionally feasible.** There are {recommendation_count} items to address before proceeding.
136
+
137
+ **Required actions:**
138
+ {List the specific recommendations from Step 05 synthesis}
139
+
140
+ **After addressing these items:** Re-run **[VS] Verify Stack** to confirm resolution, then proceed to **[RA]**."
141
+
142
+ **IF NOT FEASIBLE:**
143
+ "**Critical blockers must be resolved.** The stack cannot support the architecture as described.
144
+
145
+ **Critical actions:**
146
+ {List the blocked integration recommendations and missing skill actions from Step 05}
147
+
148
+ **After resolving blockers:** Re-run **[VS] Verify Stack**. Repeat until verdict improves to FEASIBLE or CONDITIONALLY FEASIBLE."
149
+
150
+ ### 5. Present Menu
151
+
152
+ Display: "**[R] Review full report** | **[X] Exit verification**"
153
+
154
+ #### Menu Handling Logic:
155
+
156
+ - **IF R:** Walk through the report section by section, presenting each section's content from {outputFile} in a readable format. After completing the walkthrough, redisplay the menu. (Note: the R walkthrough loop terminates only when the user selects X.)
157
+ - **IF X:** "**Feasibility report saved to:** `{outputFile}`
158
+
159
+ Re-run **[VS] Verify Stack** anytime after making changes to your skills or architecture document.
160
+
161
+ **Verification workflow complete.**"
162
+
163
+ #### EXECUTION RULES:
164
+
165
+ - ALWAYS halt and wait for user input after presenting the menu
166
+ - R may be selected multiple times — always walk through the full report
167
+ - X ends the workflow
168
+
169
+ ## CRITICAL STEP COMPLETION NOTE
170
+
171
+ This is the final step of the verify-stack workflow. When the user selects X, the workflow is complete. The feasibility report at `{outputFile}` contains the full analysis: Coverage Matrix, Integration Verdicts, Requirements Coverage, and Synthesis & Recommendations.
172
+
173
+ ---
174
+
175
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
176
+
177
+ ### ✅ SUCCESS:
178
+
179
+ - Complete report loaded and verified for section completeness
180
+ - Overall verdict displayed prominently with key metrics
181
+ - Delta from previous run shown if applicable
182
+ - Detailed findings presented with focus on risky/blocked/missing items
183
+ - Next steps match the verdict exactly (FEASIBLE/CONDITIONALLY FEASIBLE/NOT FEASIBLE)
184
+ - Menu presented with R and X options
185
+ - Report walkthrough available on R selection
186
+ - Workflow exits cleanly on X with saved file path
187
+
188
+ ### ❌ SYSTEM FAILURE:
189
+
190
+ - Discovering new findings or changing verdicts in this step
191
+ - Modifying the report content
192
+ - Next step recommendations that do not match the verdict
193
+ - Not presenting the menu
194
+ - Not displaying the report save path on exit
195
+ - Hardcoded paths instead of frontmatter variables
196
+
197
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: verify-stack
3
+ description: Validate tech stack feasibility against architecture and PRD documents
4
+ web_bundle: true
5
+ installed_path: '{project-root}/_bmad/skf/workflows/skillforge/verify-stack'
6
+ ---
7
+
8
+ # Verify Stack
9
+
10
+ **Goal:** Cross-reference generated skills against architecture and PRD documents to produce a feasibility report with evidence-backed integration verdicts, coverage analysis, and requirements mapping.
11
+
12
+ **Your Role:** In addition to your name, communication_style, and persona, you are also a stack feasibility analyst and integration verifier operating in Ferris Audit mode. You bring expertise in API surface analysis, cross-library compatibility assessment, and architecture validation, while the user brings their architecture vision and generated skills. Execute with analytical precision — every verdict must cite evidence from the generated skills.
13
+
14
+ ---
15
+
16
+ ## WORKFLOW ARCHITECTURE
17
+
18
+ This uses **step-file architecture** for disciplined execution:
19
+
20
+ ### Core Principles
21
+
22
+ - **Micro-file Design**: Each step is a self-contained instruction file that must be followed exactly
23
+ - **Just-In-Time Loading**: Only the current step file is in memory — never load future step files until told to do so
24
+ - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
25
+ - **Read-Only Analysis**: This workflow never modifies skills or input documents — it only reads and produces a feasibility report
26
+ - **Evidence-Backed Verdicts**: Every integration verdict must cite specific APIs, types, or function signatures from the generated skills
27
+
28
+ ### Step Processing Rules
29
+
30
+ 1. **READ COMPLETELY**: Always read the entire step file before taking any action
31
+ 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
32
+ 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
33
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
34
+ 5. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file
35
+
36
+ ### Critical Rules (NO EXCEPTIONS)
37
+
38
+ - 🛑 **NEVER** load multiple step files simultaneously
39
+ - 📖 **ALWAYS** read entire step file before execution
40
+ - 🚫 **NEVER** skip steps or optimize the sequence
41
+ - 🎯 **ALWAYS** follow the exact instructions in the step file
42
+ - ⏸️ **ALWAYS** halt at menus and wait for user input
43
+ - 📋 **NEVER** create mental todo lists from future steps
44
+ - ⚙️ **TOOL/SUBPROCESS FALLBACK**: If any instruction references a subprocess, subagent, or tool you do not have access to, you MUST still achieve the outcome in your main context thread
45
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
46
+ - 🔒 **READ-ONLY**: This workflow NEVER modifies skills, architecture docs, or PRD files
47
+
48
+ ---
49
+
50
+ ## INITIALIZATION SEQUENCE
51
+
52
+ ### 1. Module Configuration Loading
53
+
54
+ Load and read full config from {project-root}/_bmad/skf/config.yaml and resolve:
55
+
56
+ - `project_name`, `user_name`, `communication_language`
57
+ - `skills_output_folder`, `forge_data_folder`, `document_output_language`
58
+
59
+ ### 2. First Step Execution
60
+
61
+ Load, read the full file and then execute `./steps-c/step-01-init.md` to begin the workflow.