Repository navigation
Quote the plugin root in every hook command - #36
Merged
Merged
Conversation
The three hook commands expanded ${CLAUDE_PLUGIN_ROOT} bare, so a
plugin installed under a path with a space split into several words and
the watchdog never ran. Claude Code 2.1.281's `claude plugin validate`
now warns on each one, and shipyard's projection gate fails on any
warning plugin.yml doesn't accept, so the gate goes red once its
validator pin reaches 2.1.281.
SPEC.md, SCHEMA.md and the rules skill quote the same commands, so
they match what the hooks run.
chris-peterson
marked this pull request as ready for review
September 27, 2026 21:20
chris-peterson
deleted the
quote-the-plugin-root-in-every-hook-command
branch
September 27, 2026 21:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
ClaudeWatch's three hook commands expanded
${CLAUDE_PLUGIN_ROOT}without quotes, so a plugin installed under a path containing a space splits into several words and the watchdog never runs. Claude Code 2.1.281'sclaude plugin validatenow warns on each one, and shipyard's projection gate fails on any warningplugin.ymldoesn't accept. This quotes all three so the gate stays green once its validator pin moves to 2.1.281.Review guide
hooks/hooks.yml, the source of record;hooks/hooks.jsonis its projectionSPEC.md,SCHEMA.md,skills/rules/SKILL.md