bmad-module-skill-forge 0.2.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.
- package/.nvmrc +1 -0
- package/LICENSE +26 -0
- package/README.md +213 -0
- package/docs/404.md +20 -0
- package/docs/agents.md +73 -0
- package/docs/architecture.md +301 -0
- package/docs/examples.md +144 -0
- package/docs/getting-started.md +198 -0
- package/docs/index.md +75 -0
- package/docs/workflows.md +190 -0
- package/package.json +109 -0
- package/src/agents/forger.agent.yaml +93 -0
- package/src/forger/README.md +17 -0
- package/src/forger/forge-tier.yaml +13 -0
- package/src/forger/preferences.yaml +10 -0
- package/src/knowledge/agentskills-spec.md +158 -0
- package/src/knowledge/confidence-tiers.md +153 -0
- package/src/knowledge/manual-section-integrity.md +156 -0
- package/src/knowledge/overview.md +56 -0
- package/src/knowledge/progressive-capability.md +120 -0
- package/src/knowledge/provenance-tracking.md +163 -0
- package/src/knowledge/skf-knowledge-index.csv +9 -0
- package/src/knowledge/skill-lifecycle.md +150 -0
- package/src/knowledge/zero-hallucination.md +101 -0
- package/src/module-help.csv +12 -0
- package/src/module.yaml +22 -0
- package/src/workflows/README.md +148 -0
- package/src/workflows/analyze-source/data/skill-brief-schema.md +75 -0
- package/src/workflows/analyze-source/data/unit-detection-heuristics.md +88 -0
- package/src/workflows/analyze-source/steps-c/step-01-init.md +191 -0
- package/src/workflows/analyze-source/steps-c/step-01b-continue.md +144 -0
- package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +208 -0
- package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +199 -0
- package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +222 -0
- package/src/workflows/analyze-source/steps-c/step-05-recommend.md +236 -0
- package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +239 -0
- package/src/workflows/analyze-source/templates/analysis-report-template.md +41 -0
- package/src/workflows/analyze-source/validation-report.md +657 -0
- package/src/workflows/analyze-source/workflow-plan-analyze-source.md +385 -0
- package/src/workflows/analyze-source/workflow.md +61 -0
- package/src/workflows/audit-skill/data/drift-report-template.md +62 -0
- package/src/workflows/audit-skill/data/severity-rules.md +52 -0
- package/src/workflows/audit-skill/steps-c/step-01-init.md +195 -0
- package/src/workflows/audit-skill/steps-c/step-02-re-index.md +191 -0
- package/src/workflows/audit-skill/steps-c/step-03-structural-diff.md +194 -0
- package/src/workflows/audit-skill/steps-c/step-04-semantic-diff.md +199 -0
- package/src/workflows/audit-skill/steps-c/step-05-severity-classify.md +210 -0
- package/src/workflows/audit-skill/steps-c/step-06-report.md +217 -0
- package/src/workflows/audit-skill/validation-report.md +545 -0
- package/src/workflows/audit-skill/workflow-plan-audit-skill.md +318 -0
- package/src/workflows/audit-skill/workflow.md +63 -0
- package/src/workflows/brief-skill/data/skill-brief-schema.md +82 -0
- package/src/workflows/brief-skill/steps-c/step-01-gather-intent.md +184 -0
- package/src/workflows/brief-skill/steps-c/step-02-analyze-target.md +203 -0
- package/src/workflows/brief-skill/steps-c/step-03-scope-definition.md +225 -0
- package/src/workflows/brief-skill/steps-c/step-04-confirm-brief.md +185 -0
- package/src/workflows/brief-skill/steps-c/step-05-write-brief.md +156 -0
- package/src/workflows/brief-skill/validation-report.md +630 -0
- package/src/workflows/brief-skill/workflow-plan-brief-skill.md +360 -0
- package/src/workflows/brief-skill/workflow.md +57 -0
- package/src/workflows/create-skill/data/extraction-patterns.md +63 -0
- package/src/workflows/create-skill/data/skill-sections.md +166 -0
- package/src/workflows/create-skill/steps-c/step-01-load-brief.md +176 -0
- package/src/workflows/create-skill/steps-c/step-02-ecosystem-check.md +143 -0
- package/src/workflows/create-skill/steps-c/step-03-extract.md +184 -0
- package/src/workflows/create-skill/steps-c/step-04-enrich.md +152 -0
- package/src/workflows/create-skill/steps-c/step-05-compile.md +198 -0
- package/src/workflows/create-skill/steps-c/step-06-validate.md +162 -0
- package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +165 -0
- package/src/workflows/create-skill/steps-c/step-08-report.md +160 -0
- package/src/workflows/create-skill/validation-report.md +189 -0
- package/src/workflows/create-skill/workflow-plan-create-skill.md +491 -0
- package/src/workflows/create-skill/workflow.md +52 -0
- package/src/workflows/create-stack-skill/data/integration-patterns.md +61 -0
- package/src/workflows/create-stack-skill/data/manifest-patterns.md +35 -0
- package/src/workflows/create-stack-skill/data/stack-skill-template.md +110 -0
- package/src/workflows/create-stack-skill/steps-c/step-01-init.md +142 -0
- package/src/workflows/create-stack-skill/steps-c/step-02-detect-manifests.md +145 -0
- package/src/workflows/create-stack-skill/steps-c/step-03-rank-and-confirm.md +161 -0
- package/src/workflows/create-stack-skill/steps-c/step-04-parallel-extract.md +155 -0
- package/src/workflows/create-stack-skill/steps-c/step-05-detect-integrations.md +154 -0
- package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +160 -0
- package/src/workflows/create-stack-skill/steps-c/step-07-generate-output.md +202 -0
- package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +193 -0
- package/src/workflows/create-stack-skill/steps-c/step-09-report.md +137 -0
- package/src/workflows/create-stack-skill/validation-report.md +401 -0
- package/src/workflows/create-stack-skill/workflow-plan-create-stack-skill.md +481 -0
- package/src/workflows/create-stack-skill/workflow.md +59 -0
- package/src/workflows/export-skill/data/managed-section-format.md +70 -0
- package/src/workflows/export-skill/data/snippet-format.md +32 -0
- package/src/workflows/export-skill/steps-c/step-01-load-skill.md +184 -0
- package/src/workflows/export-skill/steps-c/step-02-package.md +153 -0
- package/src/workflows/export-skill/steps-c/step-03-generate-snippet.md +166 -0
- package/src/workflows/export-skill/steps-c/step-04-update-context.md +222 -0
- package/src/workflows/export-skill/steps-c/step-05-token-report.md +126 -0
- package/src/workflows/export-skill/steps-c/step-06-summary.md +167 -0
- package/src/workflows/export-skill/validation-report.md +263 -0
- package/src/workflows/export-skill/workflow-plan-export-skill.md +369 -0
- package/src/workflows/export-skill/workflow.md +56 -0
- package/src/workflows/quick-skill/data/registry-resolution.md +91 -0
- package/src/workflows/quick-skill/data/skill-template.md +66 -0
- package/src/workflows/quick-skill/steps-c/step-01-resolve-target.md +165 -0
- package/src/workflows/quick-skill/steps-c/step-02-ecosystem-check.md +143 -0
- package/src/workflows/quick-skill/steps-c/step-03-quick-extract.md +177 -0
- package/src/workflows/quick-skill/steps-c/step-04-compile.md +180 -0
- package/src/workflows/quick-skill/steps-c/step-05-validate.md +150 -0
- package/src/workflows/quick-skill/steps-c/step-06-write.md +160 -0
- package/src/workflows/quick-skill/validation-report.md +543 -0
- package/src/workflows/quick-skill/workflow-plan-quick-skill.md +405 -0
- package/src/workflows/quick-skill/workflow.md +56 -0
- package/src/workflows/setup-forge/data/tier-rules.md +50 -0
- package/src/workflows/setup-forge/steps-c/step-01-detect-and-tier.md +140 -0
- package/src/workflows/setup-forge/steps-c/step-02-write-config.md +141 -0
- package/src/workflows/setup-forge/steps-c/step-03-auto-index.md +116 -0
- package/src/workflows/setup-forge/steps-c/step-04-report.md +131 -0
- package/src/workflows/setup-forge/validation-report.md +504 -0
- package/src/workflows/setup-forge/workflow-plan-setup-forge.md +428 -0
- package/src/workflows/setup-forge/workflow.md +49 -0
- package/src/workflows/test-skill/data/output-section-formats.md +96 -0
- package/src/workflows/test-skill/data/scoring-rules.md +74 -0
- package/src/workflows/test-skill/steps-c/step-01-init.md +185 -0
- package/src/workflows/test-skill/steps-c/step-02-detect-mode.md +162 -0
- package/src/workflows/test-skill/steps-c/step-03-coverage-check.md +222 -0
- package/src/workflows/test-skill/steps-c/step-04-coherence-check.md +249 -0
- package/src/workflows/test-skill/steps-c/step-05-score.md +222 -0
- package/src/workflows/test-skill/steps-c/step-06-report.md +175 -0
- package/src/workflows/test-skill/templates/test-report-template.md +24 -0
- package/src/workflows/test-skill/validation-report.md +390 -0
- package/src/workflows/test-skill/workflow-plan-test-skill.md +288 -0
- package/src/workflows/test-skill/workflow.md +57 -0
- package/src/workflows/update-skill/data/manual-section-rules.md +44 -0
- package/src/workflows/update-skill/data/merge-conflict-rules.md +62 -0
- package/src/workflows/update-skill/steps-c/step-01-init.md +208 -0
- package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +184 -0
- package/src/workflows/update-skill/steps-c/step-03-re-extract.md +187 -0
- package/src/workflows/update-skill/steps-c/step-04-merge.md +230 -0
- package/src/workflows/update-skill/steps-c/step-05-validate.md +187 -0
- package/src/workflows/update-skill/steps-c/step-06-write.md +204 -0
- package/src/workflows/update-skill/steps-c/step-07-report.md +201 -0
- package/src/workflows/update-skill/validation-report.md +559 -0
- package/src/workflows/update-skill/workflow-plan-update-skill.md +441 -0
- package/src/workflows/update-skill/workflow.md +56 -0
- package/tools/cli/commands/install.js +33 -0
- package/tools/cli/commands/status.js +195 -0
- package/tools/cli/commands/uninstall.js +226 -0
- package/tools/cli/commands/update.js +63 -0
- package/tools/cli/lib/compiler.js +306 -0
- package/tools/cli/lib/ide-commands.js +244 -0
- package/tools/cli/lib/installer.js +307 -0
- package/tools/cli/lib/manifest.js +109 -0
- package/tools/cli/lib/ui.js +277 -0
- package/tools/cli/lib/version-check.js +86 -0
- package/tools/cli/skf-cli.js +45 -0
- package/tools/skf-npx-wrapper.js +36 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-06-write'
|
|
3
|
+
description: 'Write updated SKILL.md, provenance-map.json, evidence-report.md, and stack reference files'
|
|
4
|
+
|
|
5
|
+
nextStepFile: './step-07-report.md'
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Step 6: Write Updated Files
|
|
9
|
+
|
|
10
|
+
## STEP GOAL:
|
|
11
|
+
|
|
12
|
+
Write all updated skill artifacts to disk: the merged SKILL.md, updated provenance-map.json with new timestamps and mappings, updated evidence-report.md with the update operation trail, and for stack skills, all affected reference files.
|
|
13
|
+
|
|
14
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
15
|
+
|
|
16
|
+
### Universal Rules:
|
|
17
|
+
|
|
18
|
+
- 🛑 NEVER generate content without user input
|
|
19
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
20
|
+
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
|
|
21
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
22
|
+
- ⚙️ TOOL/SUBPROCESS FALLBACK: If any instruction references a subprocess, subagent, or tool you do not have access to, you MUST still achieve the outcome in your main context thread
|
|
23
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
24
|
+
|
|
25
|
+
### Role Reinforcement:
|
|
26
|
+
|
|
27
|
+
- ✅ You are a precision code analyst operating in Surgeon mode
|
|
28
|
+
- ✅ File writes must be atomic — complete all writes or none
|
|
29
|
+
- ✅ Every write must be verified after completion
|
|
30
|
+
- ✅ Provenance metadata must accurately reflect the update operation
|
|
31
|
+
|
|
32
|
+
### Step-Specific Rules:
|
|
33
|
+
|
|
34
|
+
- 🎯 Focus ONLY on writing files — all merge and validation is complete
|
|
35
|
+
- 🚫 FORBIDDEN to modify merged content during write — write exactly what was produced
|
|
36
|
+
- 🚫 FORBIDDEN to skip provenance map update — this is critical for future audits
|
|
37
|
+
- 💬 Verify each file after writing to confirm integrity
|
|
38
|
+
|
|
39
|
+
## EXECUTION PROTOCOLS:
|
|
40
|
+
|
|
41
|
+
- 🎯 Follow MANDATORY SEQUENCE exactly
|
|
42
|
+
- 💾 Write all files in the correct locations
|
|
43
|
+
- 📖 Update provenance map with current timestamps
|
|
44
|
+
- 🚫 FORBIDDEN to proceed if any write fails
|
|
45
|
+
|
|
46
|
+
## CONTEXT BOUNDARIES:
|
|
47
|
+
|
|
48
|
+
- Available: merged content from step 04, validation results from step 05, extraction results from step 03, change manifest from step 02
|
|
49
|
+
- Focus: file I/O operations — write and verify
|
|
50
|
+
- Limits: write only to skill output and forge data directories
|
|
51
|
+
- Dependencies: steps 02-05 must all be complete
|
|
52
|
+
|
|
53
|
+
## MANDATORY SEQUENCE
|
|
54
|
+
|
|
55
|
+
**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
|
|
56
|
+
|
|
57
|
+
### 1. Write Updated SKILL.md
|
|
58
|
+
|
|
59
|
+
Write the merged SKILL.md content to `{skills_output_folder}/{skill_name}/SKILL.md`:
|
|
60
|
+
- Overwrite the existing file with merged content
|
|
61
|
+
- Preserve file encoding (UTF-8)
|
|
62
|
+
- Verify write by reading back and confirming [MANUAL] section count matches expected
|
|
63
|
+
|
|
64
|
+
### 2. Write Updated metadata.json
|
|
65
|
+
|
|
66
|
+
Update `{skills_output_folder}/{skill_name}/metadata.json`:
|
|
67
|
+
- Update `version` (increment patch version)
|
|
68
|
+
- Update `last_updated` timestamp to current date
|
|
69
|
+
- Update `export_count` to reflect current total
|
|
70
|
+
- Update `confidence_distribution` with new T1/T1-low/T2 counts
|
|
71
|
+
- For stack skills: update `library_count`, `integration_count` if changed
|
|
72
|
+
|
|
73
|
+
### 3. Write Updated provenance-map.json
|
|
74
|
+
|
|
75
|
+
Write to `{forge_data_folder}/{skill_name}/provenance-map.json`:
|
|
76
|
+
|
|
77
|
+
**For each export in the updated skill:**
|
|
78
|
+
- Update `file_path` if moved
|
|
79
|
+
- Update `start_line`, `end_line` from fresh extraction
|
|
80
|
+
- Update `extraction_timestamp` to current date for re-extracted exports
|
|
81
|
+
- Update `confidence_tier` from extraction results
|
|
82
|
+
- Update `content_hash` for modified exports
|
|
83
|
+
|
|
84
|
+
**For deleted exports:**
|
|
85
|
+
- Remove entry from provenance map
|
|
86
|
+
|
|
87
|
+
**For new exports:**
|
|
88
|
+
- Add new entry with full extraction metadata
|
|
89
|
+
|
|
90
|
+
**Add update operation metadata:**
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"last_update": "{current_date}",
|
|
94
|
+
"update_type": "incremental",
|
|
95
|
+
"files_changed": {count},
|
|
96
|
+
"exports_affected": {count},
|
|
97
|
+
"forge_tier": "{tier}",
|
|
98
|
+
"manual_sections_preserved": {count}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 4. Write Updated evidence-report.md
|
|
103
|
+
|
|
104
|
+
Append update operation section to `{forge_data_folder}/{skill_name}/evidence-report.md`:
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
## Update Operation — {current_date}
|
|
108
|
+
|
|
109
|
+
**Trigger:** {manual / audit-skill chain}
|
|
110
|
+
**Forge Tier:** {tier}
|
|
111
|
+
**Mode:** {normal / degraded}
|
|
112
|
+
|
|
113
|
+
### Changes Detected
|
|
114
|
+
- Files modified: {count}
|
|
115
|
+
- Files added: {count}
|
|
116
|
+
- Files deleted: {count}
|
|
117
|
+
- Exports affected: {total}
|
|
118
|
+
|
|
119
|
+
### Merge Results
|
|
120
|
+
- Exports updated: {count}
|
|
121
|
+
- Exports added: {count}
|
|
122
|
+
- Exports removed: {count}
|
|
123
|
+
- [MANUAL] sections preserved: {count}
|
|
124
|
+
- Conflicts resolved: {count}
|
|
125
|
+
|
|
126
|
+
### Validation Summary
|
|
127
|
+
- Spec compliance: {PASS/WARN/FAIL}
|
|
128
|
+
- [MANUAL] integrity: {PASS/WARN/FAIL}
|
|
129
|
+
- Confidence tiers: {PASS/WARN/FAIL}
|
|
130
|
+
- Provenance: {PASS/WARN/FAIL}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 5. Write Stack Skill Reference Files (Conditional)
|
|
134
|
+
|
|
135
|
+
**ONLY if skill_type == "stack":**
|
|
136
|
+
|
|
137
|
+
For each affected reference file from the merge:
|
|
138
|
+
- Write updated `references/{library}.md` files
|
|
139
|
+
- Write updated `references/integrations/{pair}.md` files
|
|
140
|
+
- Regenerate `context-snippet.md` with updated export summaries
|
|
141
|
+
- Verify [MANUAL] sections preserved in each reference file
|
|
142
|
+
|
|
143
|
+
**If skill_type != "stack":** Skip with notice.
|
|
144
|
+
|
|
145
|
+
### 6. Verify All Writes
|
|
146
|
+
|
|
147
|
+
For each file written:
|
|
148
|
+
- Read back the file
|
|
149
|
+
- Confirm content matches expected output
|
|
150
|
+
- Confirm [MANUAL] sections are intact (count comparison)
|
|
151
|
+
- Report verification status
|
|
152
|
+
|
|
153
|
+
"**Write Verification:**
|
|
154
|
+
|
|
155
|
+
| File | Status |
|
|
156
|
+
|------|--------|
|
|
157
|
+
| SKILL.md | {VERIFIED/FAILED} |
|
|
158
|
+
| metadata.json | {VERIFIED/FAILED} |
|
|
159
|
+
| provenance-map.json | {VERIFIED/FAILED} |
|
|
160
|
+
| evidence-report.md | {VERIFIED/FAILED} |
|
|
161
|
+
| {stack reference files...} | {VERIFIED/FAILED} |
|
|
162
|
+
|
|
163
|
+
**All files written and verified.**"
|
|
164
|
+
|
|
165
|
+
### 7. Present MENU OPTIONS
|
|
166
|
+
|
|
167
|
+
Display: "**Proceeding to report...**"
|
|
168
|
+
|
|
169
|
+
#### Menu Handling Logic:
|
|
170
|
+
|
|
171
|
+
- After all writes verified, immediately load, read entire file, then execute {nextStepFile}
|
|
172
|
+
|
|
173
|
+
#### EXECUTION RULES:
|
|
174
|
+
|
|
175
|
+
- This is an auto-proceed step with no user choices
|
|
176
|
+
- Proceed directly to report after verification
|
|
177
|
+
|
|
178
|
+
## CRITICAL STEP COMPLETION NOTE
|
|
179
|
+
|
|
180
|
+
ONLY WHEN all files have been written and verified will you load {nextStepFile} to display the change report.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
|
|
185
|
+
|
|
186
|
+
### ✅ SUCCESS:
|
|
187
|
+
|
|
188
|
+
- SKILL.md written with all merged content and [MANUAL] sections intact
|
|
189
|
+
- metadata.json updated with new version, timestamp, export counts
|
|
190
|
+
- provenance-map.json updated with current file:line references and timestamps
|
|
191
|
+
- evidence-report.md appended with update operation record
|
|
192
|
+
- Stack reference files updated if applicable
|
|
193
|
+
- All writes verified by read-back confirmation
|
|
194
|
+
|
|
195
|
+
### ❌ SYSTEM FAILURE:
|
|
196
|
+
|
|
197
|
+
- Any [MANUAL] section content different after write (integrity violation)
|
|
198
|
+
- Skipping provenance map update
|
|
199
|
+
- Not verifying writes after completion
|
|
200
|
+
- Writing partial content (incomplete merge result)
|
|
201
|
+
- Not updating metadata version
|
|
202
|
+
- Leaving stale provenance entries for deleted exports
|
|
203
|
+
|
|
204
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-07-report'
|
|
3
|
+
description: 'Display comprehensive change summary with diff visualization and workflow chaining recommendations'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Step 7: Report
|
|
7
|
+
|
|
8
|
+
## STEP GOAL:
|
|
9
|
+
|
|
10
|
+
Present a comprehensive change summary showing what was updated, [MANUAL] sections preserved, confidence tier breakdown, and recommend next workflow actions in the SKF chain.
|
|
11
|
+
|
|
12
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
13
|
+
|
|
14
|
+
### Universal Rules:
|
|
15
|
+
|
|
16
|
+
- 🛑 NEVER generate content without user input
|
|
17
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
18
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
19
|
+
- ⚙️ TOOL/SUBPROCESS FALLBACK: If any instruction references a subprocess, subagent, or tool you do not have access to, you MUST still achieve the outcome in your main context thread
|
|
20
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
|
|
21
|
+
|
|
22
|
+
### Role Reinforcement:
|
|
23
|
+
|
|
24
|
+
- ✅ You are a precision code analyst operating in Surgeon mode
|
|
25
|
+
- ✅ Report factually — no embellishment, no speculation
|
|
26
|
+
- ✅ Every reported metric must trace to actual operations performed
|
|
27
|
+
- ✅ Recommendations based on validation results and workflow chaining contracts
|
|
28
|
+
|
|
29
|
+
### Step-Specific Rules:
|
|
30
|
+
|
|
31
|
+
- 🎯 Focus ONLY on reporting — all operations are complete
|
|
32
|
+
- 🚫 FORBIDDEN to modify any files — report is read-only display
|
|
33
|
+
- 💬 Present clear, actionable summary with next step recommendations
|
|
34
|
+
|
|
35
|
+
## EXECUTION PROTOCOLS:
|
|
36
|
+
|
|
37
|
+
- 🎯 Follow MANDATORY SEQUENCE exactly
|
|
38
|
+
- 💾 No file writes — display only
|
|
39
|
+
- 📖 This is the final step — workflow completes here
|
|
40
|
+
|
|
41
|
+
## CONTEXT BOUNDARIES:
|
|
42
|
+
|
|
43
|
+
- Available: all results from steps 01-06 (baseline, change manifest, extraction results, merge results, validation results, write verification)
|
|
44
|
+
- Focus: summary and recommendations
|
|
45
|
+
- Limits: display only — no modifications
|
|
46
|
+
- Dependencies: all previous steps must be complete (or no-change shortcut from step 02)
|
|
47
|
+
|
|
48
|
+
## MANDATORY SEQUENCE
|
|
49
|
+
|
|
50
|
+
**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
|
|
51
|
+
|
|
52
|
+
### 1. Handle No-Change Shortcut
|
|
53
|
+
|
|
54
|
+
**If routed here from step 02 with no changes detected:**
|
|
55
|
+
|
|
56
|
+
"**Update Skill Report: {skill_name}**
|
|
57
|
+
|
|
58
|
+
**Status:** No changes detected
|
|
59
|
+
|
|
60
|
+
Source code matches provenance map exactly. The skill `{skill_name}` is current — no update was needed.
|
|
61
|
+
|
|
62
|
+
**Provenance age:** {days} days since last extraction
|
|
63
|
+
**Forge tier:** {tier}
|
|
64
|
+
|
|
65
|
+
**Recommendation:** No action required. Run audit-skill periodically to monitor for drift."
|
|
66
|
+
|
|
67
|
+
→ **Workflow complete.** End here.
|
|
68
|
+
|
|
69
|
+
### 2. Present Change Summary
|
|
70
|
+
|
|
71
|
+
"**Update Skill Report: {skill_name}**
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### Operation Summary
|
|
76
|
+
|
|
77
|
+
| Metric | Value |
|
|
78
|
+
|--------|-------|
|
|
79
|
+
| **Skill** | {skill_name} ({individual/stack}) |
|
|
80
|
+
| **Forge Tier** | {tier} |
|
|
81
|
+
| **Mode** | {normal/degraded} |
|
|
82
|
+
| **Duration** | {step count} steps |
|
|
83
|
+
|
|
84
|
+
### Changes Applied
|
|
85
|
+
|
|
86
|
+
| Category | Count |
|
|
87
|
+
|----------|-------|
|
|
88
|
+
| Files modified | {count} |
|
|
89
|
+
| Files added | {count} |
|
|
90
|
+
| Files deleted | {count} |
|
|
91
|
+
| Files moved/renamed | {count} |
|
|
92
|
+
| **Total exports affected** | {count} |
|
|
93
|
+
|
|
94
|
+
### Export Changes
|
|
95
|
+
|
|
96
|
+
| Change Type | Count |
|
|
97
|
+
|-------------|-------|
|
|
98
|
+
| Updated (signature/type change) | {count} |
|
|
99
|
+
| Added (new exports) | {count} |
|
|
100
|
+
| Removed (deleted exports) | {count} |
|
|
101
|
+
| Moved (file relocated) | {count} |
|
|
102
|
+
| Renamed (identifier changed) | {count} |
|
|
103
|
+
|
|
104
|
+
### Confidence Tier Breakdown
|
|
105
|
+
|
|
106
|
+
| Tier | Count | Description |
|
|
107
|
+
|------|-------|-------------|
|
|
108
|
+
| T1 | {count} | AST-verified structural extraction |
|
|
109
|
+
| T1-low | {count} | Pattern-matched (Quick tier or degraded) |
|
|
110
|
+
| T2 | {count} | QMD-enriched semantic context |
|
|
111
|
+
|
|
112
|
+
### [MANUAL] Section Preservation
|
|
113
|
+
|
|
114
|
+
| Metric | Count |
|
|
115
|
+
|--------|-------|
|
|
116
|
+
| Sections preserved | {count} |
|
|
117
|
+
| Conflicts resolved | {count} |
|
|
118
|
+
| Orphans kept | {count} |
|
|
119
|
+
| Orphans removed | {count} |
|
|
120
|
+
| **Integrity** | {VERIFIED / count issues} |"
|
|
121
|
+
|
|
122
|
+
### 3. Present Validation Findings (If Any)
|
|
123
|
+
|
|
124
|
+
**If validation findings exist from step 05:**
|
|
125
|
+
|
|
126
|
+
"### Validation Findings
|
|
127
|
+
|
|
128
|
+
| Check | Status | Issues |
|
|
129
|
+
|-------|--------|--------|
|
|
130
|
+
| Spec compliance | {PASS/WARN/FAIL} | {count} |
|
|
131
|
+
| [MANUAL] integrity | {PASS/WARN/FAIL} | {count} |
|
|
132
|
+
| Confidence tiers | {PASS/WARN/FAIL} | {count} |
|
|
133
|
+
| Provenance | {PASS/WARN/FAIL} | {count} |
|
|
134
|
+
|
|
135
|
+
{List specific findings if WARN or FAIL}"
|
|
136
|
+
|
|
137
|
+
**If all validations passed:** "### Validation: All checks passed."
|
|
138
|
+
|
|
139
|
+
### 4. Show Files Updated
|
|
140
|
+
|
|
141
|
+
"### Files Written
|
|
142
|
+
|
|
143
|
+
| File | Status |
|
|
144
|
+
|------|--------|
|
|
145
|
+
| `{skills_output_folder}/{skill_name}/SKILL.md` | Updated |
|
|
146
|
+
| `{skills_output_folder}/{skill_name}/metadata.json` | Updated |
|
|
147
|
+
| `{forge_data_folder}/{skill_name}/provenance-map.json` | Updated |
|
|
148
|
+
| `{forge_data_folder}/{skill_name}/evidence-report.md` | Appended |
|
|
149
|
+
| {stack reference files if applicable} | Updated |"
|
|
150
|
+
|
|
151
|
+
### 5. Workflow Chaining Recommendations
|
|
152
|
+
|
|
153
|
+
"### Next Steps
|
|
154
|
+
|
|
155
|
+
Based on the update results:"
|
|
156
|
+
|
|
157
|
+
**If all validations passed:**
|
|
158
|
+
"- **audit-skill** — Run to verify the update resolved known drift
|
|
159
|
+
- **export-skill** — Package the updated skill for distribution
|
|
160
|
+
- **test-skill** — Run test suite against the updated skill"
|
|
161
|
+
|
|
162
|
+
**If validation warnings/failures exist:**
|
|
163
|
+
"- **audit-skill** — Run to identify remaining issues
|
|
164
|
+
- Review validation findings above before exporting"
|
|
165
|
+
|
|
166
|
+
**If triggered by audit-skill chain:**
|
|
167
|
+
"- **audit-skill** — Re-run to verify CRITICAL/HIGH drift resolved
|
|
168
|
+
- **export-skill** — Package once audit confirms clean state"
|
|
169
|
+
|
|
170
|
+
### 6. Workflow Complete
|
|
171
|
+
|
|
172
|
+
"---
|
|
173
|
+
|
|
174
|
+
**Update-skill workflow complete for `{skill_name}`.**"
|
|
175
|
+
|
|
176
|
+
→ **No next step.** Workflow ends here.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
|
|
181
|
+
|
|
182
|
+
### ✅ SUCCESS:
|
|
183
|
+
|
|
184
|
+
- Comprehensive summary displayed with all metrics from the update operation
|
|
185
|
+
- Change categories broken down clearly
|
|
186
|
+
- Confidence tier breakdown reported
|
|
187
|
+
- [MANUAL] preservation status confirmed
|
|
188
|
+
- Validation findings presented if any
|
|
189
|
+
- Files written listed with paths
|
|
190
|
+
- Workflow chaining recommendations provided
|
|
191
|
+
- No-change shortcut handled correctly
|
|
192
|
+
|
|
193
|
+
### ❌ SYSTEM FAILURE:
|
|
194
|
+
|
|
195
|
+
- Reporting metrics not backed by actual operations
|
|
196
|
+
- Not reporting [MANUAL] preservation status
|
|
197
|
+
- Not providing workflow chaining recommendations
|
|
198
|
+
- Modifying any files during reporting
|
|
199
|
+
- Not handling the no-change shortcut from step 02
|
|
200
|
+
|
|
201
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|