validate-skill-docs
Use after modifying plugin skills, docs/skills/ pages, or site/src/data/skills-meta.ts. Validates content consistency between SKILL.md files and their documentation surfaces: skills-meta.ts field accuracy, connection validity, doc template compliance, and flag documentation.
- License 许可
- MIT
- 最近更新
- 2026-09-05
- Stars
- ★ 0
- Forks
- 6
01 前言 Front Matter
- name
- validate-skill-docs
- description
- Use after modifying plugin skills, docs/skills/ pages, or site/src/data/skills-meta.ts. Validates content consistency between SKILL.md files and their documentation surfaces: skills-meta.ts field accuracy, connection validity, doc template compliance, and flag documentation.
02 资源文件 11
- 参考文档agents/openai.yaml308 B
- 资产文件assets/templates/assembly-plan-bands.json629 B
- 资产文件assets/templates/assembly-plan.json1.0 KB
- 资产文件assets/templates/collage-spec.json1.7 KB
- 脚本check-docs-consistency.js12.2 KB
- 参考文档references/provider-boundaries.md1.9 KB
- 参考文档references/qc-and-provenance.md1.5 KB
- 参考文档references/schemas.md2.7 KB
- 参考文档references/visual-contract.md3.0 KB
- 脚本scripts/render_assembly.py8.6 KB
- 脚本scripts/validate_collage.py10.6 KB
03 SKILL.md 正文
Validate Skill Docs
After modifying skill workflows, flags, or documentation surfaces, run this validation to catch content drift between SKILL.md files and their docs/skills-meta.ts/README representations.
When to Use
Invoke this skill when you have modified any of:
plugins/sdlc-utilities/skills/*/SKILL.md(workflow steps or flags changed)docs/skills/*.md(documentation content)site/src/data/skills-meta.ts(metadata entries)
Step 1 — Run the Validation Script
node .claude/skills/validate-skill-docs/check-docs-consistency.js
If the script exits 0: all checks pass — proceed.
If the script exits 1: fix each issue before finishing the task (see Step 2).
If the script exits 2: run from the repository root or pass --project-root <path>.
Step 2 — Fix Issues Found
For each finding, apply the appropriate fix:
user-invocable-match (error)
The userInvocable boolean in skills-meta.ts does not match the user-invocable frontmatter
value in the skill's SKILL.md. Update one to match the other — the SKILL.md frontmatter is
the source of truth.
connections-valid (error)
A connections[].to value in skills-meta.ts references a slug that does not exist in the
skillsMeta array. Fix the typo or add the missing skill entry.
doc-template-sections (warning)
A docs/skills/<name>.md file is missing one or more required sections from the doc template.
Add the missing sections using docs/skill-doc-template.md as the reference.
Required sections: Overview, Usage, Examples, Prerequisites, What It Creates or Modifies, Related Skills. The Flags section is optional.
doc-flags-present (warning)
A skill has -- flags in its argument-hint but the corresponding docs/skills/<name>.md
Flags table does not mention any of them. Add the missing flags to the Flags table.
Step 3 — Re-run Validation
After fixing all issues:
node .claude/skills/validate-skill-docs/check-docs-consistency.js
Confirm exit 0 before marking work complete.
04 同仓库更多 Skills
example-skill
Test fixture — passing case for script-resolution-version rule.
example-skill
Test fixture — failing case for script-resolution-version rule.
example-skill
Test fixture — passing case for the orchestrator-await-barrier rule (#487). Marks a fan-out dispatch as await-barrier-required and states the guard.
example-skill
Test fixture — failing case for the orchestrator-await-barrier rule (#487). Marks a fan-out dispatch as await-barrier-required but never states the guard.
pr-sdlc
Creates or updates GitHub pull requests with auto-generated 8-section descriptions.
example-skill
Fixture skill for validate-cost-tiers drift tests.