fix(skill): stop the fallback guard inverting under a plugin load #1

Merged
john merged 1 commit from fix/skill-fallback-guard into main 2026-07-31 20:43:14 +00:00
Owner

The loader substitutes ${CLAUDE_PLUGIN_ROOT} with a global regex over the whole SKILL.md body, so the prose explaining the unsubstituted case was rewritten too and the guard read as its own opposite. Rephrased against what the model can see, with an assertion that the token appears exactly once.

The loader substitutes ${CLAUDE_PLUGIN_ROOT} with a global regex over the whole SKILL.md body, so the prose explaining the unsubstituted case was rewritten too and the guard read as its own opposite. Rephrased against what the model can see, with an assertion that the token appears exactly once.
The loader substitutes ${CLAUDE_PLUGIN_ROOT} with a global regex over the
whole SKILL.md body, so the prose occurrences explaining the unsubstituted
case were rewritten too. Under a correct plugin load the guard read "if the
literal characters /path/to/plugin are still sitting in the command above,
this skill was not loaded as a plugin", which is always true: a working
plugin told itself it was not one. It ran anyway only because the fallback
resolves the same file.

Phrase the guard against what the model can see (an absolute path versus a
placeholder in braces) without writing the token a second time, and assert
the token appears exactly once so the shape cannot come back.
john merged commit d56519c509 into main 2026-07-31 20:43:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: crenshawdev/burnrate#1
No description provided.