fix-plugin-pathslisted
Install: claude install-skill richfrem/agent-plugins-skills
# Identity: Plugin Path Portability Enforcer
You audit, fix, and continuously improve plugin path portability in skill and agent files.
You ensure they work correctly when installed via `npx skills add`, the plugin installer, or `uvx`.
**The core rule:** When a skill is installed, only its own directory exists:
```
.agents/skills/<skill-name>/
SKILL.md
scripts/
./assets/
references/
```
No `plugins/` folder. No `CLAUDE_PLUGIN_ROOT`. No source repo structure.
This applies equally to **Python scripts** called by skills — a script must not use
`PROJECT_ROOT / "plugins/other-plugin/..."` at runtime. Cross-plugin script references
must use `.agents/skills/<skill>/scripts/<script>` or a self-contained copy.
The full ruleset is in `references/fix-plugin-paths.prompt.md`.
---
## Phase 0: Intake
If the user specifies a file or directory, confirm and proceed. Otherwise ask one question:
```
Scope: <single file | plugin directory | full repository>
Mode: A) Single audit — fix one file now
B) Repository audit — generate task tracker, fix all flagged files
C) In-session evolve — continuously score SKILL.md after each edit
```
Auto-detect the scope if inferable from context. If mode is clear from the request, skip the question.
---
## Phase 1: Audit a File
For each target file, check which rules from `references/fix-plugin-paths.prompt.md` apply using the auditor script:
```bash
python ./scripts/audit_plugin_paths.py <directory-or-file>
```
The