Skip to content

docs(rules): add ## Related sections and optional-plugin wording - #18324

Merged
kyle-sexton merged 3 commits into
mainfrom
docs/18316-skill-related-links
Nov 23, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
docs/18316-skill-related-links

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #18316

Summary

The skill-bodies rule (.claude/rules/skill-bodies-state-current-rules.md) now defines a
## Related section beside ## Next, and one wording for optional-plugin mentions in skill
bodies, so authors and the later uniformity check work from one written convention.

Fix

  • New ## Related sections: the heading is exactly ## Related, placed after ## Next; its body
    is bullets of <condition>: /plugin:skill [args]., one condition per line; like ## Next, no
    Skill-tool phrasing, availability gate or fallback; a standalone skill carries neither section;
    a user-only skill link needs no extra clause (Q53, Q59).
  • New ## Optional-plugin mentions: outside ## Next and ## Related, a mention reads
    "/plugin:skill (if enabled)", plus "; otherwise" and the fallback when one exists, pointing at
    the plugin-philosophy guard rule; ## Next and ## Related are exempt (D4).
  • The rule's own rename bullet now uses that wording, and the removed-skill bullet covers
    ## Related too.
  • Frontmatter description updated; AGENTS.md rules index regenerated with
    render-index.sh write.

The authoring bullet "add or update the skill's row in the skill-links table" is not added: the
issue conditions it on that table existing, and it does not exist yet.

Test fix found on the way

scripts/check-exec-form-windows-probe.test.sh failed its "required spawn without node" case on
any host with /usr/bin/node (it kept /usr/bin on PATH, so node stayed visible); it failed the
same way on main. The case now links the system tools without node. GitHub's runners keep node
outside /usr/bin, which is why CI never saw it.

Verification

  • grep -c '^## Related sections' .claude/rules/skill-bodies-state-current-rules.md prints 1 (AC9).
  • AC10: the ## Optional-plugin mentions section states the D4 wording and the exemption.
  • markdownlint-cli2, typos, check-vocabulary.py on both files: clean.
  • render-index.sh check --file AGENTS.md: in sync after write.
  • scripts/check-next-graph.py: passes.
  • check-exec-form-windows-probe.test.sh: 41/41 pass (was 40/41); shellcheck clean.
  • Verify gate (check-affected.sh --tests): pass on the pushed head.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 22, 2026 22:40
The skill-bodies rule now defines `## Related` beside `## Next` for
context-dependent links, and one wording for optional-plugin mentions in
skill bodies: "`/plugin:skill` (if enabled)", with "; otherwise" and a
fallback when one exists. `## Next` and `## Related` stay exempt.

Closes #18316

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The "required spawn without node" case kept /usr/bin on PATH, so on a
host that installs node there the probe still found node and the case
failed. Link the system tools without node instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 03:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T03:54:21.937549Z 9d27997 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 43489419e66fb05b71ad0cc5245d3c89242de308: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #18324

I found no security issues in this pull request.

I read the full change in all 3 files:

  • .claude/rules/skill-bodies-state-current-rules.md (trusted path **/.claude/**). I read it under the instruction-surface lens.
    • The rule now defines a ## Related section and a single wording for mentions of optional plugins.
    • The rename bullet changes "(when that plugin is enabled; otherwise grep the old token)" to "(if enabled; otherwise grep the old token)". The meaning is the same, so nothing it forbids or requires has changed.
    • The new text that says ## Next/## Related "carry no availability gate" is about how a human-facing link is worded. It does not remove a rule that stops any protected action: no tool permission, secret handling, posting, publishing or trust decision depends on it.
    • I did not read the protected-class register (docs/contracts/instruction-exception-register/README.md). I judged by consequence: nothing this diff removes guarded a protected action.
  • AGENTS.md (trusted path). This is only the rules-index row for the same rule, regenerated to match the new frontmatter description. It changes no guardrail.
  • scripts/check-exec-form-windows-probe.test.sh. This is a test-only change. The "required spawn with no node" case used to keep /usr/bin and /bin on PATH. It now symlinks every file in /usr/bin/* and /bin/* except node* into a mktemp -d directory under the test's own TMP_ROOT and runs the probe with only that PATH. The names come from the host's system directories, not from pull request or user input, and the links point to fixed system paths. Nothing outside the test temp tree is written, and no credentialed context runs it.

No trust control, merge hold, token scope, kill switch, plugin manifest or workflow is touched.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 43489419e66fb05b71ad0cc5245d3c89242de308: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #18324

I read every hunk of all three changed files: .claude/rules/skill-bodies-state-current-rules.md, AGENTS.md and scripts/check-exec-form-windows-probe.test.sh. I found nothing to flag.

Closing issue #18316

  • AC9 is met. ## Related sections appears exactly once, as an H2, right after ## Successor sections (rule file L57).
  • AC10 is met. ## Optional-plugin mentions states the D4 wording, "/plugin:skill (if enabled)" plus "; otherwise" and the fallback, and the exemption for ## Next and ## Related (L66-L71).
  • Q53 and Q59 are met. The section's format, the standalone-skill rule and the user-only skill clause all match the issue's Key interfaces.
  • No test covers these criteria, and none is required. The issue lists "The coverage check code" as out of scope, so I did not count this as a finding.
  • The deferred skill-links bullet is correctly left out. The issue makes it conditional on a table that does not exist yet.

Links and index

  • The new link to ../../docs/plugin-philosophy.md#design-boundary resolves. The "if enabled" guard rule it cites sits inside that section (plugin-philosophy L124).
  • The AGENTS.md index row matches the rule's new frontmatter description word for word.

Test script change

  • The "required spawn with no node.exe" case now puts only system binaries not named node* on PATH, plus the kept tools in $hidden/bin, instead of all of /usr/bin:/bin.
  • This hides node more strictly and leaves the assertion unchanged, so it is not a loosened check.
  • On hosts where /bin is a symlink to /usr/bin, the -e guard skips the duplicate links. The script runs without set -e, so a failed ln cannot abort it.
  • The pull request says the test fails on main and that the full suite passes after the change (41/41). That is the author's claim; I did not run it, because this lane has no shell.

Not checked

  • The prompt had no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines, so I used fail with no consumer patterns. The citation requirement was not checked.
  • Loosened checks would be marked: fail (default); patterns: 0
  • No embedded instructions were found in the pull request text or the issue.
  • This is the first review of this pull request (blocking only: no).

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 4ef362e Nov 23, 2026
48 checks passed
@kyle-sexton
kyle-sexton deleted the docs/18316-skill-related-links branch November 23, 2026 04:51
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skill bodies rule: add ## Related and one optional-plugin wording

1 participant