Skip to content

fix(docs-hygiene): give extract-ssot's verify spoke a resolvable script path - #11749

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/11724-extract-ssot-spoke-path
Nov 1, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/11724-extract-ssot-spoke-path

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #11724

Summary

extract-ssot's actions/verify.md ran "${CLAUDE_SKILL_DIR}/scripts/emit-verify-facts.sh". A spoke reaches the model through the Read tool as plain bytes, so the token was never substituted and the command pointed at /scripts/emit-verify-facts.sh. The fix uses the convention other skills use for spokes (for example /context7:lookup).

Fix

  • SKILL.md gains a ## Spoke paths section naming <skill-dir> as ${CLAUDE_SKILL_DIR}, which is substituted in SKILL.md.
  • actions/verify.md runs <skill-dir>/scripts/emit-verify-facts.sh.

Verification

  • grep finds no other ${CLAUDE_SKILL_DIR} in the skill's spokes; the only remaining one is in the new SKILL.md section, where it resolves.
  • /skill-quality:check on docs-hygiene's skills: extract-ssot PASS, 0 errors.
  • markdownlint on both files: 0 issues.
  • Left out: an eval case for the verify action (no existing case drives it; the change is a path a reader substitutes, not a rule).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits October 31, 2026 19:16
…pt path

actions/verify.md ran "${CLAUDE_SKILL_DIR}/scripts/emit-verify-facts.sh".
A spoke reaches the model through the Read tool as plain bytes, so the
token was never substituted and the command pointed at /scripts/. SKILL.md
now names <skill-dir> as ${CLAUDE_SKILL_DIR} in a Spoke paths section, and
the spoke writes <skill-dir>/scripts/emit-verify-facts.sh.

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

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T23:47:35.157691Z 3d8c633 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 github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 3d8c633680dff41b4bde460c8ceabbf9b7642f9c; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 3d8c633680dff41b4bde460c8ceabbf9b7642f9c: 1 finding(s), 1 as inline comments.

Code review: PR #11749

The change does what it claims. actions/verify.md no longer passes a ${CLAUDE_SKILL_DIR} token to Bash, because the Read tool never substitutes it. It now cites <skill-dir>/scripts/emit-verify-facts.sh. The new ## Spoke paths section in SKILL.md defines <skill-dir>. That section is word-for-word the convention already used in plugins/context7/skills/lookup/SKILL.md and plugins/plugin-quality/skills/audit/SKILL.md, and it says the placeholder applies to both actions/ and context/, which is correct.

What I checked:

  • I grepped the skill directory. The only ${CLAUDE_SKILL_DIR} left is in SKILL.md:246, where it resolves. context/orchestrated-mode.md:104 has ${CLAUDE_CONFIG_DIR:-$HOME}, but that is a path inside prose, not a bundled-script command, so this change doesn't need to touch it. scripts/emit-verify-facts.sh exists at the cited path.
  • The changelog fragment's bump: patch fits a doc and path fix. No plugin manifest changed, so the manifest checks don't apply.
  • Path-scoped rules .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md match the changed skill files. The new section restates no volatile upstream detail and makes no cost claim, so neither rule is broken.
  • The PR author says they ran /skill-quality:check and markdownlint. I did not run either, so those results are unverified.

Closing issue #11724. The issue's Fix section asks for a <skill-dir> placeholder defined in a "Spoke paths" section, with the spoke writing <skill-dir>/scripts/emit-verify-facts.sh. The PR does both. No test could fail if it broke, though; see the inline comment on actions/verify.md:78. The repo's spoke gate only scans context/, reference/ and references/ for ${CLAUDE_PLUGIN_ROOT} (check-spoke-plugin-root.sh#L60-L67). It never looks at actions/ or at ${CLAUDE_SKILL_DIR}.

Embedded text: none in the PR context.

Spend: none.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 3d8c633680dff41b4bde460c8ceabbf9b7642f9c: 0 finding(s), 0 as inline comments.

Security review: PR #11749

I found no security issues.

What changed. The pull request fixes a script path in the extract-ssot skill of the docs-hygiene plugin:

  • plugins/docs-hygiene/skills/extract-ssot/actions/verify.md used to call the script as ${CLAUDE_SKILL_DIR}/scripts/emit-verify-facts.sh. That token is never filled in for a file the model opens with Read, so the command pointed at /scripts/emit-verify-facts.sh. The file now writes the path as <skill-dir>/scripts/emit-verify-facts.sh.
  • SKILL.md gains a ## Spoke paths section. It says <skill-dir> means ${CLAUDE_SKILL_DIR} (which is filled in inside SKILL.md) and tells the model never to pass a raw ${…} token from the spoke files to Bash.
  • A changelog fragment is added.

What I checked.

  • Trusted paths: none of the changed files match a TRUSTED PATHS glob.
  • Plugin manifests: no plugin.json or marketplace.json changed.
  • Trust controls: none touched. That covers the trusted-trigger check, the lane token, the kill switch, the token broker and the merge holds.
  • Instructions: I read the change under the instruction-surface lens because it edits a skill body. It deletes, narrows or softens no rule. It adds one rule, and that rule makes the guidance stricter: the model must fill in a real path and never hand a raw ${…} token to Bash. The script that runs is still the skill's own scripts/emit-verify-facts.sh, now with a path that resolves to the skill's directory. No untrusted input is added to the command line; the --phrase argument is the same placeholder the base already had.
  • PR context: no embedded instructions aimed at the review lane.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 83e2e3a Nov 1, 2026
72 of 84 checks passed
@kyle-sexton
kyle-sexton deleted the fix/11724-extract-ssot-spoke-path branch November 1, 2026 00:10
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.

fix(docs-hygiene): extract-ssot verify spoke uses an unexpanded ${CLAUDE_SKILL_DIR}

1 participant