bmad-module-skill-forge 0.4.0 → 0.5.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 (49) hide show
  1. package/README.md +1 -1
  2. package/docs/concepts.md +1 -1
  3. package/docs/examples.md +1 -1
  4. package/docs/index.md +1 -1
  5. package/package.json +1 -1
  6. package/src/knowledge/agentskills-spec.md +25 -0
  7. package/src/knowledge/manual-section-integrity.md +8 -0
  8. package/src/knowledge/overview.md +2 -1
  9. package/src/knowledge/provenance-tracking.md +13 -0
  10. package/src/knowledge/skf-knowledge-index.csv +3 -2
  11. package/src/knowledge/skill-lifecycle.md +2 -2
  12. package/src/knowledge/split-body-strategy.md +41 -0
  13. package/src/workflows/analyze-source/data/skill-brief-schema.md +2 -0
  14. package/src/workflows/analyze-source/data/unit-detection-heuristics.md +26 -0
  15. package/src/workflows/analyze-source/steps-c/step-02-scan-project.md +1 -1
  16. package/src/workflows/analyze-source/steps-c/step-03-identify-units.md +1 -1
  17. package/src/workflows/analyze-source/steps-c/step-04-map-and-detect.md +5 -4
  18. package/src/workflows/analyze-source/steps-c/step-05-recommend.md +1 -1
  19. package/src/workflows/analyze-source/steps-c/step-06-generate-briefs.md +1 -1
  20. package/src/workflows/audit-skill/steps-c/step-01-init.md +2 -0
  21. package/src/workflows/audit-skill/steps-c/step-03-structural-diff.md +14 -0
  22. package/src/workflows/brief-skill/data/scope-templates.md +4 -0
  23. package/src/workflows/brief-skill/data/skill-brief-schema.md +4 -0
  24. package/src/workflows/brief-skill/steps-c/step-03-scope-definition.md +12 -0
  25. package/src/workflows/create-skill/data/compile-assembly-rules.md +43 -2
  26. package/src/workflows/create-skill/data/extraction-patterns-tracing.md +110 -0
  27. package/src/workflows/create-skill/data/extraction-patterns.md +4 -38
  28. package/src/workflows/create-skill/data/skill-sections.md +29 -3
  29. package/src/workflows/create-skill/steps-c/step-03-extract.md +22 -1
  30. package/src/workflows/create-skill/steps-c/step-05-compile.md +6 -2
  31. package/src/workflows/create-skill/steps-c/step-06-validate.md +8 -9
  32. package/src/workflows/create-skill/steps-c/step-07-generate-artifacts.md +14 -1
  33. package/src/workflows/create-stack-skill/steps-c/step-06-compile-stack.md +2 -2
  34. package/src/workflows/create-stack-skill/steps-c/step-08-validate.md +1 -1
  35. package/src/workflows/export-skill/data/snippet-format.md +1 -1
  36. package/src/workflows/export-skill/steps-c/step-02-package.md +7 -3
  37. package/src/workflows/export-skill/steps-c/step-03-generate-snippet.md +3 -1
  38. package/src/workflows/quick-skill/steps-c/step-04-compile.md +3 -2
  39. package/src/workflows/test-skill/data/scoring-rules.md +9 -0
  40. package/src/workflows/test-skill/steps-c/step-03-coverage-check.md +3 -1
  41. package/src/workflows/test-skill/steps-c/step-04-coherence-check.md +4 -1
  42. package/src/workflows/test-skill/steps-c/step-04b-external-validators.md +7 -3
  43. package/src/workflows/test-skill/steps-c/step-05-score.md +1 -1
  44. package/src/workflows/test-skill/steps-c/step-06-report.md +27 -0
  45. package/src/workflows/update-skill/steps-c/step-02-detect-changes.md +11 -0
  46. package/src/workflows/update-skill/steps-c/step-04-merge.md +8 -0
  47. package/src/workflows/update-skill/steps-c/step-05-validate.md +1 -1
  48. package/src/workflows/update-skill/steps-c/step-06-write.md +6 -1
  49. /package/docs/{architecture.md → how-it-works.md} +0 -0
@@ -96,6 +96,11 @@ Write to `{forge_data_folder}/{skill_name}/provenance-map.json`:
96
96
  **For new exports:**
97
97
  - Add new entry with full structured fields: `export_name`, `export_type`, `params[]`, `return_type`, `source_file`, `source_line`, `confidence`, `extraction_method`, `ast_node_type`
98
98
 
99
+ **For script/asset file changes (if `file_entries` exists):**
100
+ - MODIFIED_FILE: copy updated file to `scripts/` or `assets/`, update `content_hash` in `file_entries`
101
+ - DELETED_FILE: remove file from `scripts/` or `assets/`, remove entry from `file_entries`
102
+ - NEW_FILE: copy file to `scripts/` or `assets/`, add entry to `file_entries` with `file_name`, `file_type`, `source_file`, `confidence: "T1-low"`, `extraction_method: "file-copy"`, `content_hash`
103
+
99
104
  **Add update operation metadata:**
100
105
  ```json
101
106
  {
@@ -177,7 +182,7 @@ External tool checks deferred from step-05 now run against the written files:
177
182
 
178
183
  **If skill-check available:**
179
184
  - Run: `npx skill-check check {skills_output_folder}/{skill_name} --fix --format json --no-security-scan`
180
- - If `body.max_lines` reported, run: `npx skill-check split-body {skills_output_folder}/{skill_name} --write`
185
+ - If `body.max_lines` reported, prefer selective split (see `knowledge/split-body-strategy.md`). Fall back to `npx skill-check split-body {skills_output_folder}/{skill_name} --write` if not feasible. Verify anchors resolve after split.
181
186
  - Run: `npx skill-check diff` if original version was preserved
182
187
  - Run: `npx skill-check check {skills_output_folder}/{skill_name} --format json` for security scan
183
188
 
File without changes