Verifies skill completeness as a quality gate before export. Checks API surface coverage or SKILL.md coherence and produces a score and gap report.
Ships in skill-forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Verifies that a skill is complete enough to be useful to an AI agent by checking coverage of the public API surface (naive mode) or validating SKILL.md + references coherence (contextual mode). Produces a completeness score and gap report as a quality gate before export.
references/<name>.md) resolve from the skill root, inside a references/ file too: only a stage's frontmatter nextStepFile and blockedStepFile name a file beside it.knowledge/ or shared/ resolve from the SKF module root ({project-root}/_bmad/skf/ installed, src/ in dev), not the skill root; e.g. shared/references/output-contract-schema.md and shared/health-check.md.skf-<name>/...) resolves from the SKF module root, and that skill must be installed with this one. The coherence and migration rules cite skf-create-skill/assets/skill-sections.md and skf-create-stack-skill/references/compose-mode-rules.md.{skill-root} resolves to this skill's installed directory (where customize.toml lives, if present).{project-root}-prefixed paths resolve from the project working directory.{skill-name} resolves to the skill directory's basename.You are a skill auditor and completeness analyst operating in Ferris's Audit mode. This is a deterministic quality gate — you bring AST-backed analysis expertise and zero-hallucination verification, while the skill artifacts provide the evidence.
These rules apply to every step in this workflow:
run_in_background: false on every Agent call (Claude Code runs a subagent in the background when the flag is left out), with parallel ones as several such calls in one message, and wait for every long-running command to exit before the next instruction; in a headless run, never end a turn while either still runs, since under claude -p a run stops when its turn ends.stepsCompleted in output file frontmatter before loading next step{communication_language}input-missing therereferences/init.md §6a has taken the run lock, it first releases the lock, whatever the release prints (it never removes another run's lock): from {project-root}, run uv run {runLockHelper} release --lock "{forge_version}/.test-skill.lock" --owner "{run_owner}".references/init.md §6a until report.md §7 releases it, renew the run lock each time a subagent dispatch returns (once for parallel calls sent in one message) or, without subagents, the main thread finishes the work a step gives a subagent, each time the main thread finishes reading a source file by eye (once for files read in one message), and as each stage from detect-mode.md to report.md starts, before its first numbered section, since the lock goes stale 60 minutes after it was taken or last renewed: from {project-root}, run uv run {runLockHelper} acquire --lock "{forge_version}/.test-skill.lock" --owner "{run_owner}". Run uv run {runLockHelper} acquire --lock "{forge_version}/.test-skill.lock" --owner "{run_owner}" --stale-after 180 instead right before each subagent dispatch (once for parallel calls sent in one message; before report.md §4b.2 spawns its discovery subagents, say) or, without subagents, before the main thread starts the work a step gives a subagent, since nothing can renew the lock while one dispatch runs; the next renewal that passes no --stale-after sets it back to 60. Exit 3 (another run took the lock over) HALTs another-run-active with "Another test-skill run took over the run lock for {skill_name}. This run wrote no result files. {message}", the helper's message, and exit 1 or 2, or no JSON, HALTs helper-failed with its stderr message, each at phase <step>:run-lock (coverage-check:run-lock, say).{report_file}, keeps its hidden name until report.md §4c publishes it. The steps read the verdict inputs (threshold, toolingStatus, workspaceDrift, docsOnly, analysisConfidence, testResult) from its frontmatter, never from memory{run_dir}: report.md §7 deletes it, a HALT keeps it{run_dir} exists (init.md §6b records the ones it met before): a replaced run lock, a migrated flat skill, missing metadata, a drift check that could not run, a defaulted test mode, a skill-check that did not run and each Tessl Review warning. The stage writes the text to a file in {run_dir} and runs the emitter's record, and the emitter adds each warning to the envelope and to both result files; a record that exits non-zero is shown and the run goes on| # | Step | File | Auto-proceed |
|---|---|---|---|
| 1 | Initialize & Load Skill | references/init.md | Yes |
| 2 | Detect Mode | references/detect-mode.md | Yes |
| 3 | Coverage Check | references/coverage-check.md | Yes |
| 4 | Coherence Check | references/coherence-check.md | Yes |
| 4b | External Validators | references/external-validators.md | Yes |
| 4c | Hard Gate | references/step-hard-gate.md | Yes |
| 5 | Score | references/score.md | Yes |
| 6 | Report | references/report.md | Yes |
| 7 | Workflow Health Check | references/health-check.md | Yes |
Headless callers: the full argument set (Inputs), the outputs, the exit codes and the SKF_TEST_RESULT_JSON result envelope live in references/invocation-contract.md. Interactive runs do not need it.
Check the runtime, then load the config. Every helper this workflow runs, the preflight included, runs through uv run, so first confirm that uv is on $PATH (command -v uv). If it is missing, HALT (halt_reason: "runtime-missing", phase on-activation:runtime): "test-skill needs uv, which is not on your PATH. Install it (https://docs.astral.sh/uv/getting-started/installation/; it is a documented runtime prerequisite, see https://armelhbobdad.github.io/bmad-module-skill-forge/getting-started/#prerequisites-full-reference), then re-run." Nothing is written.
Then bind {emitEnvelopeHelper} ← {project-root}/_bmad/skf/shared/scripts/skf-emit-result-envelope.py, else {project-root}/src/shared/scripts/skf-emit-result-envelope.py (the first that exists; init.md §0 binds the same path again), and load the config: {preflightHelper} ← {project-root}/_bmad/skf/shared/scripts/skf-preflight.py, else {project-root}/src/shared/scripts/skf-preflight.py (the first that exists). Run it once:
uv run {preflightHelper} "{project-root}" --allow-missing-sidecar
It parses {project-root}/_bmad/skf/config.yaml and {sidecar_path}/preferences.yaml into one JSON object: bind project_name, user_name, communication_language and document_output_language from its config, and skills_output_folder, forge_data_folder and sidecar_path from config.<name>_resolved, each folder's absolute path. With sidecar.preferences_error (a preferences.yaml that is there but does not load), display that error in one line and go on with the defaults. If neither path exists, HALT (halt_reason: "helper-missing", phase on-activation:config); if the call exits non-zero or prints no JSON, HALT (halt_reason: "helper-failed", phase on-activation:config). Either displays "test-skill cannot load its config. {its error and code, such as CONFIG_MISSING, else its first stderr line, else: skf-preflight.py is missing, so re-install SKF.}" Nothing is written.
Halt envelope. Step 2 has not resolved {headless_mode} yet, so under --headless or -H each HALT of this step first prints its envelope. No run folder exists yet, and the config halt's message quotes preflight's error, which names an absolute path, so the halt passes its fields as options and the message on stdin in a quoted heredoc, never typed into JSON:
uv run {emitEnvelopeHelper} emit-halt --workflow skf-test-skill --target stderr --phase '<phase>' --halt-reason '<halt_reason>' --reason - <<'SKF_REASON'
<the halt message>
SKF_REASON
The emitter needs only the standard library, so when uv is the missing tool, bind {emitEnvelopeHelper} as above first, and the command runs with python3 in place of uv run. Display the line it prints as the run's last line, then stop. With no emitter path, or when the emitter exits non-zero or prints no line, display the halt message alone.
Resolve {headless_mode}: true if --headless or -H was passed as an argument, or if step 1's preflight gave derived.headless_mode true (headless_mode: true in {sidecar_path}/preferences.yaml). Default: false.
Resolve workflow customization. Bind {resolveCustomizationHelper} ← {project-root}/_bmad/skf/shared/scripts/skf-resolve-customization.py, else {project-root}/src/shared/scripts/skf-resolve-customization.py (the first that exists), and run:
uv run {resolveCustomizationHelper} --skill {skill-root} --project-root {project-root} --key workflow --facts
It merges the bundled {skill-root}/customize.toml with {project-root}/_bmad/custom/skf-test-skill.toml (team overrides, committed) and .user.toml (personal overrides, gitignored). When it exits non-zero, prints no JSON or is missing, print one line, [activation/warn] customization_resolver_unavailable: <reason> (<reason>: its first stderr line, SKF helper skf-resolve-customization.py not found when the script is missing, no JSON when it printed none). If the resolver cannot run, read {skill-root}/customize.toml alone and use its bundled defaults: the {project-root}/_bmad/custom/ overrides do not apply to this run. In that case keep the reason as {customization_resolver_unavailable}: report.md §4c hands it to the result as a warning.
Apply the scalar fallbacks now:
{testReportTemplatePath} ← workflow.test_report_template_path if non-empty, else templates/test-report-template.md, bound as the file it names ({project-root} replaced, a bare path taken from {skill-root}); a copy keeps the title line, each heading assets/report-headings.txt lists and the <!-- Populated by comment under it, which init.md §6c checks before it creates the report{defaultThreshold} ← workflow.default_threshold when it is non-empty, which only a team or personal override makes it (the bundled value is empty); otherwise leave {defaultThreshold} unbound.{onCompleteCommand} ← workflow.on_complete if non-empty, else empty string (the post-finalization hook in references/report.md is then a no-op).Stash the bound scalars as workflow-context variables that stage files reference directly.
Apply the array surfaces (not silent no-ops): run workflow.activation_steps_prepend in order now; treat each workflow.persistent_facts entry as standing context for the run (the bundled default loads every project-context.md under {project-root}, none in {project-root}/_bmad-output/.skf-run/; if the resolver ran, --facts has applied each ! entry, which drops each earlier entry it names, and expanded each glob, so a file: entry names one file).
Run each entry in workflow.activation_steps_append in order, then load, read the full file, and execute references/init.md to begin the workflow.
assets/output-section-formats.md (opens in a new tab)assets/report-headings.txt (opens in a new tab)customize.toml (opens in a new tab)references/coherence-check.md (opens in a new tab)references/coherence-contextual.md (opens in a new tab)references/coherence-naive.md (opens in a new tab)references/coverage-check-branches.md (opens in a new tab)references/coverage-check-tiers.md (opens in a new tab)references/coverage-check.md (opens in a new tab)references/detect-mode.md (opens in a new tab)references/external-validators.md (opens in a new tab)references/health-check.md (opens in a new tab)references/init.md (opens in a new tab)references/inventory-contract.md (opens in a new tab)references/invocation-contract.md (opens in a new tab)references/migration-section-rules.md (opens in a new tab)references/report.md (opens in a new tab)references/score.md (opens in a new tab)references/scoring-rules.md (opens in a new tab)references/signature-comparison-rules.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-testing, completeness-check, quality-gate, skill-audit
15 skills in this plugin
/skf-analyze-sourceDiscover what to skill in a large repo and produce recommended skill briefs. Use when the user requests to "analyze source for skills" or "discover skill opportunities."/skf-audit-skillDrift detection between skill and current source code. Use when the user requests to "audit a skill" or "audit skill" for drift./skf-brief-skillDesign a skill scope through guided discovery. Use when the user requests to "create a skill brief" or "brief a skill"./skf-create-skillCompile a skill from a brief. Supports --batch for multiple briefs. Use when the user requests to "create a skill" or "compile a skill."/skf-create-stack-skillConsolidated project stack skill with integration patterns — code-mode (analyzes manifests) or compose-mode (synthesizes from existing skills + architecture doc). Use when the user requests to "create a stack skill", "forge a stack", or "stack this project"./skf-drop-skillDeprecates or purges a skill version or a whole skill, then rebuilds the platform context files. Use when the user requests to "drop a skill" or "remove a skill"./skill-forge:skf-test-skillfrom skill-forge
npx claudepluginhub armelhbobdad/bmad-module-skill-forge --plugin skill-forgeOther plugins' skills for the same job