bmad-module-skill-forge 0.5.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 (149) hide show
  1. package/README.md +4 -3
  2. package/docs/agents.md +12 -5
  3. package/docs/concepts.md +37 -15
  4. package/docs/examples.md +49 -5
  5. package/docs/getting-started.md +43 -17
  6. package/docs/how-it-works.md +115 -90
  7. package/docs/index.md +2 -2
  8. package/docs/workflows.md +89 -41
  9. package/package.json +2 -2
  10. package/src/agents/forger.agent.yaml +18 -6
  11. package/src/forger/README.md +1 -1
  12. package/src/forger/forge-tier.yaml +18 -1
  13. package/src/forger/preferences.yaml +6 -8
  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 +110 -0
  17. package/src/knowledge/confidence-tiers.md +14 -3
  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 -6
  21. package/src/knowledge/progressive-capability.md +15 -6
  22. package/src/knowledge/qmd-registry.md +18 -1
  23. package/src/knowledge/skf-knowledge-index.csv +3 -1
  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 +4 -1
  29. package/src/workflows/README.md +36 -18
  30. package/src/workflows/analyze-source/data/skill-brief-schema.md +18 -5
  31. package/src/workflows/analyze-source/data/unit-detection-heuristics.md +1 -0
  32. package/src/workflows/analyze-source/steps-c/step-01-init.md +4 -4
  33. package/src/workflows/analyze-source/steps-c/step-01b-continue.md +1 -1
  34. package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +1 -1
  35. package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +1 -1
  36. package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +8 -4
  37. package/src/workflows/analyze-source/steps-c/step-05-recommend.md +1 -1
  38. package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +2 -2
  39. package/src/workflows/analyze-source/workflow.md +2 -2
  40. package/src/workflows/audit-skill/data/drift-report-template.md +6 -6
  41. package/src/workflows/audit-skill/data/severity-rules.md +1 -1
  42. package/src/workflows/audit-skill/steps-c/step-01-init.md +3 -2
  43. package/src/workflows/audit-skill/steps-c/step-02-re-index.md +23 -1
  44. package/src/workflows/audit-skill/steps-c/step-04-semantic-diff.md +6 -6
  45. package/src/workflows/audit-skill/workflow.md +3 -2
  46. package/src/workflows/brief-skill/data/scope-templates.md +10 -0
  47. package/src/workflows/brief-skill/data/skill-brief-schema.md +25 -23
  48. package/src/workflows/brief-skill/steps-c/step-01-gather-intent.md +4 -4
  49. package/src/workflows/brief-skill/steps-c/step-02-analyze-target.md +15 -0
  50. package/src/workflows/brief-skill/steps-c/step-05-write-brief.md +3 -0
  51. package/src/workflows/create-skill/data/extraction-patterns.md +37 -1
  52. package/src/workflows/create-skill/data/skill-sections.md +14 -13
  53. package/src/workflows/create-skill/data/source-resolution-protocols.md +1 -1
  54. package/src/workflows/create-skill/steps-c/step-01-load-brief.md +18 -12
  55. package/src/workflows/create-skill/steps-c/step-02-ecosystem-check.md +2 -2
  56. package/src/workflows/create-skill/steps-c/step-02b-ccc-discover.md +157 -0
  57. package/src/workflows/create-skill/steps-c/step-03-extract.md +25 -20
  58. package/src/workflows/create-skill/steps-c/step-03b-fetch-temporal.md +8 -8
  59. package/src/workflows/create-skill/steps-c/step-03c-fetch-docs.md +3 -1
  60. package/src/workflows/create-skill/steps-c/step-04-enrich.md +9 -9
  61. package/src/workflows/create-skill/steps-c/step-05-compile.md +4 -3
  62. package/src/workflows/create-skill/steps-c/step-06-validate.md +3 -3
  63. package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +60 -39
  64. package/src/workflows/create-skill/steps-c/step-08-report.md +26 -11
  65. package/src/workflows/create-skill/workflow.md +3 -3
  66. package/src/workflows/create-stack-skill/data/compose-mode-rules.md +65 -0
  67. package/src/workflows/create-stack-skill/data/stack-skill-template.md +29 -7
  68. package/src/workflows/create-stack-skill/steps-c/step-01-init.md +25 -8
  69. package/src/workflows/create-stack-skill/steps-c/step-02-detect-manifests.md +35 -2
  70. package/src/workflows/create-stack-skill/steps-c/step-03-rank-and-confirm.md +26 -2
  71. package/src/workflows/create-stack-skill/steps-c/step-04-parallel-extract.md +24 -0
  72. package/src/workflows/create-stack-skill/steps-c/step-05-detect-integrations.md +40 -2
  73. package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +5 -1
  74. package/src/workflows/create-stack-skill/steps-c/step-07-generate-output.md +53 -5
  75. package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +4 -4
  76. package/src/workflows/create-stack-skill/steps-c/step-09-report.md +8 -2
  77. package/src/workflows/create-stack-skill/workflow.md +3 -3
  78. package/src/workflows/export-skill/data/managed-section-format.md +8 -1
  79. package/src/workflows/export-skill/data/snippet-format.md +1 -1
  80. package/src/workflows/export-skill/steps-c/step-01-load-skill.md +1 -1
  81. package/src/workflows/export-skill/steps-c/step-02-package.md +1 -1
  82. package/src/workflows/export-skill/steps-c/step-04-update-context.md +7 -2
  83. package/src/workflows/export-skill/steps-c/step-05-token-report.md +1 -1
  84. package/src/workflows/export-skill/workflow.md +3 -1
  85. package/src/workflows/quick-skill/data/skill-template.md +24 -4
  86. package/src/workflows/quick-skill/steps-c/step-02-ecosystem-check.md +1 -3
  87. package/src/workflows/quick-skill/steps-c/step-04-compile.md +26 -6
  88. package/src/workflows/quick-skill/steps-c/step-05-validate.md +1 -1
  89. package/src/workflows/quick-skill/steps-c/step-06-write.md +3 -0
  90. package/src/workflows/quick-skill/workflow.md +1 -1
  91. package/src/workflows/refine-architecture/data/refinement-rules.md +102 -0
  92. package/src/workflows/refine-architecture/steps-c/step-01-init.md +188 -0
  93. package/src/workflows/refine-architecture/steps-c/step-02-gap-analysis.md +179 -0
  94. package/src/workflows/refine-architecture/steps-c/step-03-issue-detection.md +182 -0
  95. package/src/workflows/refine-architecture/steps-c/step-04-improvements.md +169 -0
  96. package/src/workflows/refine-architecture/steps-c/step-05-compile.md +200 -0
  97. package/src/workflows/refine-architecture/steps-c/step-06-report.md +147 -0
  98. package/src/workflows/refine-architecture/workflow.md +61 -0
  99. package/src/workflows/setup-forge/data/tier-rules.md +16 -6
  100. package/src/workflows/setup-forge/steps-c/step-01-detect-and-tier.md +33 -15
  101. package/src/workflows/setup-forge/steps-c/step-01b-ccc-index.md +148 -0
  102. package/src/workflows/setup-forge/steps-c/step-02-write-config.md +29 -12
  103. package/src/workflows/setup-forge/steps-c/step-03-auto-index.md +29 -6
  104. package/src/workflows/setup-forge/steps-c/step-04-report.md +16 -4
  105. package/src/workflows/setup-forge/workflow.md +4 -3
  106. package/src/workflows/test-skill/data/scoring-rules.md +8 -0
  107. package/src/workflows/test-skill/data/source-access-protocol.md +1 -1
  108. package/src/workflows/test-skill/steps-c/step-01-init.md +3 -2
  109. package/src/workflows/test-skill/steps-c/step-02-detect-mode.md +2 -0
  110. package/src/workflows/test-skill/templates/test-report-template.md +3 -0
  111. package/src/workflows/test-skill/workflow.md +2 -2
  112. package/src/workflows/update-skill/steps-c/step-01-init.md +3 -2
  113. package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +2 -2
  114. package/src/workflows/update-skill/steps-c/step-03-re-extract.md +24 -4
  115. package/src/workflows/update-skill/steps-c/step-05-validate.md +7 -11
  116. package/src/workflows/update-skill/steps-c/step-06-write.md +7 -4
  117. package/src/workflows/update-skill/workflow.md +1 -1
  118. package/src/workflows/verify-stack/data/coverage-patterns.md +45 -0
  119. package/src/workflows/verify-stack/data/feasibility-report-template.md +63 -0
  120. package/src/workflows/verify-stack/data/integration-verification-rules.md +73 -0
  121. package/src/workflows/verify-stack/steps-c/step-01-init.md +174 -0
  122. package/src/workflows/verify-stack/steps-c/step-02-coverage.md +181 -0
  123. package/src/workflows/verify-stack/steps-c/step-03-integrations.md +195 -0
  124. package/src/workflows/verify-stack/steps-c/step-04-requirements.md +168 -0
  125. package/src/workflows/verify-stack/steps-c/step-05-synthesize.md +191 -0
  126. package/src/workflows/verify-stack/steps-c/step-06-report.md +197 -0
  127. package/src/workflows/verify-stack/workflow.md +61 -0
  128. package/tools/cli/commands/status.js +2 -1
  129. package/src/workflows/analyze-source/validation-report.md +0 -657
  130. package/src/workflows/analyze-source/workflow-plan-analyze-source.md +0 -385
  131. package/src/workflows/audit-skill/validation-report.md +0 -545
  132. package/src/workflows/audit-skill/workflow-plan-audit-skill.md +0 -318
  133. package/src/workflows/brief-skill/validation-report.md +0 -630
  134. package/src/workflows/brief-skill/workflow-plan-brief-skill.md +0 -360
  135. package/src/workflows/create-skill/validation-report.md +0 -189
  136. package/src/workflows/create-skill/workflow-plan-create-skill.md +0 -523
  137. package/src/workflows/create-stack-skill/validation-report.md +0 -401
  138. package/src/workflows/create-stack-skill/workflow-plan-create-stack-skill.md +0 -481
  139. package/src/workflows/export-skill/validation-report.md +0 -263
  140. package/src/workflows/export-skill/workflow-plan-export-skill.md +0 -369
  141. package/src/workflows/quick-skill/validation-report.md +0 -543
  142. package/src/workflows/quick-skill/workflow-plan-quick-skill.md +0 -405
  143. package/src/workflows/setup-forge/validation-report.md +0 -504
  144. package/src/workflows/setup-forge/workflow-plan-setup-forge.md +0 -428
  145. package/src/workflows/test-skill/validation-report.md +0 -390
  146. package/src/workflows/test-skill/workflow-plan-test-skill.md +0 -292
  147. package/src/workflows/update-skill/data/tier-degradation-rules.md +0 -46
  148. package/src/workflows/update-skill/validation-report.md +0 -559
  149. package/src/workflows/update-skill/workflow-plan-update-skill.md +0 -441
@@ -5,7 +5,7 @@ description: How Skill Forge works — the BMad framework, architecture, output
5
5
 
6
6
  # How It Works
7
7
 
8
- This page is for people who want to understand how SKF works under the hood. It covers the BMad framework, workflow architecture, capability tiers, output format, tool ecosystem, and key design decisions. For plain-English definitions of key terms, see [Concepts](../concepts.md).
8
+ This page is for people who want to understand how SKF works under the hood. It covers the BMad framework, workflow architecture, capability tiers, output format, tool ecosystem, and key design decisions. For definitions of key terms, see [Concepts](../concepts/).
9
9
 
10
10
  ---
11
11
 
@@ -29,13 +29,18 @@ Each workflow directory contains these files, and each has a specific job:
29
29
 
30
30
  | File | What it does | When it loads |
31
31
  |---------------------------|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|
32
- | `forger.agent.yaml` | Expert personaidentity, principles, critical actions, menu of triggers | First always in context |
33
- | `workflow.md` | Human-readable entry point goals, mode menu (Create/Edit/Validate), routes to first step | Second presents mode choice |
34
- | `steps-c/*.md` | **Create** steps — primary execution, 4-9 sequential files | One at a time (just-in-time) |
32
+ | `workflow.md` | Human-readable entry point goals, role definition, initialization sequence, routes to first step | Entry point per workflow |
33
+ | `steps-c/*.md` | **Create** stepsprimary execution, 5–11 sequential files per workflow | One at a time (just-in-time) |
35
34
  | `data/*.md` | Workflow-specific reference data — schemas, heuristics, rules, patterns | Read by steps on demand |
36
35
  | `templates/*.md` | Output skeletons with placeholder vars — steps fill these in to produce the final artifact | Read by steps when generating output |
36
+
37
+ **Module-level shared files** (not per-workflow — loaded by the agent or referenced across workflows):
38
+
39
+ | File | What it does | When it loads |
40
+ |---------------------------|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|
41
+ | `forger.agent.yaml` | Expert persona — identity, principles, critical actions, menu of triggers | First — always in context |
37
42
  | `skf-knowledge-index.csv` | Knowledge fragment index — id, name, tags, tier, file path | Read by steps to decide which fragments to load |
38
- | `knowledge/*.md` | 10 reusable fragments — cross-cutting principles and patterns (e.g., `zero-hallucination.md`, `confidence-tiers.md`) | Selectively read into context when a step directs |
43
+ | `knowledge/*.md` | 12 reusable fragments + overview.md index — cross-cutting principles and patterns (e.g., `zero-hallucination.md`, `confidence-tiers.md`, `ccc-bridge.md`) | Selectively read into context when a step directs |
39
44
 
40
45
  ```mermaid
41
46
  flowchart LR
@@ -44,7 +49,7 @@ flowchart LR
44
49
  W --> S[Step Files: steps-c/]
45
50
  S --> K[Knowledge Fragments<br/>skf-knowledge-index.csv → knowledge/*.md]
46
51
  S --> D[Data & Templates<br/>data/*.md, templates/*.md]
47
- S --> O[Outputs: skills/reports<br/>when a step writes output]
52
+ S --> O[Outputs: skills/, forge-data/, sidecar<br/>when a step writes output]
48
53
  ```
49
54
 
50
55
  ### How It Works at Runtime
@@ -64,39 +69,41 @@ Ferris operates in four workflow-driven modes (mode is determined by which workf
64
69
 
65
70
  | Mode | Workflows | Behavior |
66
71
  |---------------|--------------------|-------------------------------------------------------------|
67
- | **Architect** | SF, AN, BS, CS, QS, SS | Exploratory, assembling — discovers structure and scope |
68
- | **Surgeon** | US | Precise, preservingextracts and compiles with provenance |
69
- | **Audit** | AS, TS | Judgmental, scoring — evaluates quality and detects drift |
70
- | **Delivery** | EX | Packaging, ecosystem-ready bundles for distribution |
72
+ | **Architect** | SF, AN, BS, CS, QS, SS, RA | Exploratory, assembling, refining — discovers structure, scopes skills, and improves architecture |
73
+ | **Surgeon** | US | Precise, semantic diffing preserves [MANUAL] sections during regeneration |
74
+ | **Audit** | AS, TS, VS | Judgmental, scoring — evaluates quality and detects drift |
75
+ | **Delivery** | EX | Validates package, generates snippets, injects into context files |
71
76
 
72
77
  ---
73
78
 
74
79
  ## Why Another Tool?
75
80
 
76
- AI agents hallucinate APIs. Not sometimesconstantly. The table below shows why every existing approach fails at scale:
81
+ AI agents guess API calls from training data. When the training data is wrong, outdated, or incomplete, they hallucinate inventing function names, guessing parameter types, producing code that fails at runtime.
77
82
 
78
- | Approach | Strength | Fatal Flaw |
79
- |----------|----------|------------|
80
- | `npx skills init` | Format compliant | Empty shell. 0% intelligence. |
81
- | LLM Summarization | High semantic context | Hallucination. Guesses parameters. No grounding. |
82
- | RAG / Context stuffing | Good retrieval | Fragmented. Finds snippets, fails to synthesize. |
83
- | Manual Authoring | High initial quality | Drift. Doesn't scale. |
84
- | Copilot/Cursor built-in | Convenient | Generic. Doesn't know YOUR integration patterns. |
85
- | **Skill Forge** | **Structural truth + automation** | **Rigid. (Feature, not bug.)** |
83
+ Several approaches exist to address this, but each has a gap:
86
84
 
87
- SKF solves this by mechanically extracting function signatures, type definitions, and usage patterns from code repositories — and enriching them with documentation and developer discourse — then compiling everything into verifiable, version-pinned skills that comply with the [agentskills.io specification](https://agentskills.io/specification).
85
+ | Approach | What it does well | Where it falls short |
86
+ |----------|-------------------|----------------------|
87
+ | Skill scaffolding (`npx skills init`) | Generates a spec-compliant skill file | The file is empty — you still have to write every instruction by hand |
88
+ | LLM summarization | Understands context and intent | Generates plausible-sounding content that may not match the actual API |
89
+ | RAG / context stuffing | Retrieves relevant code snippets | Returns fragments without synthesis — no coherent skill output |
90
+ | Manual authoring | High initial accuracy | Drifts as the source code changes, doesn't scale across dependencies |
91
+ | IDE built-in context (Copilot, Cursor) | Convenient, zero setup | Uses generic training data, not your project's specific integration patterns |
92
+
93
+ SKF takes a different approach: it mechanically extracts function signatures, type definitions, and usage patterns from source code via AST parsing, enriches them with documentation and developer discourse, then compiles everything into version-pinned skills that comply with the [agentskills.io specification](https://agentskills.io/specification). Every instruction traces to its source — nothing is generated from training data.
88
94
 
89
95
  ---
90
96
 
91
97
  ## Progressive Capability Model
92
98
 
93
- SKF uses an additive tier model. Each tier is the previous tier plus one tool. You never lose capability by adding a tool.
99
+ SKF uses an additive tier model. You never lose capability by adding a tool.
94
100
 
95
- | Tier | Tools | What You Get |
96
- |------|-------|-------------|
97
- | **Quick** | `gh_bridge` + `skill-check` + `tessl` | Source reading + spec validation + content quality review. Best-effort skills in under a minute. |
98
- | **Forge** | + `ast_bridge` | Structural truth. AST-verified signatures. Co-import detection. T1 confidence. |
99
- | **Deep** | + `qmd_bridge` | Knowledge search. Temporal provenance. Drift detection. Full intelligence. |
101
+ | Tier | Required Tools | What You Get |
102
+ |------|---------------|-------------|
103
+ | **Quick** | None (`gh_bridge`, `skill-check`, `tessl` used when available) | Source reading + spec validation + content quality review. Best-effort skills in under a minute. **Note:** Quick Skill (QS) is tier-unaware by design — it always runs at community tier regardless of installed tools. |
104
+ | **Forge** | + `ast_bridge` (ast-grep) | Structural truth. AST-verified signatures. Co-import detection. T1 confidence. |
105
+ | **Forge+** | + `ccc_bridge` (cocoindex-code) | Semantic discovery. CCC pre-ranks files by meaning before AST extraction. Better coverage on large codebases. |
106
+ | **Deep** | `ast_bridge` + `gh_bridge` (gh) + `qmd_bridge` (QMD). CCC optional — enhances when installed. | Knowledge search. Temporal provenance. Drift detection. Full intelligence. |
100
107
 
101
108
  Setup detects your installed tools and sets your tier automatically:
102
109
 
@@ -105,10 +112,10 @@ Setup detects your installed tools and sets your tier automatically:
105
112
  ```
106
113
 
107
114
  ```
108
- Forge initialized. Tools: gh, ast-grep, QMD. Tier: Deep. Ready.
115
+ Forge initialized. Tools: gh, ast-grep, ccc, QMD. Tier: Deep. Ready.
109
116
  ```
110
117
 
111
- Don't have ast-grep or QMD yet? No problem — Quick mode works with just the GitHub CLI. Install tools later; your tier upgrades automatically.
118
+ Don't have ast-grep, cocoindex-code, or QMD yet? No problem — Quick mode works with no additional tools. Optional GitHub CLI improves source access. Install tools later; your tier upgrades automatically.
112
119
 
113
120
  ### Tier Override — Comparing Output Across Tiers
114
121
 
@@ -128,10 +135,13 @@ This is useful for comparing skill quality across tiers for the same target:
128
135
  # 2. Change to tier_override: Forge
129
136
  @Ferris CS # recompile at Forge tier — compare output
130
137
 
131
- # 3. Reset to tier_override: ~ (auto-detect)
138
+ # 3. Change to tier_override: Forge+
139
+ @Ferris CS # recompile with semantic discovery — compare coverage
140
+
141
+ # 4. Reset to tier_override: ~ (auto-detect)
132
142
  ```
133
143
 
134
- Set `tier_override` to `Quick`, `Forge`, or `Deep`. Set to `~` (null) to return to auto-detection. The override is respected by all tier-aware workflows (CS, SS, US, AS, TS).
144
+ Set `tier_override` to `Quick`, `Forge`, `Forge+`, or `Deep`. Set to `~` (null) to return to auto-detection. The override is respected by all tier-aware workflows (CS, SS, US, AS, TS).
135
145
 
136
146
  ---
137
147
 
@@ -142,7 +152,8 @@ Every claim in a generated skill carries a confidence tier that traces to its so
142
152
  | Tier | Source | Tool | What It Means |
143
153
  |------|--------|------|---------------|
144
154
  | **T1** | AST extraction | `ast_bridge` | Current code, structurally verified. Immutable for that version. |
145
- | **T2** | QMD evidence / source reading | `qmd_bridge` / `gh_bridge` | Historical + planned context (issues, PRs, changelogs, docs). |
155
+ | **T1-low** | Source reading | `gh_bridge` | Source-read without AST verification. Location correct, signature may be inferred. |
156
+ | **T2** | QMD evidence | `qmd_bridge` | Historical + planned context (issues, PRs, changelogs, docs). |
146
157
  | **T3** | External documentation | `doc_fetcher` | External, untrusted. Quarantined. |
147
158
 
148
159
  ### Temporal Provenance
@@ -157,7 +168,7 @@ Progressive disclosure controls how much context surfaces at each level:
157
168
 
158
169
  | Output | Content |
159
170
  |--------|---------|
160
- | `context-snippet.md` | T1-now only — compressed, always-on |
171
+ | `context-snippet.md` | T1-now + T2-future gotchas (breaking changes, deprecation warnings) — compressed, always-on |
161
172
  | `SKILL.md` | T1-now + lightweight T2 annotations |
162
173
  | `references/` | Full temporal context with all tiers |
163
174
 
@@ -165,11 +176,12 @@ Progressive disclosure controls how much context surfaces at each level:
165
176
 
166
177
  Your forge tier limits what authority claims a skill can make:
167
178
 
168
- | Forge Tier | AST? | QMD? | Max Authority | Accuracy Guarantee |
169
- |-----------|------|------|---------------|-------------------|
170
- | Quick | No | No | `community` | Best-effort |
171
- | Forge | Yes | No | `official` | Structural (AST-verified) |
172
- | Deep | Yes | Yes | `official` | Full (structural + contextual + temporal) |
179
+ | Forge Tier | AST? | CCC? | QMD? | Max Authority | Accuracy Guarantee |
180
+ |-----------|------|------|------|---------------|-------------------|
181
+ | Quick | No | No | No | `community` | Best-effort |
182
+ | Forge | Yes | No | No | `official` | Structural (AST-verified) |
183
+ | Forge+ | Yes | Yes | No | `official` | Structural + semantic discovery |
184
+ | Deep | Yes | opt. (enhances when installed) | Yes | `official` | Full (structural + contextual + temporal) |
173
185
 
174
186
  ---
175
187
 
@@ -184,32 +196,42 @@ skills/{name}/
184
196
  ├── SKILL.md # Active skill (loaded on trigger)
185
197
  ├── context-snippet.md # Passive context (compressed, always-on)
186
198
  ├── metadata.json # Machine-readable provenance
187
- └── references/ # Progressive disclosure
188
- ├── {function-a}.md
189
- ├── {function-b}.md
190
- └── integrations/ # Stack skills only
191
- ├── auth-db.md
192
- └── pwa-auth.md
199
+ ├── references/ # Progressive disclosure
200
+ ├── {function-a}.md
201
+ │ └── {function-b}.md
202
+ ├── scripts/ # Executable automation (when detected in source)
203
+ │ └── {script-name}.sh
204
+ └── assets/ # Templates, schemas, configs (when detected in source)
205
+ └── {asset-name}.json
193
206
  ```
194
207
 
208
+ The `scripts/` and `assets/` directories are optional — only created when the source repository contains executable scripts or static assets matching detection heuristics. Each file traces to its source via `[SRC:file:L1]` provenance citations with SHA-256 content hashes for drift detection. User-authored files go in `scripts/[MANUAL]/` or `assets/[MANUAL]/` subdirectories and are preserved during updates.
209
+
195
210
  ### SKILL.md Format
196
211
 
197
212
  Skills follow the [agentskills.io specification](https://agentskills.io/specification) with frontmatter:
198
213
 
199
214
  ```yaml
200
215
  ---
201
- name: payment-service
202
- version: 2.1.0
203
- description: Payment processing API skill 23 verified functions
204
- author: org/payment-team
216
+ name: cognee
217
+ description: >
218
+ Use when cognee is a Python AI memory engine that transforms documents into
219
+ knowledge graphs with vector and graph storage for semantic search and
220
+ reasoning. Use this skill when writing code that calls cognee's Python API
221
+ (add, cognify, search, memify, config, datasets, prune, session) or
222
+ integrating cognee-mcp. Covers the full public API, SearchType modes,
223
+ DataPoint custom models, pipeline tasks, and configuration for
224
+ LLM/embedding/vector/graph providers. Do NOT use for general knowledge graph
225
+ theory or unrelated Python libraries.
205
226
  ---
206
227
  ```
207
228
 
208
229
  Every instruction in the body traces to source:
209
230
 
210
- ```
211
- Extracted: `getToken(userId: string, options?: TokenOptions): Promise<AuthToken>`
212
- [AST:src/auth/index.ts:L42]. Confidence: T1.
231
+ ```python
232
+ await cognee.search( # [AST:cognee/api/v1/search/search.py:L26]
233
+ query_text="What does Cognee do?"
234
+ )
213
235
  ```
214
236
 
215
237
  ### metadata.json — The Birth Certificate
@@ -218,26 +240,32 @@ Machine-readable provenance for every skill:
218
240
 
219
241
  ```json
220
242
  {
221
- "name": "payment-service",
222
- "version": "2.1.0",
223
- "skill_type": "individual",
224
- "source_authority": "official",
225
- "source_repo": "github.com/org/payment-service",
226
- "source_commit": "a1b2c3d",
227
- "forge_tier": "forge",
243
+ "name": "cognee",
244
+ "version": "0.5.5",
245
+ "skill_type": "single",
246
+ "source_authority": "community",
247
+ "source_repo": "https://github.com/topoteretes/cognee",
248
+ "source_root": "cognee/",
249
+ "source_commit": null,
250
+ "confidence_tier": "Deep",
228
251
  "spec_version": "1.3",
229
- "generated_at": "2026-02-25T14:30:00Z",
252
+ "generation_date": "2026-03-20T16:55:00+04:00",
230
253
  "stats": {
231
- "exports_documented": 23,
232
- "exports_total": 23,
233
- "coverage": 1.0,
234
- "confidence_t1": 20,
235
- "confidence_t2": 3,
236
- "confidence_t3": 0
254
+ "exports_documented": 22,
255
+ "exports_public_api": 22,
256
+ "exports_internal": 815,
257
+ "exports_total": 837,
258
+ "public_api_coverage": 1.0,
259
+ "total_coverage": 0.026,
260
+ "confidence_t1": 837,
261
+ "confidence_t2": 14,
262
+ "confidence_t3": 10
237
263
  }
238
264
  }
239
265
  ```
240
266
 
267
+ `scripts` and `assets` arrays are optional — omitted entirely (not empty) when the source has no scripts or assets.
268
+
241
269
  ### Stack Skill Output
242
270
 
243
271
  Stack skills map how your dependencies interact — shared types, co-import patterns, integration points:
@@ -261,37 +289,28 @@ The primary source is your project repo. Component references trace to library r
261
289
 
262
290
  ## Dual-Output Strategy
263
291
 
264
- Based on [Vercel research](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals): passive context (AGENTS.md/CLAUDE.md) achieves 100% pass rate vs 53% for active skills alone.
292
+ Based on [Vercel research](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals): passive context (AGENTS.md/CLAUDE.md) achieves 100% pass rate vs 79% for active skills alone.
265
293
 
266
294
  Every skill generates both:
267
295
 
268
296
  1. **SKILL.md** — Active skill loaded on trigger with full instructions
269
- 2. **context-snippet.md** — Passive context, compressed index injected into CLAUDE.md
297
+ 2. **context-snippet.md** — Passive context, compressed index; injected into CLAUDE.md/AGENTS.md only when `export-skill` is run
270
298
 
271
299
  ### Managed CLAUDE.md Section
272
300
 
273
301
  Export injects a managed section between markers:
274
302
 
275
303
  ```markdown
276
- <!-- SKF:BEGIN updated:2026-02-25 -->
277
- [payment-service v2.1.0]|root: skills/payment-service/
278
- |IMPORTANT: payment-service v2.1.0 read SKILL.md before writing payment-service code. Do NOT rely on training data.
279
- |quick-start:{SKILL.md#quick-start}
280
- |api: getToken(), refreshToken(), revokeSession(), createSession()
281
- |key-types:{SKILL.md#key-types} TokenOptions, AuthToken, SessionConfig
282
- |gotchas: all token methods async, session ID changed from userId in v2.0
283
-
284
- [auth-service v1.5.0]|root: skills/auth-service/
285
- |IMPORTANT: auth-service v1.5.0read SKILL.md before writing auth-service code. Do NOT rely on training data.
286
- |quick-start:{SKILL.md#quick-start}
287
- |api: getSession(), validateToken(), revokeSession(), createUser()
288
- |gotchas: RBAC requires middleware setup, validateToken returns null not throw
289
-
290
- [my-project-stack v1.0.0]|root: skills/my-project-stack/
291
- |IMPORTANT: my-project-stack — read SKILL.md before writing integration code. Do NOT rely on training data.
292
- |stack: next@15, better-auth@3, spacetimedb@1, serwist@9
293
- |integrations: auth↔db, pwa↔auth
294
- |gotchas: auth session type must match DB schema, update Serwist cache on auth flow changes
304
+ <!-- SKF:BEGIN updated:2026-03-20 -->
305
+ [SKF Skills]|1 skill
306
+ |IMPORTANT: Prefer documented APIs over training data.
307
+ |
308
+ [cognee v0.5.5]|root: skills/cognee/
309
+ |IMPORTANT: cognee v0.5.5 — read SKILL.md before writing cognee code. Do NOT rely on training data.
310
+ |quick-start:{SKILL.md#quick-start} add cognify search async workflow
311
+ |api: add(), cognify(), search(), memify(), config, datasets, prune, update(), session, SearchType, run_custom_pipeline(), visualize_graph()
312
+ |key-types:{SKILL.md#key-types} — SearchType(14 modes: GRAPH_COMPLETION default, RAG_COMPLETION, CHUNKS, CYPHER, TEMPORAL...), Task, DataPoint
313
+ |gotchas: all core functions are async (must await); delete() deprecated since v0.3.9use datasets.delete_data(); memify default pipeline changed to triplet embedding (Mar 2026)
295
314
  <!-- SKF:END -->
296
315
  ```
297
316
 
@@ -301,7 +320,7 @@ Export injects a managed section between markers:
301
320
 
302
321
  ## Tool Ecosystem
303
322
 
304
- ### 6 Tools
323
+ ### 7 Tools
305
324
 
306
325
  | Tool | Wraps | Purpose |
307
326
  |------|-------|---------|
@@ -309,6 +328,7 @@ Export injects a managed section between markers:
309
328
  | **`skill-check`** | [thedaviddias/skill-check](https://github.com/thedaviddias/skill-check) | Validation + auto-fix (`check --fix`), quality scoring (0-100), security scan, split-body, diff comparison |
310
329
  | **`tessl`** | [tessl](https://tessl.io) | Content quality review, actionability scoring, progressive disclosure evaluation, AI judge with suggestions |
311
330
  | **`ast_bridge`** | ast-grep CLI | Structural extraction, custom AST queries, co-import detection |
331
+ | **`ccc_bridge`** | cocoindex-code | Semantic code search, project indexing, file discovery pre-ranking |
312
332
  | **`qmd_bridge`** | QMD (local search) | BM25 keyword search, vector semantic search, collection indexing |
313
333
  | **`doc_fetcher`** | Environment web tools | Remote documentation fetching for T3-confidence content. Tool-agnostic — uses whatever web fetching is available (Firecrawl, WebFetch, curl, etc.). Output quarantined as T3. |
314
334
 
@@ -319,6 +339,7 @@ When tools disagree, higher priority wins for instructions. Lower priority is pr
319
339
  | Priority | Source | Tool |
320
340
  |----------|--------|------|
321
341
  | 1 (highest) | AST extraction | `ast_bridge` |
342
+ | 1b | CCC discovery (pre-ranking) | `ccc_bridge` |
322
343
  | 2 | QMD evidence | `qmd_bridge` |
323
344
  | 3 | Source reading (non-AST) | `gh_bridge` |
324
345
  | 4 | External documentation | `doc_fetcher` |
@@ -344,6 +365,8 @@ forge-data/{skill-name}/
344
365
  └── extraction-rules.yaml # Language-specific ast-grep schema
345
366
  ```
346
367
 
368
+ The `provenance-map.json` includes a `file_entries` array for script/asset file-level provenance (SHA-256 hashes, source paths) alongside the export-level `entries` array.
369
+
347
370
  `skills/` and `forge-data/` are committed. Agent memory (`_bmad/_memory/forger-sidecar/`) is gitignored.
348
371
 
349
372
  ---
@@ -366,10 +389,10 @@ Provenance maps enable verification: an `official` skill's provenance must trace
366
389
  |----------|-----------|
367
390
  | **Solo agent (Ferris), not multi-agent** | One domain (skill compilation) doesn't benefit from handoffs. Shared knowledge base (AST patterns, provenance maps) is the core asset. |
368
391
  | **Workflows drive modes, not conversation** | Ferris doesn't auto-switch based on question content. Invoke a workflow to change mode. Predictable behavior. |
369
- | **Hub-and-spoke cross-knowledge** | Each skill has one primary source. Cross-repo references use inline summary + pointer + `[XREF:repo:file:line]` provenance tag. |
392
+ | **Hub-and-spoke cross-knowledge** | Each skill covers one source repository. Stack skills compose cross-library integration patterns in `references/integrations/`, citing each library's own skill. |
370
393
  | **Stack skill = compositional** | SKILL.md is the integration layer. references/ contains per-library + integration pairs. Partial regeneration on dependency updates. |
371
- | **Snippet updates only at export** | Create/update are draft operations. Export publishes to skills/ and CLAUDE.md. No half-baked snippets. |
372
- | **Bundle spec with opt-in update** | Offline-capable. 90-day staleness warning. `setup-forge --update-spec` fetches latest. |
394
+ | **Snippet updates only at export** | Create/update write a draft `context-snippet.md` to `skills/`. Export regenerates the final `context-snippet.md` and publishes it to the platform context file (CLAUDE.md/AGENTS.md/.cursorrules). No managed-section updates in draft workflows. |
395
+ | **Bundle spec with opt-in update** | Offline-capable. Run `@Ferris SF --update-spec` to fetch the latest agentskills.io spec on demand. |
373
396
 
374
397
  ---
375
398
 
@@ -396,7 +419,7 @@ src/
396
419
  │ └── README.md
397
420
  ├── knowledge/
398
421
  │ ├── skf-knowledge-index.csv
399
- │ └── *.md (10 fragments)
422
+ │ └── *.md (12 knowledge fragments + overview.md index)
400
423
  └── workflows/
401
424
  ├── setup-forge/
402
425
  ├── analyze-source/
@@ -404,6 +427,8 @@ src/
404
427
  ├── create-skill/
405
428
  ├── quick-skill/
406
429
  ├── create-stack-skill/
430
+ ├── verify-stack/
431
+ ├── refine-architecture/
407
432
  ├── update-skill/
408
433
  ├── audit-skill/
409
434
  ├── test-skill/
package/docs/index.md CHANGED
@@ -17,7 +17,7 @@ hero:
17
17
 
18
18
  ## What does Skill Forge do?
19
19
 
20
- AI agents hallucinate API calls. They invent function names, guess parameter types, and produce code that doesn't compile. Skill Forge fixes this by analyzing code repositories, documentation, and developer discourse — extracting real signatures and patterns and compiling them into verified instruction files that any AI agent can follow. Every instruction traces back to where it came from.
20
+ AI agents hallucinate API calls. They invent function names, guess parameter types, and produce code that doesn't compile. Skill Forge fixes this by analyzing code repositories, documentation, and developer discourse — extracting real signatures and patterns and compiling them into verified instruction files that any AI agent can follow. Every instruction traces back to where it came from. Generated skills can also include executable scripts and static assets extracted from the source repository, each with full provenance tracking.
21
21
 
22
22
  ## Quick Install
23
23
 
@@ -41,7 +41,7 @@ See the [Getting Started](./getting-started/) guide for full installation and us
41
41
  - **[Getting Started](./getting-started/)** — Installation, prerequisites, and your first skill
42
42
  - **[Concepts](./concepts/)** — Plain-English definitions of key terms (provenance, tiers, drift, and more)
43
43
  - **[How It Works](./how-it-works/)** — Architecture, capability model, output format, and design decisions
44
- - **[Workflows](./workflows/)** — All 10 workflows with commands and connection diagrams
44
+ - **[Workflows](./workflows/)** — All 12 workflows with commands and connection diagrams
45
45
  - **[Agents](./agents/)** — Ferris: the AI agent that runs all SKF workflows
46
46
  - **[Examples](./examples/)** — Real-world scenarios, tips, and troubleshooting
47
47
 
package/docs/workflows.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  title: Workflows
3
- description: All 10 SKF workflows with commands, steps, and connection diagram
3
+ description: All 12 SKF workflows with commands, steps, and connection diagram
4
4
  ---
5
5
 
6
6
  # Workflows Reference
7
7
 
8
- SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.md), the AI agent that runs everything. Each workflow handles a specific part of the skill lifecycle — from analyzing source code to packaging for distribution. If any terms are unfamiliar, see the [Concepts](../concepts.md) page for plain-English definitions.
8
+ SKF has 12 workflows. You trigger them by typing commands to [Ferris](../agents/), the AI agent that runs everything. Each workflow handles a specific part of the skill lifecycle — from analyzing source code to packaging for distribution. If any terms are unfamiliar, see the [Concepts](../concepts/) page for definitions.
9
9
 
10
10
  ---
11
11
 
@@ -15,11 +15,11 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
15
15
 
16
16
  **Command:** `@Ferris SF`
17
17
 
18
- **Purpose:** Initialize forge environment, detect tools, set capability tier, verify QMD collection health.
18
+ **Purpose:** Initialize forge environment, detect tools (ast-grep, ccc, gh, qmd), set capability tier, index project in CCC (Forge+), verify QMD collection health (Deep).
19
19
 
20
20
  **When to Use:** First time using SKF in a project. Run once per project.
21
21
 
22
- **Key Steps:** Detect tools Determine tier → Write forge-tier.yaml → QMD hygiene (Deep)
22
+ **Key Steps:** Detect tools + Determine tier → CCC index check (Forge+) → Write forge-tier.yaml → QMD + CCC registry hygiene (Deep/Forge+) → Status report
23
23
 
24
24
  **Agent:** Ferris (Architect mode)
25
25
 
@@ -33,7 +33,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
33
33
 
34
34
  **When to Use:** Before `Create Skill` when you want maximum control over what gets compiled.
35
35
 
36
- **Key Steps:** Gather intent → Analyze target → Define scope → Write skill-brief.yaml
36
+ **Key Steps:** Gather intent → Analyze target → Define scope → Confirm brief → Write skill-brief.yaml
37
37
 
38
38
  **Agent:** Ferris (Architect mode)
39
39
 
@@ -47,7 +47,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
47
47
 
48
48
  **When to Use:** After Brief Skill, or with an existing skill-brief.yaml.
49
49
 
50
- **Key Steps:** Load brief → Ecosystem check → AST extract → QMD enrich → Compile → Validate → Generate
50
+ **Key Steps:** Load brief → Ecosystem check → Extract (AST + scripts/assets) → QMD enrich (Deep) → Compile → Validate → Generate
51
51
 
52
52
  **Agent:** Ferris (Architect mode)
53
53
 
@@ -61,7 +61,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
61
61
 
62
62
  **When to Use:** After source code changes when an existing skill needs updating.
63
63
 
64
- **Key Steps:** Load existing → Detect changes → Re-extract → Merge (preserve MANUAL) → Validate → Write
64
+ **Key Steps:** Load existing → Detect changes (incl. scripts/assets) → Re-extract → Merge (preserve MANUAL) → Validate → Write → Report
65
65
 
66
66
  **Agent:** Ferris (Surgeon mode)
67
67
 
@@ -87,11 +87,13 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
87
87
 
88
88
  **Command:** `@Ferris SS`
89
89
 
90
- **Purpose:** Consolidated project stack skill with integration patterns.
90
+ **Purpose:** Consolidated project stack skill with integration patterns. Supports two modes: **code-mode** (analyzes a codebase) and **compose-mode** (synthesizes from existing skills + architecture document, no codebase required).
91
91
 
92
- **When to Use:** When you want your agent to understand your entire project stack — not just individual libraries.
92
+ **When to Use:** When you want your agent to understand your entire project stack — not just individual libraries. Use code-mode for existing projects; compose-mode activates automatically after the VS → RA verification path when skills exist but no codebase is present.
93
93
 
94
- **Key Steps:** Detect manifests → Rank dependencies → Scope confirmation → Parallel extract → Detect integrations → Compile stack → Generate references
94
+ **Key Steps (code-mode):** Detect manifests → Rank dependencies → Scope confirmation → Parallel extract → Detect integrations → Compile stack → Generate references
95
+
96
+ **Key Steps (compose-mode):** Load existing skills → Confirm scope → Detect integrations from architecture doc → Compile stack → Generate references
95
97
 
96
98
  **Agent:** Ferris (Architect mode)
97
99
 
@@ -105,7 +107,9 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
105
107
 
106
108
  **When to Use:** Brownfield onboarding of large repos or multi-service projects.
107
109
 
108
- **Key Steps:** Scan project → Identify units → Map exports Detect integrations → Recommend → Generate briefs
110
+ **Key Steps:** Init → Scan project → Identify units → Map exports & detect integrations → Recommend → Generate briefs
111
+
112
+ **Note:** Supports resume — if the session is interrupted mid-analysis, re-run `@Ferris AN` and Ferris will resume from where it left off.
109
113
 
110
114
  **Agent:** Ferris (Architect mode)
111
115
 
@@ -119,7 +123,7 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
119
123
 
120
124
  **When to Use:** To check if a skill has fallen out of date with its source code.
121
125
 
122
- **Key Steps:** Load skill → Re-index source → Structural diff → Semantic diff (Deep) → Classify severity → Report
126
+ **Key Steps:** Load skill → Re-index source → Structural diff (incl. script/asset drift) → Semantic diff (Deep) → Classify severity → Report
123
127
 
124
128
  **Agent:** Ferris (Audit mode)
125
129
 
@@ -133,23 +137,53 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
133
137
 
134
138
  **When to Use:** After creating or updating a skill, before exporting.
135
139
 
136
- **Key Steps:** Load skill → Detect mode → Coverage check → Coherence check → Score → Gap report
140
+ **Key Steps:** Load skill → Detect mode → Coverage check → Coherence check → External validation (skill-check, tessl) → Score → Gap report
141
+
142
+ **Agent:** Ferris (Audit mode)
143
+
144
+ ---
145
+
146
+ ## Architecture Verification Workflows
147
+
148
+ ### Verify Stack (VS)
149
+
150
+ **Command:** `@Ferris VS`
151
+
152
+ **Purpose:** Pre-code stack feasibility verification. Cross-references generated skills against architecture and PRD documents with three passes: coverage, integration compatibility, and requirements.
153
+
154
+ **When to Use:** After generating individual skills with CS/QS, before building a stack skill — to verify the tech stack can support the architecture.
155
+
156
+ **Key Steps:** Load skills + docs → Coverage analysis → Integration verification → Requirements check → Synthesize verdict → Present report
137
157
 
138
158
  **Agent:** Ferris (Audit mode)
139
159
 
140
160
  ---
141
161
 
162
+ ### Refine Architecture (RA)
163
+
164
+ **Command:** `@Ferris RA`
165
+
166
+ **Purpose:** Evidence-backed architecture improvement. Takes the original architecture doc + generated skills + optional VS report, fills gaps, flags contradictions, and suggests improvements — all citing specific APIs.
167
+
168
+ **When to Use:** After VS confirms feasibility, before running SS in compose-mode. Produces a refined architecture ready for stack skill composition.
169
+
170
+ **Key Steps:** Load inputs → Gap analysis → Issue detection → Improvement detection → Compile refined doc → Present report
171
+
172
+ **Agent:** Ferris (Architect mode)
173
+
174
+ ---
175
+
142
176
  ## Utility Workflows
143
177
 
144
178
  ### Export Skill (EX)
145
179
 
146
180
  **Command:** `@Ferris EX`
147
181
 
148
- **Purpose:** Package for distribution + platform-aware context injection into CLAUDE.md/AGENTS.md.
182
+ **Purpose:** Validate package structure, generate context snippets, and inject managed sections into CLAUDE.md/AGENTS.md/.cursorrules.
149
183
 
150
- **When to Use:** When a skill is ready for distribution or CLAUDE.md integration.
184
+ **When to Use:** When a skill is ready for CLAUDE.md/AGENTS.md integration. Also provides distribution instructions for `npx skills publish`.
151
185
 
152
- **Key Steps:** Load skill → Package → Generate snippet → Update CLAUDE.md → Token report → Summary
186
+ **Key Steps:** Load skill → Validate package → Generate snippet → Update context file (CLAUDE.md/AGENTS.md/.cursorrules) → Token report → Summary
153
187
 
154
188
  **Agent:** Ferris (Delivery mode)
155
189
 
@@ -157,34 +191,48 @@ SKF has 10 workflows. You trigger them by typing commands to [Ferris](../agents.
157
191
 
158
192
  ## Workflow Connections
159
193
 
194
+ **Standard path (code-mode):**
195
+
196
+ ```mermaid
197
+ flowchart TD
198
+ SF[Setup Forge — one-time] --> AN[Analyze Source]
199
+ SF --> QS[Quick Skill]
200
+ SF --> SS_code[Stack Skill — code-mode]
201
+
202
+ AN --> BS[Brief Skill]
203
+ BS --> CS[Create Skill]
204
+ AN -->|direct| CS
205
+
206
+ CS --> TS[Test Skill — quality gate]
207
+ QS --> TS
208
+ SS_code --> TS
209
+
210
+ TS --> EX[Export Skill]
211
+ TS --> AS[Audit Skill]
212
+ AS --> US[Update Skill]
213
+ US --> TS
160
214
  ```
161
- setup-forge (one-time)
162
-
163
- ┌──────────────┼──────────────┐
164
- │ │ │
165
- analyze-source quick-skill create-stack-skill
166
- │ │ │
167
- brief-skill │ │
168
- │ │ │
169
- create-skill │ │
170
- │ │ │
171
- └──────┬───────┘──────────────┘
172
-
173
- test-skill (quality gate)
174
-
175
- ┌──────┼──────┐
176
- │ │
177
- export-skill audit-skill
178
-
179
- update-skill (loops back to test)
215
+
216
+ **Pre-code verification path (compose-mode):**
217
+
218
+ ```mermaid
219
+ flowchart TD
220
+ GEN["Create Skill | Quick Skill ×N<br/>(per library)"] --> VS[Verify Stack — feasibility report]
221
+ VS --> RA[Refine Architecture — refined doc]
222
+ RA --> SS_compose[Stack Skill — compose-mode]
223
+ SS_compose --> TS[Test Skill]
224
+ TS --> EX[Export Skill]
180
225
  ```
181
226
 
182
227
  ---
183
228
 
184
- ## Build Priority
229
+ ## Workflow Categories
185
230
 
186
- | Phase | Workflows | Notes |
187
- |-------|-----------|-------|
188
- | 1a (Core Engine) | setup-forge, create-skill, test-skill, export-skill | Must build first |
189
- | 1b (Entry Points) | quick-skill, brief-skill, create-stack-skill | Complete v1.0 |
190
- | 2 (Lifecycle) | audit-skill, update-skill, analyze-source | Post-launch |
231
+ | Category | Workflows | Description |
232
+ |----------|-----------|-------------|
233
+ | Core | SF, BS, CS, US | Setup, brief, create, and update skills |
234
+ | Feature | QS, SS, AN | Quick skill, stack skill, and analyze source |
235
+ | Quality | AS, TS | Audit skill completeness and test skill accuracy |
236
+ | Architecture Verification | VS, RA | Pre-code architecture feasibility and refinement |
237
+ | Utility | EX | Package and export for consumption |
238
+ | In-Agent | WS, KI | WS: show lifecycle position, active briefs, and forge tier; KI: list knowledge fragments (both in-agent, no file-based workflow) |