lewibs/dark-factory/plugin-root-script-paths
Claude Code and agent skill by lewibs/dark-factory
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
When an agent, command, or skill calls a script bundled inside the dark-factory plugin, always prefix the path with ${CLAUDE_PLUGIN_ROOT}/ instead of using a bare relative path.
Install
npx vskill@latest install lewibs/dark-factory/plugin-root-script-pathsSKILL.md
The same SKILL.md was published earlier as lewibs/dark-factory/plugin-root-script-paths.
When to use
Any time you write or edit an agent (.md in agents/), a command (.md in commands/), or a skill (SKILL.md in skills/) that invokes a script (bash, python3, etc.) that ships inside the dark-factory plugin repository.
This applies to:
bash <script>.shcallspython3 <script>.pycallsallowed-tools:Bash() entries that include a script pathscripts:frontmatter declarations in agent files- Prose pseudocode inside agent instruction bodies
Steps
- Identify every script reference that uses a bare relative path such as:
bash agents/dark-factory/scripts/foo.shpython3 scripts/bar.py
- Replace each bare relative path with the
${CLAUDE_PLUGIN_ROOT}/prefix:
bash "${CLAUDE_PLUGIN_ROOT}/agents/dark-factory/scripts/foo.sh"python3 "${CLAUDE_PLUGIN_ROOT}/scripts/bar.py"
- Apply the same replacement in
allowed-tools:Bash() entries:
- Before:
Bash(bash agents/dark-factory/scripts/foo.sh *) - After:
Bash(bash ${CLAUDE_PLUGIN_ROOT}/agents/dark-factory/scripts/foo.sh *)
- Apply the same replacement in
scripts:frontmatter lines. - Double-quote the expanded path in shell contexts to handle spaces:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/foo.sh"(notbash $CLAUDE_PLUGIN_ROOT/scripts/foo.sh)
Notes
${CLAUDE_PLUGIN_ROOT}is injected by the Claude Code plugin runtime and resolves to the absolute directory where the plugin is installed. Bare relative paths break when the plugin is installed at a location different from the current working directory of the Claude process.- Relative paths like
bash scripts/foo.shlook correct in development (when CWD is the repo root) but fail silently in production installs. - Skills that reference their own helper scripts (e.g.
mermaid_to_image.py) must use${CLAUDE_PLUGIN_ROOT}too — they are bundled plugin assets, not project-local files. - The
${CLAUDE_PLUGIN_ROOT}variable is available in hook commands, agent pseudocode, and allowed-tool patterns alike.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/plugin-root-script-paths/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lewibs/dark-factory/plugin-root-script-paths)