Skip to content

ci: add skill reference doc consistency check#31

Merged
jimisola merged 2 commits into
mainfrom
ci/skill-reference-doc-consistency
Jun 13, 2026
Merged

ci: add skill reference doc consistency check#31
jimisola merged 2 commits into
mainfrom
ci/skill-reference-doc-consistency

Conversation

@jimisola

Copy link
Copy Markdown
Member

Summary

  • Add .github/scripts/check-skill-reference-docs.sh, run from validate-plugins.yml, that fails if a skill's references/*.md file isn't listed in its SKILL.md, docs/modules/ROOT/pages/skills.adoc, and README.md — or vice versa (stale entries pointing at files that no longer exist).
  • Fixes a pre-existing gap caught by the new check: reqstool-overview.md was listed in SKILL.md but missing from skills.adoc and README.md.

Closes #30

Test plan

  • bash .github/scripts/check-skill-reference-docs.sh exits 0 with "All skill reference docs are consistently listed."
  • Verified the script fails with a clear error when the reqstool-overview.md entries are reverted (pre-fix state)
  • claude plugin validate . passes

Verifies every references/*.md file in a skill directory is listed in
the skill's SKILL.md, docs/modules/ROOT/pages/skills.adoc, and
README.md (and vice versa), so a future PR can't add or remove a
reference doc and forget one of the listing locations.

Also fixes a pre-existing gap: reqstool-overview.md was listed in
SKILL.md but missing from skills.adoc and README.md.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola jimisola self-assigned this Jun 13, 2026
- cd to repo root so the script works regardless of invocation directory
- extract a shared check_reverse helper to deduplicate the two
  reverse-check loops
- document the format conventions each grep/regex depends on, and the
  intentional scope (entry-point docs like reqstool-conventions.md are
  not cross-checked, since their link format isn't standardized)
- add a CI step that proves the check fails on an undocumented
  reference doc, using a throwaway fixture file

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola jimisola merged commit 49f97f3 into main Jun 13, 2026
5 checks passed
@jimisola jimisola deleted the ci/skill-reference-doc-consistency branch June 13, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI check for skill reference doc consistency (SKILL.md / skills.adoc / README.md)

1 participant