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,525 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
conversionFrom: 'src/workflows/create-skill/create-skill.spec.md'
|
|
3
|
-
originalFormat: 'Workflow Specification (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-all-steps', 'step-10-confirmation', 'step-11-completion']
|
|
5
|
-
created: 2026-02-26
|
|
6
|
-
completionDate: 2026-02-26
|
|
7
|
-
status: COMPLETE
|
|
8
|
-
approvedDate: 2026-02-26
|
|
9
|
-
confirmationDate: 2026-02-26
|
|
10
|
-
confirmationType: conversion
|
|
11
|
-
coverageStatus: complete
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Workflow Creation Plan
|
|
15
|
-
|
|
16
|
-
## Conversion Source
|
|
17
|
-
|
|
18
|
-
**Original Path:** src/workflows/create-skill/create-skill.spec.md
|
|
19
|
-
**Original Format:** Workflow Specification / Placeholder (pre-implementation spec from module build step-05)
|
|
20
|
-
**Detected Structure:** Single spec file with 8 planned steps, input/output contracts, agent integration notes. No workflow.md, no step files, no templates, no data files.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Original Workflow Analysis
|
|
25
|
-
|
|
26
|
-
### Goal (from source)
|
|
27
|
-
|
|
28
|
-
Compile a skill from a brief — the core compilation engine. Takes a skill-brief.yaml and source code, extracts function signatures and type definitions via AST analysis, enriches with QMD knowledge (Deep tier), validates against agentskills.io spec, and produces a complete SKILL.md with provenance map and evidence report. Supports `--batch` for multiple briefs.
|
|
29
|
-
|
|
30
|
-
### Original Steps (Complete List)
|
|
31
|
-
|
|
32
|
-
**Step 1:** load-brief — Load and validate skill-brief.yaml, resolve source code location
|
|
33
|
-
**Step 2:** ecosystem-check — Search if official skill already exists (advisory, not blocking)
|
|
34
|
-
**Step 3:** extract — AST extraction of exports, signatures, types (tier-dependent: Quick=source reading, Forge=AST, Deep=AST)
|
|
35
|
-
**Step 4:** enrich — QMD knowledge search for temporal context (Deep tier only, skip for Quick/Forge)
|
|
36
|
-
**Step 5:** compile — Assemble SKILL.md sections from extracted data with confidence tiers
|
|
37
|
-
**Step 6:** validate — Validate against agentskills.io spec via skill-check tool
|
|
38
|
-
**Step 7:** generate-artifacts — Write SKILL.md, provenance-map.json, evidence-report.md, metadata.json, context-snippet.md, extraction-rules.yaml
|
|
39
|
-
**Step 8:** report — Display compilation summary with confidence tiers, suggest next steps
|
|
40
|
-
|
|
41
|
-
### Output / Deliverable
|
|
42
|
-
|
|
43
|
-
7 output files across two directory trees:
|
|
44
|
-
|
|
45
|
-
**skills/{name}/ (deliverables):**
|
|
46
|
-
- SKILL.md — Active skill (trigger-based)
|
|
47
|
-
- context-snippet.md — Passive context source template
|
|
48
|
-
- metadata.json — Machine-readable birth certificate
|
|
49
|
-
- references/ — Progressive disclosure files per function
|
|
50
|
-
|
|
51
|
-
**forge-data/{name}/ (workspace artifacts):**
|
|
52
|
-
- provenance-map.json — Source map, AST bindings
|
|
53
|
-
- evidence-report.md — Build artifact, audit trail
|
|
54
|
-
- extraction-rules.yaml — Language + ast-grep schema
|
|
55
|
-
|
|
56
|
-
### Input Requirements
|
|
57
|
-
|
|
58
|
-
**Required:**
|
|
59
|
-
- `{forge_data_folder}/{skill-name}/skill-brief.yaml` — Compilation config from brief-skill workflow
|
|
60
|
-
- Source code (local path or GitHub repo URL)
|
|
61
|
-
|
|
62
|
-
**Optional:**
|
|
63
|
-
- `--batch` flag with list of briefs or directory path
|
|
64
|
-
- `--continue` flag for resuming interrupted batch operations
|
|
65
|
-
|
|
66
|
-
### Key Instructions to LLM
|
|
67
|
-
|
|
68
|
-
- Ferris operates in **Architect mode** — exploratory, structural, assembling
|
|
69
|
-
- Structured reports with inline AST citations during work, no metaphor
|
|
70
|
-
- Zero hallucination tolerance — every instruction traces to code
|
|
71
|
-
- Confidence tier labeling: T1 (AST extraction), T2 (QMD evidence), T3 (external docs)
|
|
72
|
-
- Positive capability framing — describe what the tier enables, not what's missing
|
|
73
|
-
- Tool invisibility — tools are backstage, results are center stage
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## Conversion Notes
|
|
78
|
-
|
|
79
|
-
**What works well in original:**
|
|
80
|
-
- Clean 8-step decomposition with single-responsibility boundaries
|
|
81
|
-
- Tier-dependent behavior design at steps 03/04
|
|
82
|
-
- Dual-output architecture (skills/ for deliverables, forge-data/ for workspace)
|
|
83
|
-
- agentskills.io spec compliance as first-class concern
|
|
84
|
-
- Confidence tier system (T1/T2/T3) well-defined in module brief
|
|
85
|
-
- Progressive disclosure via references/ directory
|
|
86
|
-
|
|
87
|
-
**What needs improvement:**
|
|
88
|
-
- Spec incorrectly marks as "document-producing" — this is a multi-file action workflow
|
|
89
|
-
- Quick tier fallback for step-03 needs explicit design (source reading via gh_bridge)
|
|
90
|
-
- No detail on how --batch works (loop wrapper? sub-process per brief?)
|
|
91
|
-
- Ecosystem check nuances missing (5-second timeout, 24-hour cache, advisory not blocking)
|
|
92
|
-
- No error handling patterns defined
|
|
93
|
-
- No sidecar checkpointing design for --continue recovery
|
|
94
|
-
|
|
95
|
-
**Compliance gaps identified:**
|
|
96
|
-
- No workflow.md entry point
|
|
97
|
-
- No step files in steps-c/ directory
|
|
98
|
-
- No BMAD frontmatter with stepsCompleted tracking
|
|
99
|
-
- No menu/auto-proceed patterns defined
|
|
100
|
-
- No data files or templates
|
|
101
|
-
- No tier-dependent conditional logic architecture
|
|
102
|
-
- Missing [MANUAL] section marker seeding for future update-skill compatibility
|
|
103
|
-
|
|
104
|
-
**Deduced interaction model:**
|
|
105
|
-
- Mostly autonomous with 2 strategic confirmation gates
|
|
106
|
-
- Gate 1: After ecosystem check — if official skill found, user decides (proceed/abort/install existing)
|
|
107
|
-
- Gate 2: After extraction — show findings (export count, confidence breakdown) before compilation
|
|
108
|
-
- All other steps auto-proceed
|
|
109
|
-
- Matches module brief use case stories (47s Quick, 8min batch)
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## Classification Decisions
|
|
114
|
-
|
|
115
|
-
**Workflow Name:** create-skill
|
|
116
|
-
**Target Path:** _bmad-output/bmb-creations/workflows/create-skill/ (build location)
|
|
117
|
-
**Installed Path:** {project-root}/_bmad/skf/workflows/skillforge/create-skill/ (per Ferris agent menu)
|
|
118
|
-
|
|
119
|
-
**4 Key Decisions:**
|
|
120
|
-
1. **Document Output:** false — action-based workflow producing multiple files as side effects, not a progressively-built document. Steps accumulate data in context, step-07 writes all files at once.
|
|
121
|
-
2. **Module Affiliation:** SKF — part of the Skill Forge module, invoked through Ferris agent [CS] trigger, has access to SKF config variables (forge tier, tool availability, sidecar paths).
|
|
122
|
-
3. **Session Type:** single-session — primary use case is fast (47s Quick, minutes for Forge/Deep). Batch mode (`--batch`) is a loop wrapper repeating single-session runs, not a reason for continuable architecture. `--continue` resumes the batch loop via sidecar checkpointing.
|
|
123
|
-
4. **Lifecycle Support:** create-only — SKF splits lifecycle across specialized workflows: update-skill (edits/Surgeon mode), test-skill (validation/Audit mode), audit-skill (drift detection). No tri-modal needed.
|
|
124
|
-
|
|
125
|
-
**Structure Implications:**
|
|
126
|
-
- Only `steps-c/` directory needed
|
|
127
|
-
- No `step-01b-continue.md` (single-session)
|
|
128
|
-
- No `stepsCompleted` tracking in output (non-document)
|
|
129
|
-
- No templates directory (non-document)
|
|
130
|
-
- Data directory needed for shared reference files (extraction patterns, spec schema references)
|
|
131
|
-
- Standard `step-01-init.md` with no continuation logic
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
## Requirements
|
|
136
|
-
|
|
137
|
-
**Flow Structure:**
|
|
138
|
-
- Pattern: Linear with conditional branches within steps (tier-dependent)
|
|
139
|
-
- Phases: Load → Check → Extract → Enrich → Compile → Validate → Generate → Report
|
|
140
|
-
- Estimated steps: 8
|
|
141
|
-
- Conditional logic: Steps 03/04 branch internally by forge tier (Quick/Forge/Forge+/Deep)
|
|
142
|
-
- No branching steps — conditions stay within each step
|
|
143
|
-
|
|
144
|
-
**User Interaction:**
|
|
145
|
-
- Style: Mostly autonomous with 2 strategic confirmation gates
|
|
146
|
-
- Gate 1 (step-02): If ecosystem check finds official skill — user decides: proceed / abort / install existing. No match = auto-proceed silently.
|
|
147
|
-
- Gate 2 (step-03): After extraction — display export count, confidence breakdown, tier used. User confirms before compilation.
|
|
148
|
-
- All other steps: Auto-proceed with no user interaction
|
|
149
|
-
- Checkpoint frequency: Only at the 2 gates above
|
|
150
|
-
|
|
151
|
-
**Inputs Required:**
|
|
152
|
-
- Required: `forge-data/{skill-name}/skill-brief.yaml` (from brief-skill workflow)
|
|
153
|
-
- Required: Source code location (local path or GitHub owner/repo)
|
|
154
|
-
- Prerequisite: `setup-forge` must have run — `forge-tier.yaml` must exist in sidecar
|
|
155
|
-
- Optional: `--batch` flag (list of briefs or directory for batch compilation)
|
|
156
|
-
- Optional: `--continue` flag (resume interrupted batch from sidecar checkpoint)
|
|
157
|
-
|
|
158
|
-
**Output Specifications:**
|
|
159
|
-
- Type: Multi-file action — 7 files written to 2 directory trees
|
|
160
|
-
- skills/{name}/: SKILL.md, context-snippet.md, metadata.json, references/
|
|
161
|
-
- forge-data/{name}/: provenance-map.json, evidence-report.md, extraction-rules.yaml
|
|
162
|
-
- Frequency: Single skill per run; batch mode loops the workflow per brief
|
|
163
|
-
- [MANUAL] markers: Seed empty `<!-- [MANUAL] -->` sections in SKILL.md for future update-skill compatibility
|
|
164
|
-
|
|
165
|
-
**Success Criteria:**
|
|
166
|
-
- All 7 output files generated without errors
|
|
167
|
-
- SKILL.md validates against agentskills.io spec (via skill-check)
|
|
168
|
-
- Every instruction has provenance citation with confidence tier (T1/T2/T3)
|
|
169
|
-
- Zero hallucinated content — uncitable claims excluded, not guessed
|
|
170
|
-
- Confidence tier distribution reported (e.g., "20 T1, 3 T2, 0 T3")
|
|
171
|
-
- Forge completion message: "Skill forged: {name} v{version} — {count} functions, T1 confidence."
|
|
172
|
-
|
|
173
|
-
**Instruction Style:**
|
|
174
|
-
- Overall: Prescriptive — compilation pipeline with exact operations
|
|
175
|
-
- Tool commands specific (ast-grep scan, QMD search, gh read)
|
|
176
|
-
- File operations exact with defined paths and formats
|
|
177
|
-
- Matches setup-forge prescriptive pattern: deterministic operations, specific commands, conditional logic
|
|
178
|
-
- Notes: Ferris Architect mode communication style during execution (structured reports, AST citations, no metaphor except at transitions)
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
## Tools Configuration
|
|
183
|
-
|
|
184
|
-
**Core BMAD Tools:**
|
|
185
|
-
- **Party Mode:** Excluded — prescriptive compilation pipeline, no creative exploration phases
|
|
186
|
-
- **Advanced Elicitation:** Excluded — no facilitative deep-dive phases in a compilation workflow
|
|
187
|
-
- **Brainstorming:** Excluded — no ideation phases, all steps are deterministic operations
|
|
188
|
-
|
|
189
|
-
**LLM Features:**
|
|
190
|
-
- **Web-Browsing:** Excluded — source access via gh_bridge, ecosystem check via skill-check. No raw web needed.
|
|
191
|
-
- **File I/O:** Included — essential. Reads skill-brief.yaml, forge-tier.yaml, source files. Writes 7 output files across 2 directory trees (skills/{name}/, forge-data/{name}/).
|
|
192
|
-
- **Sub-Agents:** Excluded — linear pipeline with step dependencies, no parallelizable specialized tasks for single skill compilation
|
|
193
|
-
- **Sub-Processes:** Excluded — sequential dependency chain. Batch mode is a loop wrapper, not parallel processes.
|
|
194
|
-
|
|
195
|
-
**Memory:**
|
|
196
|
-
- Type: Single-session
|
|
197
|
-
- Reads forge-tier.yaml from sidecar at init (existing state from setup-forge)
|
|
198
|
-
- Batch --continue: checkpoint progress in sidecar (batch-progress.yaml)
|
|
199
|
-
- No stepsCompleted tracking (non-document workflow)
|
|
200
|
-
|
|
201
|
-
**External Integrations (SKF MCP Tools — all pre-detected by setup-forge):**
|
|
202
|
-
- **gh_bridge:** Required all tiers — source reading, file trees, issues, releases, changelog
|
|
203
|
-
- **skill-check:** Required all tiers — `npx skill-check check --fix --format json` for validation + auto-fix + quality scoring (0-100), `--no-security-scan` for fast validation, security scan for prompt injection detection, `split-body` for oversized body remediation
|
|
204
|
-
- **ast_bridge:** Required Forge/Deep tiers — AST scan_definitions, run_rule, detect_co_imports
|
|
205
|
-
- **qmd_bridge:** Required Deep tier only — search, vector_search, deep_search for temporal context
|
|
206
|
-
|
|
207
|
-
**Installation Requirements:**
|
|
208
|
-
- All tools pre-detected by setup-forge workflow
|
|
209
|
-
- No new installations needed — workflow reads forge-tier.yaml to know what's available
|
|
210
|
-
- Graceful degradation: if tier is Quick, AST and QMD steps skip automatically
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Workflow Design
|
|
215
|
-
|
|
216
|
-
### File Structure
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
create-skill/
|
|
220
|
-
├── workflow.md (entry point, ~50 lines)
|
|
221
|
-
├── workflow-plan-create-skill.md (this plan file)
|
|
222
|
-
├── data/
|
|
223
|
-
│ ├── skill-sections.md (SKILL.md section structure + agentskills.io format)
|
|
224
|
-
│ └── extraction-patterns.md (tier-specific extraction instructions)
|
|
225
|
-
└── steps-c/
|
|
226
|
-
├── step-01-load-brief.md (~150 lines, Init with Input Discovery)
|
|
227
|
-
├── step-02-ecosystem-check.md (~120 lines, conditional gate)
|
|
228
|
-
├── step-02b-ccc-discover.md (~160 lines, conditional auto-proceed)
|
|
229
|
-
├── step-03-extract.md (~200 lines, complex middle)
|
|
230
|
-
├── step-03b-fetch-temporal.md (~240 lines, conditional auto-proceed)
|
|
231
|
-
├── step-03c-fetch-docs.md (~215 lines, conditional auto-proceed)
|
|
232
|
-
├── step-04-enrich.md (~130 lines, conditional middle)
|
|
233
|
-
├── step-05-compile.md (~200 lines, complex middle)
|
|
234
|
-
├── step-06-validate.md (~120 lines, simple middle)
|
|
235
|
-
├── step-07-generate-artifacts.md (~180 lines, simple middle)
|
|
236
|
-
└── step-08-report.md (~120 lines, final)
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
### Step Sequence Table
|
|
240
|
-
|
|
241
|
-
| Step | Name | Type | Menu Pattern | Goal |
|
|
242
|
-
|------|------|------|-------------|------|
|
|
243
|
-
| 01 | load-brief | Init (Input Discovery) | Auto-proceed (P3) | Load brief, resolve source, load forge tier |
|
|
244
|
-
| 02 | ecosystem-check | Middle (Simple) | Conditional: auto if no match, user choice if match | Check ecosystem |
|
|
245
|
-
| 02b | ccc-discover | Middle (Simple) | Auto-proceed (P3) — Forge+/Deep only | CCC semantic discovery to pre-rank files for extraction |
|
|
246
|
-
| 03 | extract | Middle (Standard) | C only (P2) — Gate 2 | Tier-dependent extraction |
|
|
247
|
-
| 03b | fetch-temporal | Middle (Simple) | Auto-proceed (P3) — Deep only | Fetch temporal context (issues, PRs, changelogs) and index into QMD |
|
|
248
|
-
| 03c | fetch-docs | Middle (Simple) | Auto-proceed (P3) — when doc_urls present | Fetch remote documentation from brief-specified URLs for T3-confidence content |
|
|
249
|
-
| 04 | enrich | Middle (Simple) | Auto-proceed (P3) — Deep only | QMD enrichment |
|
|
250
|
-
| 05 | compile | Middle (Simple) | Auto-proceed (P3) | Assemble SKILL.md |
|
|
251
|
-
| 06 | validate | Middle (Simple) | Auto-proceed (P3) | Validate spec |
|
|
252
|
-
| 07 | generate-artifacts | Middle (Simple) | Auto-proceed (P3) | Write output files |
|
|
253
|
-
| 08 | report | Final | None | Summary + next step |
|
|
254
|
-
|
|
255
|
-
### Step Action Plans
|
|
256
|
-
|
|
257
|
-
**step-01-load-brief** (Init with Input Discovery)
|
|
258
|
-
- Search forge-data/ for skill-brief.yaml matching user's request
|
|
259
|
-
- If --batch: discover all briefs in specified directory
|
|
260
|
-
- Load and validate brief structure (required fields: name, version, source_repo, language, scope)
|
|
261
|
-
- Resolve source code location (local path or GitHub owner/repo)
|
|
262
|
-
- Load forge-tier.yaml from sidecar — determine tier (Quick/Forge/Forge+/Deep)
|
|
263
|
-
- If forge-tier.yaml missing: halt with "Run [SF] Setup Forge first"
|
|
264
|
-
- Auto-proceed to step-02
|
|
265
|
-
|
|
266
|
-
**step-02-ecosystem-check** (Conditional Gate)
|
|
267
|
-
- Query agentskills.io registry API for brief.name — 5-second timeout, 24-hour cache
|
|
268
|
-
- If match found: present to user with [P] Proceed / [I] Install existing / [A] Abort
|
|
269
|
-
- If no match OR timeout: auto-proceed silently
|
|
270
|
-
- If registry API unavailable: skip silently (API unavailability is not an error)
|
|
271
|
-
- Note: ecosystem lookup requires registry API, not `skill-check` CLI (which validates local skills only)
|
|
272
|
-
|
|
273
|
-
**step-03-extract** (Standard Middle — Gate 2)
|
|
274
|
-
- Load extraction-patterns.md data file
|
|
275
|
-
- Quick tier: source reading via gh_bridge (list_tree + read_file), infer exports. T1-low confidence.
|
|
276
|
-
- Forge/Deep tier: ast_bridge.scan_definitions() + detect_co_imports(). T1 confidence.
|
|
277
|
-
- Build extraction inventory: export count, signatures, types, confidence breakdown
|
|
278
|
-
- Present summary, user confirms [C] Continue
|
|
279
|
-
|
|
280
|
-
**step-03b-fetch-temporal** (Simple Middle — Conditional Auto-proceed)
|
|
281
|
-
- Deep tier only — Quick/Forge skip silently
|
|
282
|
-
- GitHub repos only — non-GitHub sources skip silently
|
|
283
|
-
- Fetch temporal context (issues, PRs, releases, changelog) via `gh` CLI
|
|
284
|
-
- Targeted function searches using top_exports from extraction inventory
|
|
285
|
-
- Index fetched content into QMD collection (`{skill-name}-temporal`)
|
|
286
|
-
- Register collection in forge-tier.yaml; clean up staging directory
|
|
287
|
-
- Cache-aware: skip re-fetch if collection < 7 days old
|
|
288
|
-
- All failures degrade gracefully — never blocks the workflow
|
|
289
|
-
|
|
290
|
-
**step-03c-fetch-docs** (Simple Middle — Conditional Auto-proceed)
|
|
291
|
-
- Runs at any tier when `doc_urls` are present in the brief
|
|
292
|
-
- Tool-agnostic: uses whatever web fetching capability is available (Firecrawl, WebFetch, web-reader, curl, etc.)
|
|
293
|
-
- Fetches remote documentation from brief-specified URLs for T3-confidence content
|
|
294
|
-
- Root URL detection: discovers and fetches relevant subpages for documentation sites
|
|
295
|
-
- All extracted items cited as T3 with `[EXT:{url}]` provenance
|
|
296
|
-
- T3 items never override existing T1/T1-low/T2 extractions
|
|
297
|
-
- Supports docs-only briefs (T3 inventory replaces empty extraction inventory)
|
|
298
|
-
- Deep tier: indexes fetched docs into QMD collection (`{skill-name}-docs`)
|
|
299
|
-
- All failures degrade gracefully — never blocks the workflow
|
|
300
|
-
|
|
301
|
-
**step-04-enrich** (Simple Middle — Conditional)
|
|
302
|
-
- Deep tier: QMD searches per extracted function — issues, PRs, changelogs. T2 annotations.
|
|
303
|
-
- Not Deep: skip silently, auto-proceed
|
|
304
|
-
- QMD failure: degrade gracefully, continue without enrichment
|
|
305
|
-
|
|
306
|
-
**step-05-compile** (Simple Middle)
|
|
307
|
-
- Load skill-sections.md data file
|
|
308
|
-
- Assemble SKILL.md: frontmatter, overview, quick start, API sections, [MANUAL] markers
|
|
309
|
-
- Generate references/ content per function/type
|
|
310
|
-
- Generate context-snippet.md (compressed 2-line format)
|
|
311
|
-
- Auto-proceed
|
|
312
|
-
|
|
313
|
-
**step-06-validate** (Simple Middle)
|
|
314
|
-
- `npx skill-check check --fix --format json` (schema + frontmatter + auto-fix + quality score)
|
|
315
|
-
- Pass: auto-proceed. Fail: attempt auto-fix, re-validate, halt if still failing.
|
|
316
|
-
- skill-check unavailable: skip automated validation, add warning to evidence report
|
|
317
|
-
|
|
318
|
-
**step-07-generate-artifacts** (Simple Middle)
|
|
319
|
-
- Create directories: skills/{name}/, skills/{name}/references/, forge-data/{name}/
|
|
320
|
-
- Write 4 deliverables to skills/{name}/
|
|
321
|
-
- Write 3 workspace artifacts to forge-data/{name}/
|
|
322
|
-
- Auto-proceed
|
|
323
|
-
|
|
324
|
-
**step-08-report** (Final)
|
|
325
|
-
- Display: skill name, version, source, export count, confidence distribution, tier, file list, warnings
|
|
326
|
-
- Forge completion: "Skill forged: {name} v{version} — {count} functions, T1 confidence."
|
|
327
|
-
- Suggest next: "[TS] Test Skill — verify completeness before export"
|
|
328
|
-
- No nextStepFile (final)
|
|
329
|
-
|
|
330
|
-
### Data Flow
|
|
331
|
-
|
|
332
|
-
```
|
|
333
|
-
step-01 READS: forge-tier.yaml, skill-brief.yaml
|
|
334
|
-
SETS: tier, brief_data, source_location
|
|
335
|
-
↓
|
|
336
|
-
step-02 READS: agentskills.io registry API (ecosystem check — not skill-check CLI)
|
|
337
|
-
SETS: ecosystem_status
|
|
338
|
-
↓
|
|
339
|
-
step-03 READS: source code via gh_bridge/ast_bridge
|
|
340
|
-
SETS: extraction_inventory
|
|
341
|
-
↓
|
|
342
|
-
step-03b READS: source_repo via gh CLI, top_exports from extraction_inventory (Deep only)
|
|
343
|
-
CREATES: QMD temporal collection ({skill-name}-temporal)
|
|
344
|
-
↓
|
|
345
|
-
step-03c READS: doc_urls from brief_data (when present, any tier)
|
|
346
|
-
SETS: T3 items merged into extraction_inventory
|
|
347
|
-
↓
|
|
348
|
-
step-04 READS: QMD collections (Deep only)
|
|
349
|
-
SETS: enrichment_annotations
|
|
350
|
-
↓
|
|
351
|
-
step-05 READS: extraction_inventory + enrichment_annotations
|
|
352
|
-
BUILDS: skill_content
|
|
353
|
-
↓
|
|
354
|
-
step-06 READS: skill_content
|
|
355
|
-
VALIDATES: agentskills.io spec
|
|
356
|
-
↓
|
|
357
|
-
step-07 READS: skill_content + validation_result
|
|
358
|
-
WRITES: 7 output files
|
|
359
|
-
↓
|
|
360
|
-
step-08 DISPLAYS: compilation summary
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
### Error Handling
|
|
364
|
-
|
|
365
|
-
| Error Type | Response | Pattern |
|
|
366
|
-
|-----------|----------|---------|
|
|
367
|
-
| Missing forge-tier.yaml | Halt: "Run [SF] Setup Forge first" | Hard prerequisite |
|
|
368
|
-
| Missing skill-brief.yaml | Halt: "Run [BS] Brief Skill first, or [QS] Quick Skill" | Hard prerequisite |
|
|
369
|
-
| Tool unavailable | Degrade to lower tier silently | Graceful degradation |
|
|
370
|
-
| Ecosystem check timeout | Skip silently, proceed | Advisory, not blocking |
|
|
371
|
-
| AST extraction file failure | Log warning, skip file, continue | Partial success |
|
|
372
|
-
| Spec validation failure | Report, auto-fix, re-validate | Retry once |
|
|
373
|
-
| File write failure | Halt with specific error | Real error |
|
|
374
|
-
|
|
375
|
-
### Workflow Chaining
|
|
376
|
-
|
|
377
|
-
- Previous: brief-skill (produces skill-brief.yaml) — required
|
|
378
|
-
- Prerequisite: setup-forge (produces forge-tier.yaml) — required
|
|
379
|
-
- Alternative entry: quick-skill bypasses brief, invokes create-skill internally
|
|
380
|
-
- Next recommended: test-skill → export-skill
|
|
381
|
-
|
|
382
|
-
### Subprocess Optimization
|
|
383
|
-
|
|
384
|
-
No high-priority opportunities. Linear pipeline with tool-delegated heavy lifting.
|
|
385
|
-
Low-priority: Pattern 4 could parallelize batch --batch per-brief, not primary use case.
|
|
386
|
-
|
|
387
|
-
---
|
|
388
|
-
|
|
389
|
-
## Step 01 Build Complete
|
|
390
|
-
|
|
391
|
-
**Created:**
|
|
392
|
-
- steps-c/step-01-load-brief.md (~175 lines)
|
|
393
|
-
|
|
394
|
-
**Step Configuration:**
|
|
395
|
-
- Type: Init with Input Discovery (non-continuable)
|
|
396
|
-
- Menu: Auto-proceed (P3) — no user interaction
|
|
397
|
-
- Next Step: step-02-ecosystem-check.md
|
|
398
|
-
|
|
399
|
-
**Key Design Decisions:**
|
|
400
|
-
- Frontmatter references forgeTierFile and extractionPatternsData
|
|
401
|
-
- 6-section mandatory sequence: Load Forge Tier → Discover Skill Brief → Validate Brief Structure → Resolve Source Code Location → Report Initialization → Auto-proceed
|
|
402
|
-
- Handles --batch flag for batch brief discovery
|
|
403
|
-
- Positive capability framing for tier descriptions
|
|
404
|
-
- Required brief fields: name, version, source_repo, language, scope
|
|
405
|
-
- Halt with actionable errors if prerequisites missing
|
|
406
|
-
|
|
407
|
-
## Step 02 Build Complete
|
|
408
|
-
|
|
409
|
-
**Created:**
|
|
410
|
-
- steps-c/step-02-ecosystem-check.md (~110 lines)
|
|
411
|
-
|
|
412
|
-
**Step Configuration:**
|
|
413
|
-
- Type: Middle (Simple) — Conditional Gate
|
|
414
|
-
- Menu: Conditional — auto-proceed if no match, custom [P]/[I]/[A] if match found
|
|
415
|
-
- Next Step: step-03-extract.md
|
|
416
|
-
|
|
417
|
-
**Key Design Decisions:**
|
|
418
|
-
- Advisory, never blocking — tool failures and timeouts are silent skips
|
|
419
|
-
- 5-second timeout on ecosystem queries, 24-hour cache
|
|
420
|
-
- Custom menu only appears when a match is found (not standard A/P/C)
|
|
421
|
-
- Three user options on match: Proceed / Install existing / Abort
|
|
422
|
-
|
|
423
|
-
## Step 03 Build Complete
|
|
424
|
-
|
|
425
|
-
**Created:**
|
|
426
|
-
- steps-c/step-03-extract.md (~170 lines)
|
|
427
|
-
|
|
428
|
-
**Step Configuration:**
|
|
429
|
-
- Type: Middle (Standard) — Gate 2 confirmation
|
|
430
|
-
- Menu: C only after extraction summary presentation
|
|
431
|
-
- Next Step: step-04-enrich.md
|
|
432
|
-
|
|
433
|
-
**Key Design Decisions:**
|
|
434
|
-
- Tier-dependent extraction: Quick (source reading, T1-low) vs Forge/Deep (AST, T1)
|
|
435
|
-
- Graceful degradation if AST tools unavailable at Forge tier
|
|
436
|
-
- Per-file failure handling: skip and continue
|
|
437
|
-
- Extraction inventory with aggregate counts and confidence breakdown
|
|
438
|
-
- Gate 2: user must confirm extraction findings before compilation
|
|
439
|
-
- Zero hallucination — every export must have provenance citation
|
|
440
|
-
|
|
441
|
-
## Step 04 Build Complete
|
|
442
|
-
|
|
443
|
-
**Created:**
|
|
444
|
-
- steps-c/step-04-enrich.md (~115 lines)
|
|
445
|
-
|
|
446
|
-
**Step Configuration:**
|
|
447
|
-
- Type: Middle (Simple) — Conditional auto-proceed
|
|
448
|
-
- Menu: Auto-proceed (P3) — no user interaction
|
|
449
|
-
- Next Step: step-05-compile.md
|
|
450
|
-
|
|
451
|
-
**Key Design Decisions:**
|
|
452
|
-
- Deep tier only — Quick/Forge skip silently with no output
|
|
453
|
-
- QMD searches per function: issues/PRs, changelog, migration/deprecation
|
|
454
|
-
- T2 annotations with temporal classification (T2-past, T2-future)
|
|
455
|
-
- Additive only — never modifies T1 extraction data
|
|
456
|
-
- QMD failures degrade gracefully
|
|
457
|
-
|
|
458
|
-
## Step 05 Build Complete
|
|
459
|
-
|
|
460
|
-
**Created:**
|
|
461
|
-
- steps-c/step-05-compile.md (~175 lines)
|
|
462
|
-
|
|
463
|
-
**Step Configuration:**
|
|
464
|
-
- Type: Middle (Simple) — auto-proceed
|
|
465
|
-
- Menu: Auto-proceed (P3)
|
|
466
|
-
- Next Step: step-06-validate.md
|
|
467
|
-
|
|
468
|
-
**Key Design Decisions:**
|
|
469
|
-
- Loads skill-sections.md data file for agentskills.io format
|
|
470
|
-
- Assembles all 7 content artifacts in context (no file writes)
|
|
471
|
-
- [MANUAL] markers seeded for update-skill compatibility
|
|
472
|
-
- Zero hallucination enforcement — no fabricated examples
|
|
473
|
-
- References grouped by module/file/functional area
|
|
474
|
-
|
|
475
|
-
## Step 06 Build Complete
|
|
476
|
-
|
|
477
|
-
**Created:**
|
|
478
|
-
- steps-c/step-06-validate.md (~120 lines)
|
|
479
|
-
|
|
480
|
-
**Step Configuration:**
|
|
481
|
-
- Type: Middle (Simple) — auto-proceed
|
|
482
|
-
- Menu: Auto-proceed (P3)
|
|
483
|
-
- Next Step: step-07-generate-artifacts.md
|
|
484
|
-
|
|
485
|
-
**Key Design Decisions:**
|
|
486
|
-
- skill-check validation: `check --fix --format json` (schema + frontmatter + quality score + auto-fix + security scan)
|
|
487
|
-
- Auto-fix pattern: validate → fix → re-validate (once per failure)
|
|
488
|
-
- Tool unavailability: skip with warning, not halt
|
|
489
|
-
- Validation failures are warnings — proceed to generation
|
|
490
|
-
- Results recorded in evidence-report content
|
|
491
|
-
|
|
492
|
-
## Step 07 Build Complete
|
|
493
|
-
|
|
494
|
-
**Created:**
|
|
495
|
-
- steps-c/step-07-generate-artifacts.md (~130 lines)
|
|
496
|
-
|
|
497
|
-
**Step Configuration:**
|
|
498
|
-
- Type: Middle (Simple) — auto-proceed
|
|
499
|
-
- Menu: Auto-proceed (P3)
|
|
500
|
-
- Next Step: step-08-report.md
|
|
501
|
-
|
|
502
|
-
**Key Design Decisions:**
|
|
503
|
-
- Creates directory structure: skills/{name}/, forge-data/{name}/
|
|
504
|
-
- Writes all 7 files from compiled content in context
|
|
505
|
-
- Write-only step — no content modification
|
|
506
|
-
- File write failures are real errors (halt, not degrade)
|
|
507
|
-
- Verification step confirms all files exist
|
|
508
|
-
|
|
509
|
-
## Step 08 Build Complete
|
|
510
|
-
|
|
511
|
-
**Created:**
|
|
512
|
-
- steps-c/step-08-report.md (~140 lines)
|
|
513
|
-
|
|
514
|
-
**Step Configuration:**
|
|
515
|
-
- Type: Final — no next step
|
|
516
|
-
- Menu: None (final step)
|
|
517
|
-
- Next Step: N/A
|
|
518
|
-
|
|
519
|
-
**Key Design Decisions:**
|
|
520
|
-
- Forge completion banner: "Skill forged: {name} v{version}"
|
|
521
|
-
- Full compilation summary with confidence distribution table
|
|
522
|
-
- All output file paths listed
|
|
523
|
-
- Next steps: test-skill, export-skill, update-skill
|
|
524
|
-
- Context snippet provided for immediate CLAUDE.md use
|
|
525
|
-
- Batch mode: loop back to step-01 for remaining briefs
|