Skip to content

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

Closed

Description

@kyle-sexton

Problem

plugins/docs-hygiene/skills/extract-ssot/actions/verify.md:78 runs:

bash "${CLAUDE_SKILL_DIR}/scripts/emit-verify-facts.sh" --phrase "<discriminating phrase>"

actions/verify.md is a spoke file. It reaches the model through the Read tool as plain bytes, so the ${CLAUDE_SKILL_DIR} token is never substituted, and the Bash tool's environment has no CLAUDE_SKILL_DIR to expand it from. The command then points at /scripts/emit-verify-facts.sh. The plugins reference documents where each variable resolves: https://code.claude.com/docs/en/plugins/manifest-reference#where-each-variable-resolves

Fix

Use the convention other skills use for spokes: SKILL.md states the resolved skill directory once (a <skill-dir> placeholder defined in a "Spoke paths" section), and the spoke writes <skill-dir>/scripts/emit-verify-facts.sh.

Found by

The concise-skills rewrite of docs-hygiene (#6554, PR #11717). That PR ships extract-ssot unchanged, so the fix lands separately.

Activity

  1. added
    needs-triage
    on Oct 31, 2026
  2. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: the extract-ssot verify spoke runs its script through a ${CLAUDE_SKILL_DIR} token. That token is never expanded when a spoke is read, so the path breaks. The fix is to define a <skill-dir> placeholder in a "Spoke paths" section of SKILL.md, use it in verify.md, and add a changelog entry. The approach and done-when are clear, so nothing is missing. I found no duplicate among the open issues. #6554 and #6476 are related but not the same work.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Oct 31, 2026
  4. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Oct 31, 2026
  5. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  7. added
    needs-triage
    and removed
    status: confirmed
    on Oct 31, 2026
  8. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: The extract-ssot verify spoke runs emit-verify-facts.sh through a &lt;skill-dir> placeholder that SKILL.md defines in a new "Spoke paths" section, so the path resolves.

    Acceptance criteria

    • plugins/docs-hygiene/skills/extract-ssot/actions/verify.md no longer contains the string ${CLAUDE_SKILL_DIR} (grep returns no match).
    • verify.md line ~78 runs &lt;skill-dir>/scripts/emit-verify-facts.sh --phrase "&lt;discriminating phrase>" in its bash block.
    • plugins/docs-hygiene/skills/extract-ssot/SKILL.md has a ## Spoke paths section stating &lt;skill-dir> is the skill's directory, which is ${CLAUDE_SKILL_DIR}, to be substituted before running a command and never passed as a ${…} token to Bash, matching plugins/context7/skills/lookup/SKILL.md:64-68.
    • No other file under plugins/docs-hygiene/skills/extract-ssot/ (actions/ or context/) uses a literal ${CLAUDE_SKILL_DIR} token (grep returns no match).
    • plugins/docs-hygiene/scripts/allowed-tools-pairing.test.sh still passes, since it covers only audit-noise and audit-progressive-disclosure (line 36).
    • plugins/docs-hygiene/CHANGELOG.md gains an entry under the unreleased section describing the fix, in the style of plugins/context7/CHANGELOG.md:131.

    External state: none

    Related work

    Sources read

    • plugins/docs-hygiene/skills/extract-ssot/actions/verify.md:78: runs bash "${CLAUDE_SKILL_DIR}/scripts/emit-verify-facts.sh" --phrase, the only literal token in the extract-ssot skill
    • plugins/docs-hygiene/skills/extract-ssot/SKILL.md:15-243: section list has no Spoke paths section
    • plugins/context7/skills/lookup/SKILL.md:64: existing Spoke paths section defining <skill-dir>, the convention to copy
    • plugins/plugin-quality/skills/audit/SKILL.md:469: another Spoke paths section
    • plugins/docs-hygiene/scripts/allowed-tools-pairing.test.sh:36: SKILLS list covers only audit-noise and audit-progressive-disclosure, so extract-ssot is not checked
    • plugins/context7/CHANGELOG.md:131: precedent for the same fix and its changelog wording

    Automated refinement by the lanes App. Intake triages the issue again with it.

  9. removed
    needs-triage
    on Oct 31, 2026
  10. added
    status: ready
    admission-deferred
    agent-ready
    and removed
    admission-deferred
    on Oct 31, 2026
  11. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  12. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
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

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions