Skip to content

Fix off-by-one in skill tooling paths (../../ -> ../../../) - #1

Open
xakaxari wants to merge 1 commit into
dleerdefi:mainfrom
xakaxari:araz
Open

Fix off-by-one in skill tooling paths (../../ -> ../../../)#1
xakaxari wants to merge 1 commit into
dleerdefi:mainfrom
xakaxari:araz

Conversation

@xakaxari

Copy link
Copy Markdown

Problem

SKILL.md files reference shared tooling as:

${CLAUDE_SKILL_DIR}/../../bin/...
${CLAUDE_SKILL_DIR}/../../scripts/...

Skills live at <repo>/.claude/skills/<skill>/, so ${CLAUDE_SKILL_DIR}/../../ resolves to <repo>/.claude/ — which contains only skills/. The real bin/ and scripts/ are at the repo root, one level further up.

Every one of these references points at a path that does not exist, so any skill shelling out to bin/construction-python or scripts/** fails.

Fix

Rewrite the 60 affected references to ../../../ across 12 files.

References of the form ${CLAUDE_SKILL_DIR}/scripts/... point at a skill's own directory and were already correct; those are left alone.

Verification

Resolved all 95 ${CLAUDE_SKILL_DIR} tooling references in the tree against disk: 0 unresolved (60 unresolved before the change).

Spot-checked by running bin/construction-python and scripts/issue_manager.py through a skill path on Windows 11.

Most affected: rfi-drafter (12), schedule-extractor (9), subcontract-writer (6), bid-tabulator (6).

🤖 Generated with Claude Code

SKILL.md files referenced shared tooling as ${CLAUDE_SKILL_DIR}/../../bin
and ${CLAUDE_SKILL_DIR}/../../scripts. Skills live at
<repo>/.claude/skills/<skill>/, so ../../ resolves to <repo>/.claude/, which
contains only skills/. The real bin/ and scripts/ are at the repo root, one
level further up, so every one of these references pointed at a path that
does not exist and any skill shelling out to them failed.

Rewrite the 60 affected references to ../../../ across 12 files. All 95
${CLAUDE_SKILL_DIR} tooling references in the tree now resolve against disk.

References of the form ${CLAUDE_SKILL_DIR}/scripts/... point at a skill's own
directory and were already correct; they are left alone.

Still present upstream as of 0732956.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant