Skip to content

skill-quality: check-skill passes a skill with no ## Next section though the skill-bodies rule requires one #4066

Closed

Description

@kyle-sexton

No related issue: found during the principles leg of #3848 (code-metrics), where the gate passed a skill the skill-bodies rule rejects.

What was observed

.claude/rules/skill-bodies-state-current-rules.md requires that a skill with a natural successor names it in a ## Next section placed before ## Gotchas, in one of two shapes: one /plugin:skill invocation on a line, or two to four <outcome>: /plugin:skill bullets. Six of the seven code-metrics skills carry one; principles does not. check-skill.sh principles reports PASS with 0 errors and 0 warnings.

The gate's 25 checks include a Gotchas-surface check (check 11, WARN) and nothing about ## Next, so a skill that omits the section is indistinguishable at the gate from one that has it.

grep -c '^## Next' plugins/code-metrics/skills/*/SKILL.md
CHECK_SKILL_SKILLS_ROOT=plugins/code-metrics/skills bash plugins/skill-quality/scripts/check-skill.sh principles

Proposed change

Add an advisory check in the same tier as the Gotchas check: WARN when SKILL.md has no ## Next heading, WARN when it has one that is not placed before ## Gotchas (or before the last H2 when there is no Gotchas section), and WARN when the section body is neither a single /plugin:skill line nor two to four bullets of the <outcome>: /plugin:skill shape. WARN rather than FAIL because "has a natural successor" is a judgment the rule leaves to the author, and a terminal skill may legitimately have none.

Acceptance criteria

  • A skill with no ## Next section produces one WARN naming the rule.
  • A skill whose ## Next sits after ## Gotchas, or whose body is neither shape, produces one WARN.
  • Every skill in this repository that already carries a conforming ## Next produces no new warning.
  • The check's number and one-line description are added to the checks list at the top of check-skill.sh.

Out of scope

Activity

  1. added theissue type on Sep 11, 2026
  2. added
    needs-triage
    on Sep 11, 2026
  3. kyle-sexton commented on Sep 11, 2026

    @kyle-sexton
    MemberAuthor

    One calibration change from the proposal above, made while implementing: absence of ## Next is an INFO note rather than a WARN. Measured on this repository at the time, 226 of 258 skills carry no ## Next, so a WARN on absence would fire on most of the fleet and bury the gate's signal, and the rule leaves "has a natural successor" to the author. A section that is present but placed after ## Gotchas, last in the file, or in neither the one-invocation nor the two-to-four-bullet shape still WARNs, which is where the rule names a shape and the author did not intend to miss it. The check lands as check 27 (main gained a check 26 in the meantime) with five test cases, in the same pull request as #4067.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions