skf-update-skill
Installation
SKILL.md
Update Skill
Overview
Surgically updates existing skills when source code changes, preserving all [MANUAL] developer content while re-extracting only affected exports with full provenance tracking; unchanged content is never touched, and each regenerated instruction cites code by file:line. Stack skills (skill_type: "stack" in metadata.json) are not updated here: this workflow redirects them to skf-create-stack-skill, which re-composes them from updated constituents.
Conventions
- Bare paths (e.g.
references/<name>.md) resolve from the skill root. - Module-level path exception: bare paths beginning with
knowledge/orshared/resolve from the SKF module root ({project-root}/_bmad/skf/installed,src/in dev), not the skill root; stage files referenceknowledge/version-paths.mdandknowledge/tool-resolution.md, and the terminal step chains toshared/health-check.md. - Sibling skills: a path that names another SKF skill's folder (
skf-<name>/...) resolves from the SKF module root, and that skill must be installed with this one. references/holds the workflow stages, chained by each file's frontmatternextStepFile(init.md §8 loadsgap-driven.mdthroughgapDrivenStepFileinstead whenupdate_modeisgap-driven), the [MANUAL] rules file merge.md loads, and the invocation contract;scripts/holds this skill's own helper.{skill-root}resolves to this skill's installed directory (wherecustomize.tomllives, if present).{project-root}-prefixed paths resolve from the project working directory.{skill-name}resolves to the skill directory's basename.- Cross-skill data coupling: stages load shared assets from
skf-create-skill, so create and update extract alike:re-extract.mdpullsextraction-patterns.md,extraction-patterns-tracing.mdandtier-degradation-rules.mdfromskf-create-skill/references/,detect-changes.mdpullsextraction-patterns.md, andgap-driven.mdpullsextraction-patterns.mdandtier-degradation-rules.md;init.md§6c reads the version files the Version Reconciliation section ofskf-create-skill/references/source-resolution-protocols.mdlists, andskf-source-tree.py(init.md §6b) computes a remote skill's clone path with its workspace rule;write.mdreadsskill-sections.mdfromskf-create-skill/assets/, andextraction-patterns.mdand, for §2's by-hand public API count,entry-points-by-hand.mdfromskf-create-skill/references/.