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.
- package/README.md +2 -2
- package/docs/agents.md +9 -5
- package/docs/concepts.md +17 -13
- package/docs/examples.md +19 -4
- package/docs/getting-started.md +34 -19
- package/docs/how-it-works.md +87 -84
- package/docs/index.md +1 -1
- package/docs/workflows.md +88 -40
- package/package.json +1 -1
- package/src/agents/forger.agent.yaml +17 -5
- package/src/forger/README.md +1 -1
- package/src/forger/forge-tier.yaml +2 -1
- package/src/forger/preferences.yaml +5 -7
- package/src/knowledge/agentskills-spec.md +1 -1
- package/src/knowledge/architecture-verification.md +102 -0
- package/src/knowledge/ccc-bridge.md +3 -2
- package/src/knowledge/confidence-tiers.md +12 -1
- package/src/knowledge/doc-fetcher.md +1 -1
- package/src/knowledge/manual-section-integrity.md +2 -2
- package/src/knowledge/overview.md +11 -7
- package/src/knowledge/progressive-capability.md +5 -2
- package/src/knowledge/qmd-registry.md +5 -2
- package/src/knowledge/skf-knowledge-index.csv +2 -0
- package/src/knowledge/skill-lifecycle.md +26 -2
- package/src/knowledge/split-body-strategy.md +16 -2
- package/src/knowledge/tool-resolution.md +55 -0
- package/src/knowledge/zero-hallucination.md +11 -8
- package/src/module-help.csv +9 -6
- package/src/module.yaml +3 -0
- package/src/workflows/README.md +35 -17
- package/src/workflows/analyze-source/data/skill-brief-schema.md +18 -5
- package/src/workflows/analyze-source/steps-c/step-01-init.md +2 -2
- package/src/workflows/analyze-source/steps-c/step-01b-continue.md +1 -1
- package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +1 -1
- package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +1 -1
- package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +3 -3
- package/src/workflows/analyze-source/steps-c/step-05-recommend.md +1 -1
- package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +2 -2
- package/src/workflows/analyze-source/workflow.md +2 -2
- package/src/workflows/audit-skill/data/severity-rules.md +1 -1
- package/src/workflows/audit-skill/steps-c/step-01-init.md +2 -1
- package/src/workflows/audit-skill/steps-c/step-02-re-index.md +8 -1
- package/src/workflows/audit-skill/steps-c/step-03-structural-diff.md +2 -2
- package/src/workflows/audit-skill/steps-c/step-04-semantic-diff.md +2 -2
- package/src/workflows/audit-skill/steps-c/step-05-severity-classify.md +1 -1
- package/src/workflows/audit-skill/workflow.md +2 -1
- package/src/workflows/brief-skill/data/scope-templates.md +10 -0
- package/src/workflows/brief-skill/data/skill-brief-schema.md +25 -23
- package/src/workflows/brief-skill/steps-c/step-01-gather-intent.md +1 -1
- package/src/workflows/brief-skill/steps-c/step-02-analyze-target.md +1 -1
- package/src/workflows/brief-skill/steps-c/step-05-write-brief.md +3 -0
- package/src/workflows/create-skill/data/extraction-patterns.md +7 -1
- package/src/workflows/create-skill/data/skill-sections.md +12 -11
- package/src/workflows/create-skill/data/source-resolution-protocols.md +2 -2
- package/src/workflows/create-skill/data/tier-degradation-rules.md +1 -1
- package/src/workflows/create-skill/steps-c/step-01-load-brief.md +14 -10
- package/src/workflows/create-skill/steps-c/step-02b-ccc-discover.md +4 -0
- package/src/workflows/create-skill/steps-c/step-03-extract.md +19 -19
- package/src/workflows/create-skill/steps-c/step-03b-fetch-temporal.md +3 -3
- package/src/workflows/create-skill/steps-c/step-03c-fetch-docs.md +3 -1
- package/src/workflows/create-skill/steps-c/step-04-enrich.md +3 -1
- package/src/workflows/create-skill/steps-c/step-05-compile.md +4 -3
- package/src/workflows/create-skill/steps-c/step-06-validate.md +2 -2
- package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +33 -44
- package/src/workflows/create-skill/steps-c/step-08-report.md +25 -11
- package/src/workflows/create-skill/workflow.md +2 -2
- package/src/workflows/create-stack-skill/data/compose-mode-rules.md +65 -0
- package/src/workflows/create-stack-skill/data/manifest-patterns.md +23 -1
- package/src/workflows/create-stack-skill/data/stack-skill-template.md +28 -6
- package/src/workflows/create-stack-skill/steps-c/step-01-init.md +25 -7
- package/src/workflows/create-stack-skill/steps-c/step-02-detect-manifests.md +37 -3
- package/src/workflows/create-stack-skill/steps-c/step-03-rank-and-confirm.md +29 -3
- package/src/workflows/create-stack-skill/steps-c/step-04-parallel-extract.md +50 -7
- package/src/workflows/create-stack-skill/steps-c/step-05-detect-integrations.md +35 -3
- package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +5 -1
- package/src/workflows/create-stack-skill/steps-c/step-07-generate-output.md +53 -5
- package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +3 -3
- package/src/workflows/create-stack-skill/steps-c/step-09-report.md +8 -2
- package/src/workflows/create-stack-skill/workflow.md +2 -2
- package/src/workflows/export-skill/data/managed-section-format.md +8 -1
- package/src/workflows/export-skill/data/snippet-format.md +1 -1
- package/src/workflows/export-skill/steps-c/step-04-update-context.md +7 -2
- package/src/workflows/export-skill/steps-c/step-05-token-report.md +1 -1
- package/src/workflows/export-skill/workflow.md +3 -1
- package/src/workflows/quick-skill/data/skill-template.md +18 -6
- package/src/workflows/quick-skill/steps-c/step-04-compile.md +26 -6
- package/src/workflows/quick-skill/steps-c/step-05-validate.md +1 -1
- package/src/workflows/quick-skill/steps-c/step-06-write.md +3 -0
- package/src/workflows/quick-skill/workflow.md +1 -1
- package/src/workflows/refine-architecture/data/refinement-rules.md +102 -0
- package/src/workflows/refine-architecture/steps-c/step-01-init.md +188 -0
- package/src/workflows/refine-architecture/steps-c/step-02-gap-analysis.md +179 -0
- package/src/workflows/refine-architecture/steps-c/step-03-issue-detection.md +182 -0
- package/src/workflows/refine-architecture/steps-c/step-04-improvements.md +169 -0
- package/src/workflows/refine-architecture/steps-c/step-05-compile.md +200 -0
- package/src/workflows/refine-architecture/steps-c/step-06-report.md +147 -0
- package/src/workflows/refine-architecture/workflow.md +61 -0
- package/src/workflows/setup-forge/steps-c/step-01-detect-and-tier.md +2 -1
- package/src/workflows/setup-forge/steps-c/step-01b-ccc-index.md +5 -3
- package/src/workflows/setup-forge/steps-c/step-02-write-config.md +15 -16
- package/src/workflows/setup-forge/steps-c/step-03-auto-index.md +1 -1
- package/src/workflows/setup-forge/steps-c/step-04-report.md +2 -2
- package/src/workflows/setup-forge/workflow.md +3 -2
- package/src/workflows/test-skill/data/scoring-rules.md +3 -0
- package/src/workflows/test-skill/data/source-access-protocol.md +1 -1
- package/src/workflows/test-skill/steps-c/step-01-init.md +1 -0
- package/src/workflows/test-skill/steps-c/step-02-detect-mode.md +2 -0
- package/src/workflows/test-skill/workflow.md +2 -2
- package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +3 -3
- package/src/workflows/update-skill/steps-c/step-03-re-extract.md +8 -3
- package/src/workflows/update-skill/steps-c/step-05-validate.md +8 -12
- package/src/workflows/update-skill/steps-c/step-06-write.md +5 -2
- package/src/workflows/update-skill/workflow.md +1 -1
- package/src/workflows/verify-stack/data/coverage-patterns.md +45 -0
- package/src/workflows/verify-stack/data/feasibility-report-template.md +63 -0
- package/src/workflows/verify-stack/data/integration-verification-rules.md +73 -0
- package/src/workflows/verify-stack/steps-c/step-01-init.md +174 -0
- package/src/workflows/verify-stack/steps-c/step-02-coverage.md +181 -0
- package/src/workflows/verify-stack/steps-c/step-03-integrations.md +195 -0
- package/src/workflows/verify-stack/steps-c/step-04-requirements.md +168 -0
- package/src/workflows/verify-stack/steps-c/step-05-synthesize.md +191 -0
- package/src/workflows/verify-stack/steps-c/step-06-report.md +197 -0
- package/src/workflows/verify-stack/workflow.md +61 -0
- package/src/workflows/analyze-source/validation-report.md +0 -657
- package/src/workflows/analyze-source/workflow-plan-analyze-source.md +0 -385
- package/src/workflows/audit-skill/validation-report.md +0 -545
- package/src/workflows/audit-skill/workflow-plan-audit-skill.md +0 -318
- package/src/workflows/brief-skill/validation-report.md +0 -630
- package/src/workflows/brief-skill/workflow-plan-brief-skill.md +0 -360
- package/src/workflows/create-skill/validation-report.md +0 -189
- package/src/workflows/create-skill/workflow-plan-create-skill.md +0 -525
- package/src/workflows/create-stack-skill/validation-report.md +0 -401
- package/src/workflows/create-stack-skill/workflow-plan-create-stack-skill.md +0 -481
- package/src/workflows/export-skill/validation-report.md +0 -263
- package/src/workflows/export-skill/workflow-plan-export-skill.md +0 -369
- package/src/workflows/quick-skill/validation-report.md +0 -543
- package/src/workflows/quick-skill/workflow-plan-quick-skill.md +0 -405
- package/src/workflows/setup-forge/validation-report.md +0 -504
- package/src/workflows/setup-forge/workflow-plan-setup-forge.md +0 -430
- package/src/workflows/test-skill/validation-report.md +0 -390
- package/src/workflows/test-skill/workflow-plan-test-skill.md +0 -292
- package/src/workflows/update-skill/data/tier-degradation-rules.md +0 -46
- package/src/workflows/update-skill/validation-report.md +0 -559
- package/src/workflows/update-skill/workflow-plan-update-skill.md +0 -441
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
conversionFrom: 'src/workflows/create-stack-skill/create-stack-skill.spec.md'
|
|
3
|
-
originalFormat: 'spec-placeholder'
|
|
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-next-step', 'step-10-confirmation']
|
|
5
|
-
created: 2026-02-27
|
|
6
|
-
status: VALIDATED
|
|
7
|
-
approvedDate: 2026-02-27
|
|
8
|
-
confirmationDate: 2026-02-27
|
|
9
|
-
confirmationType: conversion
|
|
10
|
-
coverageStatus: complete
|
|
11
|
-
validationStatus: COMPLETE
|
|
12
|
-
validationDate: 2026-02-27
|
|
13
|
-
validationReport: validation-report.md
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# Workflow Creation Plan
|
|
17
|
-
|
|
18
|
-
## Conversion Source
|
|
19
|
-
|
|
20
|
-
**Original Path:** src/workflows/create-stack-skill/create-stack-skill.spec.md
|
|
21
|
-
**Original Format:** Specification placeholder (spec.md) — not a running workflow, a design blueprint
|
|
22
|
-
**Detected Structure:** Single specification document defining a 9-step create-only workflow for generating consolidated stack skills with integration patterns
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Original Workflow Analysis
|
|
27
|
-
|
|
28
|
-
### Goal (from source)
|
|
29
|
-
|
|
30
|
-
Consolidated project stack skill with integration patterns. Analyzes a project's dependency manifests, detects significant libraries, discovers co-import integration points, and produces a consolidated stack skill. The stack SKILL.md focuses on integration patterns — how libraries connect in THIS specific codebase. References/ contain per-library subsets and integration pair documentation. Absorbs analyze-stack internally.
|
|
31
|
-
|
|
32
|
-
### Original Steps (Complete List)
|
|
33
|
-
|
|
34
|
-
**Step 01:** detect-manifests - Find and parse dependency files (package.json, requirements.txt, Cargo.toml, etc.)
|
|
35
|
-
**Step 02:** rank-dependencies - Rank libraries by import frequency, present ranked list for user confirmation
|
|
36
|
-
**Step 03:** scope-confirmation - User confirms which dependencies to include in the stack skill
|
|
37
|
-
**Step 04:** parallel-extract - Extract per-library documentation in parallel (uses max_parallel_generation)
|
|
38
|
-
**Step 05:** detect-integrations - Find co-import patterns and integration points between libraries
|
|
39
|
-
**Step 06:** compile-stack - Assemble the main stack SKILL.md with integration layer
|
|
40
|
-
**Step 07:** generate-references - Write per-library reference files and integration pair documentation
|
|
41
|
-
**Step 08:** validate - Validate output against specification
|
|
42
|
-
**Step 09:** report - Display stack summary with integration graph
|
|
43
|
-
|
|
44
|
-
### Output / Deliverable
|
|
45
|
-
|
|
46
|
-
Multi-file document-producing workflow:
|
|
47
|
-
- `{skills_output_folder}/{project}-stack/SKILL.md` — Main skill: integration patterns + conventions
|
|
48
|
-
- `{skills_output_folder}/{project}-stack/context-snippet.md` — Compressed stack index for context loading
|
|
49
|
-
- `{skills_output_folder}/{project}-stack/metadata.json` — Metadata with `skill_type: "stack"`
|
|
50
|
-
- `{skills_output_folder}/{project}-stack/references/{library}.md` — Per-library reference subsets
|
|
51
|
-
- `{skills_output_folder}/{project}-stack/references/integrations/{pair}.md` — Cross-library integration patterns
|
|
52
|
-
|
|
53
|
-
### Input Requirements
|
|
54
|
-
|
|
55
|
-
**Required:**
|
|
56
|
-
- Project root with dependency manifests
|
|
57
|
-
|
|
58
|
-
**Optional:**
|
|
59
|
-
- Explicit dependency list (skip auto-detection)
|
|
60
|
-
- Scope overrides per library
|
|
61
|
-
|
|
62
|
-
### Key Instructions to LLM
|
|
63
|
-
|
|
64
|
-
- Uses `manifest_reader` for dependency detection
|
|
65
|
-
- ADR-D: compositional architecture — modular, composable design
|
|
66
|
-
- ADR-E: smart scope with developer confirmation — auto-detect then confirm with user
|
|
67
|
-
- Primary agent: Ferris (Architect mode)
|
|
68
|
-
- Step 04 uses `max_parallel_generation` for parallel extraction
|
|
69
|
-
- Create-only mode (steps-c/ only)
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## Conversion Notes
|
|
74
|
-
|
|
75
|
-
**What works well in original:**
|
|
76
|
-
- Clear 9-step pipeline with logical progression (detect → rank → confirm → extract → analyze → compile → write → validate → report)
|
|
77
|
-
- Smart scope approach: auto-detect then user confirms
|
|
78
|
-
- Multi-file output structure with clear separation (main skill, context snippet, metadata, references)
|
|
79
|
-
- Integration-focused architecture — not just listing libraries but mapping how they connect
|
|
80
|
-
- Parallel extraction capability for performance
|
|
81
|
-
|
|
82
|
-
**What needs improvement:**
|
|
83
|
-
- Spec is a placeholder — no actual step file implementations exist
|
|
84
|
-
- No collaborative conversation patterns defined
|
|
85
|
-
- No menu handling or user interaction points specified beyond step 03
|
|
86
|
-
- No data files, templates, or schemas defined
|
|
87
|
-
- No error handling or fallback patterns
|
|
88
|
-
|
|
89
|
-
**Compliance gaps identified:**
|
|
90
|
-
- No workflow.md entry point file
|
|
91
|
-
- No step files with proper frontmatter (name, description, nextStepFile)
|
|
92
|
-
- No MANDATORY EXECUTION RULES sections
|
|
93
|
-
- No EXECUTION PROTOCOLS sections
|
|
94
|
-
- No menu handling logic defined
|
|
95
|
-
- No state tracking (stepsCompleted) integration
|
|
96
|
-
- No data/ folder with schemas or templates
|
|
97
|
-
- Missing web_bundle consideration for step file sizes
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## Memory-Informed Discovery Notes
|
|
102
|
-
|
|
103
|
-
### Preserve (from established SKF patterns)
|
|
104
|
-
|
|
105
|
-
- 9-step pipeline with integration-centric design (mapping library connections, not just listing)
|
|
106
|
-
- Multi-file output structure matching SKF conventions (SKILL.md, context-snippet.md, metadata.json, references/)
|
|
107
|
-
- User confirmation gate at step 03 aligns with ADR-E smart scope pattern
|
|
108
|
-
- Parallel extraction at step 04 architecturally sound for multi-library processing
|
|
109
|
-
- Logical progression: detect → rank → confirm → extract → analyze → compile → write → validate → report
|
|
110
|
-
|
|
111
|
-
### Address (gaps identified from memory)
|
|
112
|
-
|
|
113
|
-
- `manifest_reader` does not exist — needs self-contained dependency detection with fallback chain (npm/PyPI/crates.io/Cargo registry APIs → file parsing → web search)
|
|
114
|
-
- No forge-tier awareness — must implement Quick/Forge/Forge+/Deep tier behavior matching create-skill, quick-skill, test-skill, export-skill patterns
|
|
115
|
-
- No tool bridge specifications — needs gh_bridge (all tiers), ast_bridge (Forge/Deep), qmd_bridge (Deep only)
|
|
116
|
-
- No error handling matrix — needs hard halt / graceful degradation / silent skip / advisory categories
|
|
117
|
-
- "Absorbs analyze-stack internally" undefined — must define concrete analyze-stack functionality within steps 01-05
|
|
118
|
-
- SKF module config.yaml does not exist yet — setup-forge prerequisite must create it
|
|
119
|
-
|
|
120
|
-
### Add (enhancements from ecosystem patterns)
|
|
121
|
-
|
|
122
|
-
- Forge-tier dependent extraction: Quick = source reading + basic import counting; Forge = ast_bridge for structural co-import detection; Deep = qmd_bridge for temporal integration evolution
|
|
123
|
-
- Confidence tier labeling (T1 AST-verified, T1-low source reading, T2 QMD-enriched) matching create-skill pattern
|
|
124
|
-
- Workflow chaining: prerequisite = setup-forge; downstream = test-skill, export-skill
|
|
125
|
-
- Positive capability framing in reporting ("Stack forged: {name} — {lib_count} libraries, {integration_count} integration patterns")
|
|
126
|
-
- Error handling matrix following established 7-scenario pattern from create-skill design
|
|
127
|
-
|
|
128
|
-
### Audience
|
|
129
|
-
|
|
130
|
-
- Ferris in Architect mode — consistent with spec and all SKF creation workflows
|
|
131
|
-
- Target: developers wanting consolidated view of how their project's dependencies integrate
|
|
132
|
-
- Phase 1b (Entry Points) build priority
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## Classification Decisions
|
|
137
|
-
|
|
138
|
-
**Workflow Name:** create-stack-skill
|
|
139
|
-
**Target Path:** src/workflows/create-stack-skill/ (spec) / _bmad-output/bmb-creations/workflows/create-stack-skill/ (build output)
|
|
140
|
-
|
|
141
|
-
**4 Key Decisions:**
|
|
142
|
-
1. **Document Output:** false — compile-then-write action pattern (collects data steps 01-05, compiles step 06, writes step 07), consistent with create-skill classification
|
|
143
|
-
2. **Module Affiliation:** skf — SKF module, consistent with all Skill Forge workflows
|
|
144
|
-
3. **Session Type:** single-session — consistent with all SKF workflows; subprocess calls (max_parallel_generation) handle heavy lifting outside main context
|
|
145
|
-
4. **Lifecycle Support:** create-only — stack skills regenerated fresh when dependencies change, no incremental editing
|
|
146
|
-
|
|
147
|
-
**Structure Implications:**
|
|
148
|
-
- `steps-c/` only — no edit or validate folders
|
|
149
|
-
- Standard init step (no step-01b continuation)
|
|
150
|
-
- No stepsCompleted tracking in output (non-document, action-based)
|
|
151
|
-
- SKF module variables: `skills_output_folder`, `forge_data_folder`, `forge-tier`
|
|
152
|
-
- Subprocess support needed for `max_parallel_generation` at step 04
|
|
153
|
-
- Installed path: `{project-root}/_bmad/skf/workflows/create-stack-skill`
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Requirements
|
|
158
|
-
|
|
159
|
-
**Flow Structure:**
|
|
160
|
-
- Pattern: linear pipeline
|
|
161
|
-
- Phases: detect → rank → confirm → extract → analyze → compile → write → validate → report
|
|
162
|
-
- Estimated steps: 9 (matching spec)
|
|
163
|
-
- No looping or branching — straight through with confirmation gates
|
|
164
|
-
|
|
165
|
-
**User Interaction:**
|
|
166
|
-
- Style: mostly autonomous with strategic gates
|
|
167
|
-
- Decision points:
|
|
168
|
-
- Gate 1 (Step 03): Scope confirmation — user confirms library list after ranking
|
|
169
|
-
- Gate 2 (Step 06): Compile checkpoint — review assembled SKILL.md integration layer before writing
|
|
170
|
-
- Checkpoint frequency: 2 gates in 9-step pipeline (steps 03, 06)
|
|
171
|
-
|
|
172
|
-
**Inputs Required:**
|
|
173
|
-
- Required: Project root with dependency manifests (package.json, requirements.txt, Cargo.toml, go.mod, etc.)
|
|
174
|
-
- Required: setup-forge completed — forge-tier.yaml with tier and available tools
|
|
175
|
-
- Optional: Explicit dependency list (skip auto-detection)
|
|
176
|
-
- Optional: Scope overrides per library (include/exclude specific exports)
|
|
177
|
-
|
|
178
|
-
**Output Specifications:**
|
|
179
|
-
- Type: action (multi-file generation)
|
|
180
|
-
- Deliverable files in `{skills_output_folder}/{project}-stack/`:
|
|
181
|
-
- SKILL.md — Integration patterns + conventions (main skill)
|
|
182
|
-
- context-snippet.md — Compressed stack index (~50-80 tokens per lib, ADR-L v2)
|
|
183
|
-
- metadata.json — skill_type: "stack", library list, integration pair count
|
|
184
|
-
- references/{library}.md — Per-library API surface and key patterns
|
|
185
|
-
- references/integrations/{pair}.md — Cross-library integration patterns
|
|
186
|
-
- Workspace artifacts in `{forge_data_folder}/{project}-stack/`:
|
|
187
|
-
- provenance-map.json — Source tracking per library extraction
|
|
188
|
-
- evidence-report.md — Extraction evidence and confidence breakdown
|
|
189
|
-
- Frequency: single run per project (re-run when dependencies change)
|
|
190
|
-
|
|
191
|
-
**Success Criteria:**
|
|
192
|
-
- All confirmed libraries have reference files generated
|
|
193
|
-
- Integration pairs documented for detected co-import patterns
|
|
194
|
-
- SKILL.md has meaningful integration layer (not concatenated library docs)
|
|
195
|
-
- All content has confidence tier labels (T1/T1-low/T2)
|
|
196
|
-
- context-snippet.md within target token budget
|
|
197
|
-
- metadata.json valid against agentskills.io spec
|
|
198
|
-
- Positive capability framing: "Stack forged: {name} — {lib_count} libraries, {integration_count} integration patterns"
|
|
199
|
-
|
|
200
|
-
**Instruction Style:**
|
|
201
|
-
- Overall: prescriptive
|
|
202
|
-
- Notes: Mechanical compilation pipeline with Ferris Architect mode. Steps 01-02, 04-09 are autonomous processing. Only step 03 has collaborative scope confirmation. Matches create-skill and quick-skill prescriptive patterns.
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
## Tools Configuration
|
|
207
|
-
|
|
208
|
-
**Core BMAD Tools:**
|
|
209
|
-
- **Party Mode:** excluded — prescriptive mechanical pipeline, no creative facilitation needed
|
|
210
|
-
- **Advanced Elicitation:** excluded — same reasoning, consistent with all SKF workflows
|
|
211
|
-
- **Brainstorming:** excluded — same reasoning
|
|
212
|
-
|
|
213
|
-
**LLM Features:**
|
|
214
|
-
- **Web-Browsing:** included — fetching library documentation during extraction (Phase 3), checking registry APIs during manifest resolution (Phase 1)
|
|
215
|
-
- **File I/O:** included — essential for reading manifests (Phase 1) and writing all output files (Phase 6)
|
|
216
|
-
- **Sub-Agents:** excluded — not needed for linear pipeline
|
|
217
|
-
- **Sub-Processes:** included — essential for Phase 3 parallel extraction via max_parallel_generation
|
|
218
|
-
|
|
219
|
-
**Memory:**
|
|
220
|
-
- Type: single-session
|
|
221
|
-
- Tracking: sidecar-file (forge-tier.yaml from setup-forge, read-only)
|
|
222
|
-
|
|
223
|
-
**External Integrations (pre-detected by setup-forge):**
|
|
224
|
-
- `gh_bridge` (all tiers) — GitHub API for repository access and source reading
|
|
225
|
-
- `ast_bridge` (Forge/Deep tiers) — ast-grep for structural import/export analysis and co-import detection
|
|
226
|
-
- `qmd_bridge` (Deep tier only) — QMD for temporal integration evolution patterns
|
|
227
|
-
- `skill-check` — agentskills.io spec validation (Step 08): `npx skill-check check --fix --format json` for validation + auto-fix + quality scoring, `split-body` for oversized body remediation, security scan for prompt injection detection
|
|
228
|
-
|
|
229
|
-
**Installation Requirements:**
|
|
230
|
-
- None new — all tools pre-detected by setup-forge prerequisite workflow
|
|
231
|
-
- User preference: no additional installation needed
|
|
232
|
-
|
|
233
|
-
---
|
|
234
|
-
|
|
235
|
-
## Workflow Design
|
|
236
|
-
|
|
237
|
-
### File Structure
|
|
238
|
-
|
|
239
|
-
```
|
|
240
|
-
create-stack-skill/
|
|
241
|
-
├── workflow.md (entry point, Ferris Architect mode)
|
|
242
|
-
├── data/
|
|
243
|
-
│ ├── manifest-patterns.md (detection patterns per language ecosystem)
|
|
244
|
-
│ ├── integration-patterns.md (co-import detection rules and known pairs)
|
|
245
|
-
│ └── stack-skill-template.md (SKILL.md section structure)
|
|
246
|
-
└── steps-c/
|
|
247
|
-
├── step-01-init.md (Init Non-Continuable with discovery)
|
|
248
|
-
├── step-02-detect-manifests.md (Middle Simple, auto-proceed)
|
|
249
|
-
├── step-03-rank-and-confirm.md (Middle Simple, P2 Gate 1)
|
|
250
|
-
├── step-04-parallel-extract.md (Middle Simple, auto-proceed, subprocess)
|
|
251
|
-
├── step-05-detect-integrations.md (Middle Simple, auto-proceed)
|
|
252
|
-
├── step-06-compile-stack.md (Middle Simple, P2 Gate 2)
|
|
253
|
-
├── step-07-generate-output.md (Middle Simple, auto-proceed)
|
|
254
|
-
├── step-08-validate.md (Middle Simple, auto-proceed)
|
|
255
|
-
└── step-09-report.md (Final)
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Step Sequence Table
|
|
259
|
-
|
|
260
|
-
| Step | Name | Type | Menu | Key Refs |
|
|
261
|
-
|------|------|------|------|----------|
|
|
262
|
-
| 01 | init | Init Non-Continuable (discovery) | P3 auto-proceed | skfConfig, forgeTierFile |
|
|
263
|
-
| 02 | detect-manifests | Middle Simple | P3 auto-proceed | manifestPatterns |
|
|
264
|
-
| 03 | rank-and-confirm | Middle Simple | P2 C-only (Gate 1) | — |
|
|
265
|
-
| 04 | parallel-extract | Middle Simple | P3 auto-proceed | — |
|
|
266
|
-
| 05 | detect-integrations | Middle Simple | P3 auto-proceed | integrationPatterns |
|
|
267
|
-
| 06 | compile-stack | Middle Simple | P2 C-only (Gate 2) | stackSkillTemplate |
|
|
268
|
-
| 07 | generate-output | Middle Simple | P3 auto-proceed | — |
|
|
269
|
-
| 08 | validate | Middle Simple | P3 auto-proceed | — |
|
|
270
|
-
| 09 | report | Final | No nextStepFile | — |
|
|
271
|
-
|
|
272
|
-
### Step Action Plans
|
|
273
|
-
|
|
274
|
-
**Step 01 (init):**
|
|
275
|
-
- Load SKF module config from `_bmad/skf/config.yaml`
|
|
276
|
-
- Load forge-tier.yaml from sidecar: determine Quick/Forge/Forge+/Deep tier and available tools
|
|
277
|
-
- Validate prerequisites: forge-tier.yaml exists, project root accessible
|
|
278
|
-
- Accept optional explicit dependency list (skip auto-detection if provided)
|
|
279
|
-
- Accept optional scope overrides per library
|
|
280
|
-
- Display init summary: project name, tier, available tools
|
|
281
|
-
- Auto-proceed to step 02
|
|
282
|
-
|
|
283
|
-
**Step 02 (detect-manifests):**
|
|
284
|
-
- Scan project root for dependency manifest files using manifest-patterns.md:
|
|
285
|
-
- JavaScript: package.json, package-lock.json
|
|
286
|
-
- Python: requirements.txt, setup.py, pyproject.toml, Pipfile
|
|
287
|
-
- Rust: Cargo.toml
|
|
288
|
-
- Go: go.mod
|
|
289
|
-
- Java: pom.xml, build.gradle
|
|
290
|
-
- Ruby: Gemfile
|
|
291
|
-
- (extensible via data file)
|
|
292
|
-
- Parse each manifest to extract dependency names and version constraints
|
|
293
|
-
- If explicit dependency list provided in step 01, skip detection and use that list
|
|
294
|
-
- Report: found X manifests, Y total dependencies
|
|
295
|
-
- Auto-proceed to step 03
|
|
296
|
-
|
|
297
|
-
**Step 03 (rank-and-confirm) — Gate 1:**
|
|
298
|
-
- Count import/require statements per dependency across codebase (Pattern 1 subprocess grep)
|
|
299
|
-
- Rank dependencies by import frequency (descending)
|
|
300
|
-
- Filter out trivially-used dependencies (< threshold imports)
|
|
301
|
-
- Present ranked table: library name, import count, manifest source
|
|
302
|
-
- User confirms which dependencies to include/exclude
|
|
303
|
-
- Gate 1: P2 C-only to confirm scope and proceed
|
|
304
|
-
|
|
305
|
-
**Step 04 (parallel-extract):**
|
|
306
|
-
- For each confirmed dependency, launch subprocess extraction (Pattern 4 parallel, max_parallel_generation):
|
|
307
|
-
- Quick tier: Read source files importing the library, extract usage patterns via source reading
|
|
308
|
-
- Forge tier: ast_bridge for structural export analysis, function signatures, type definitions
|
|
309
|
-
- Deep tier: qmd_bridge for temporal usage evolution, deprecated patterns, API migration history
|
|
310
|
-
- Each subprocess returns: library name, key exports, usage patterns, confidence tier label
|
|
311
|
-
- Aggregate results, report extraction summary (X libraries extracted, confidence distribution)
|
|
312
|
-
- Auto-proceed to step 05
|
|
313
|
-
|
|
314
|
-
**Step 05 (detect-integrations):**
|
|
315
|
-
- For each pair of confirmed libraries, detect co-import patterns:
|
|
316
|
-
- Files that import both libraries (Pattern 1 subprocess grep)
|
|
317
|
-
- Shared type definitions between libraries
|
|
318
|
-
- Middleware/pipeline chains involving multiple libraries
|
|
319
|
-
- Configuration bridges (one library configuring another)
|
|
320
|
-
- Event handler patterns crossing library boundaries
|
|
321
|
-
- Use integration-patterns.md for known integration pattern templates
|
|
322
|
-
- Build integration graph: nodes = libraries, edges = integration points with descriptions
|
|
323
|
-
- Auto-proceed to step 06
|
|
324
|
-
|
|
325
|
-
**Step 06 (compile-stack) — Gate 2:**
|
|
326
|
-
- Load stack-skill-template.md for SKILL.md section structure
|
|
327
|
-
- Compile SKILL.md:
|
|
328
|
-
- Header: project name, library count, integration summary
|
|
329
|
-
- Integration layer: cross-cutting patterns, middleware chains, shared types, config bridges
|
|
330
|
-
- Per-library sections: key exports, usage conventions, gotchas, confidence annotations
|
|
331
|
-
- Confidence tier labels throughout (T1 AST-verified, T1-low source reading, T2 QMD-enriched)
|
|
332
|
-
- Present compiled SKILL.md preview to user for review
|
|
333
|
-
- Gate 2: P2 C-only to confirm compilation and proceed to writing
|
|
334
|
-
|
|
335
|
-
**Step 07 (generate-output):**
|
|
336
|
-
- Write all deliverable files to `{skills_output_folder}/{project}-stack/`:
|
|
337
|
-
- SKILL.md (from compilation)
|
|
338
|
-
- context-snippet.md (~50-80 tokens per library, ADR-L v2 format)
|
|
339
|
-
- metadata.json (skill_type: "stack", library list, integration pair count, version)
|
|
340
|
-
- references/{library}.md for each confirmed library
|
|
341
|
-
- references/integrations/{pair}.md for each detected integration pair
|
|
342
|
-
- Write workspace artifacts to `{forge_data_folder}/{project}-stack/`:
|
|
343
|
-
- provenance-map.json (source tracking per library extraction)
|
|
344
|
-
- evidence-report.md (extraction evidence and confidence breakdown)
|
|
345
|
-
- Auto-proceed to step 08
|
|
346
|
-
|
|
347
|
-
**Step 08 (validate):**
|
|
348
|
-
- Validate output against agentskills.io spec via skill-check
|
|
349
|
-
- Check: SKILL.md structure, metadata.json required fields, reference file completeness
|
|
350
|
-
- Verify all confidence tier labels present
|
|
351
|
-
- Report validation results (pass/fail with specific findings)
|
|
352
|
-
- Advisory: show warnings but continue to report
|
|
353
|
-
- Auto-proceed to step 09
|
|
354
|
-
|
|
355
|
-
**Step 09 (report) — Final:**
|
|
356
|
-
- Display: "Stack forged: {name} — {lib_count} libraries, {integration_count} integration patterns"
|
|
357
|
-
- Show confidence distribution table (T1/T1-low/T2 counts with descriptions)
|
|
358
|
-
- List all output files with purposes
|
|
359
|
-
- Conditional warnings display (only if warnings exist)
|
|
360
|
-
- Recommend next workflows: [TS] Test Skill, [ES] Export Skill
|
|
361
|
-
- Workflow complete
|
|
362
|
-
|
|
363
|
-
### Data Flow
|
|
364
|
-
|
|
365
|
-
```
|
|
366
|
-
step-01: tier, tools, optional_dep_list
|
|
367
|
-
→ step-02: manifests[], raw_dependencies[]
|
|
368
|
-
→ step-03: confirmed_dependencies[] (user-approved scope)
|
|
369
|
-
→ step-04: per_library_extractions[] (exports, patterns, confidence)
|
|
370
|
-
→ step-05: integration_graph {pairs[], shared_types[], chains[]}
|
|
371
|
-
→ step-06: skill_content (compiled SKILL.md)
|
|
372
|
-
→ step-07: written_files[] (all output artifacts)
|
|
373
|
-
→ step-08: validation_result {pass/fail, findings[]}
|
|
374
|
-
→ step-09: summary (console report)
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
### Error Handling Matrix
|
|
378
|
-
|
|
379
|
-
| Scenario | Response |
|
|
380
|
-
|----------|----------|
|
|
381
|
-
| Missing forge-tier.yaml | Hard halt: "Run setup-forge first" |
|
|
382
|
-
| No manifests found | Hard halt: "No dependency manifests detected in project" |
|
|
383
|
-
| Inaccessible source code | Hard halt: "Cannot access source repository" |
|
|
384
|
-
| Library extraction failure (single) | Graceful degradation: skip library, note in report |
|
|
385
|
-
| No integrations detected | Graceful: "No co-import patterns found, stack contains library summaries only" |
|
|
386
|
-
| Validation failures | Advisory: show warnings, continue to report |
|
|
387
|
-
| Individual file write failure | Hard halt per file |
|
|
388
|
-
|
|
389
|
-
### Workflow Chaining
|
|
390
|
-
|
|
391
|
-
- **Prerequisites:** setup-forge (required — provides forge-tier.yaml)
|
|
392
|
-
- **Optional inputs:** skill-brief.yaml files for individual libraries (from brief-skill)
|
|
393
|
-
- **Downstream:** [TS] test-skill (recommended), [ES] export-skill (recommended)
|
|
394
|
-
- No prerequisites from brief-skill or create-skill (this is an independent entry point)
|
|
395
|
-
|
|
396
|
-
### Subprocess Optimization
|
|
397
|
-
|
|
398
|
-
| Step | Pattern | Operation | Returns |
|
|
399
|
-
|------|---------|-----------|---------|
|
|
400
|
-
| 03 | Pattern 1 (Grep) | Count imports per library across codebase | `{library: import_count}` pairs |
|
|
401
|
-
| 04 | Pattern 4 (Parallel) | Per-library extraction (max_parallel_generation) | Structured extraction per library |
|
|
402
|
-
| 05 | Pattern 1 (Grep) | Co-import file detection per library pair | File lists with co-imports |
|
|
403
|
-
|
|
404
|
-
Fallback for all: if subprocess unavailable, perform operations in main context thread.
|
|
405
|
-
|
|
406
|
-
### Role and Persona
|
|
407
|
-
|
|
408
|
-
- Ferris Architect mode — prescriptive precision execution
|
|
409
|
-
- Speed-first, zero hallucination: all content traces to actual code with file:line citations
|
|
410
|
-
- No creative facilitation, no A/P menus
|
|
411
|
-
- Positive capability framing in reporting
|
|
412
|
-
|
|
413
|
-
---
|
|
414
|
-
|
|
415
|
-
## Foundation Build Complete
|
|
416
|
-
|
|
417
|
-
**Created:**
|
|
418
|
-
- Folder structure at: `_bmad-output/bmb-creations/workflows/create-stack-skill/`
|
|
419
|
-
- `workflow.md` — Entry point with Ferris Architect mode, SKF config loading, zero-hallucination rules
|
|
420
|
-
- `data/manifest-patterns.md` — Detection patterns for 8 language ecosystems with import counting rules
|
|
421
|
-
- `data/integration-patterns.md` — 6 integration pattern types with detection signals and output format
|
|
422
|
-
- `data/stack-skill-template.md` — SKILL.md structure, context-snippet format, metadata.json schema, reference file structures
|
|
423
|
-
|
|
424
|
-
**Configuration:**
|
|
425
|
-
- Workflow name: create-stack-skill
|
|
426
|
-
- Continuable: no (single-session)
|
|
427
|
-
- Document output: no (action-based, multi-file generation)
|
|
428
|
-
- Mode: create-only (steps-c/ only)
|
|
429
|
-
- No output template needed (non-document)
|
|
430
|
-
|
|
431
|
-
**Next Steps:**
|
|
432
|
-
- Step 8: Build step-01-init.md
|
|
433
|
-
- Step 9: Build remaining steps 02-09 (iterative)
|
|
434
|
-
|
|
435
|
-
---
|
|
436
|
-
|
|
437
|
-
## Step 01 Build Complete
|
|
438
|
-
|
|
439
|
-
**Created:**
|
|
440
|
-
- steps-c/step-01-init.md
|
|
441
|
-
|
|
442
|
-
**Step Configuration:**
|
|
443
|
-
- Type: Init Non-Continuable (with input discovery for forge-tier.yaml)
|
|
444
|
-
- Input Discovery: yes (forge-tier.yaml from sidecar, optional explicit dependency list)
|
|
445
|
-
- Menu: P3 auto-proceed (no A/P, no user interaction)
|
|
446
|
-
- Next Step: step-02-detect-manifests
|
|
447
|
-
|
|
448
|
-
**No supporting files needed** — data files already created in foundation (manifest-patterns.md, integration-patterns.md, stack-skill-template.md)
|
|
449
|
-
|
|
450
|
-
---
|
|
451
|
-
|
|
452
|
-
## Steps 02-09 Build Complete
|
|
453
|
-
|
|
454
|
-
**All workflow steps built in sequence:**
|
|
455
|
-
|
|
456
|
-
| Step | File | Type | Menu |
|
|
457
|
-
|------|------|------|------|
|
|
458
|
-
| 02 | step-02-detect-manifests.md | Middle Simple | P3 auto-proceed |
|
|
459
|
-
| 03 | step-03-rank-and-confirm.md | Middle Simple | P2 C-only (Gate 1) |
|
|
460
|
-
| 04 | step-04-parallel-extract.md | Middle Simple | P3 auto-proceed |
|
|
461
|
-
| 05 | step-05-detect-integrations.md | Middle Simple | P3 auto-proceed |
|
|
462
|
-
| 06 | step-06-compile-stack.md | Middle Simple | P2 C-only (Gate 2) |
|
|
463
|
-
| 07 | step-07-generate-output.md | Middle Simple | P3 auto-proceed |
|
|
464
|
-
| 08 | step-08-validate.md | Middle Simple | P3 auto-proceed |
|
|
465
|
-
| 09 | step-09-report.md | Final | No nextStepFile |
|
|
466
|
-
|
|
467
|
-
**Subprocess Optimization Applied:**
|
|
468
|
-
- Step 03: Pattern 1 (Grep) — import counting across codebase
|
|
469
|
-
- Step 04: Pattern 4 (Parallel) — per-library extraction via max_parallel_generation
|
|
470
|
-
- Step 05: Pattern 1 (Grep) — co-import file detection per library pair
|
|
471
|
-
|
|
472
|
-
**User Gates:**
|
|
473
|
-
- Gate 1 (Step 03): Scope confirmation — user confirms library list after ranking
|
|
474
|
-
- Gate 2 (Step 06): Compile checkpoint — review SKILL.md integration layer before writing
|
|
475
|
-
|
|
476
|
-
**Supporting Files (created in foundation):**
|
|
477
|
-
- data/manifest-patterns.md — 8 ecosystem detection patterns
|
|
478
|
-
- data/integration-patterns.md — 6 integration type classifications
|
|
479
|
-
- data/stack-skill-template.md — SKILL.md, context-snippet, metadata, reference structures
|
|
480
|
-
|
|
481
|
-
**All 9 workflow steps + 3 data files + workflow.md entry point = complete workflow build.**
|