From de8b80328346c8140aa084fd24fb0a9bfdc1155b Mon Sep 17 00:00:00 2001 From: daymade Date: Sun, 26 Oct 2025 15:42:28 +0800 Subject: [PATCH] fix: Replace hardcoded paths with skill-relative paths in repomix-unmixer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace all hardcoded absolute paths (~/.claude/skills/repomix-unmixer/scripts/) with skill-relative paths (scripts/) to ensure the skill works correctly regardless of installation method (user skills, project skills, marketplace plugins). Changes: - Replace 13 occurrences of hardcoded script paths - Use skill-relative paths following Anthropic best practices - Maintain compatibility across all installation contexts This fixes the error where the skill failed when installed as a marketplace plugin because it assumed the ~/.claude/skills/ directory structure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- repomix-unmixer/SKILL.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/repomix-unmixer/SKILL.md b/repomix-unmixer/SKILL.md index ff509fa..76ecbea 100644 --- a/repomix-unmixer/SKILL.md +++ b/repomix-unmixer/SKILL.md @@ -25,7 +25,7 @@ This skill activates when: Extract all files from a repomix file and restore the original directory structure using the bundled `unmix_repomix.py` script: ```bash -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "" \ "" ``` @@ -36,7 +36,7 @@ python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ **Example:** ```bash -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "/path/to/repomix-output.xml" \ "/tmp/extracted-files" ``` @@ -118,7 +118,7 @@ For JSON-style repomix output: Extract skills that were shared as a repomix file: ```bash -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "/path/to/skills.xml" \ "/tmp/unmixed-skills" ``` @@ -130,7 +130,7 @@ Then review, validate, or install the extracted skills. Extract a packed repository to review its structure and contents: ```bash -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "/path/to/repo-output.xml" \ "/tmp/review-repo" @@ -143,7 +143,7 @@ tree /tmp/review-repo Restore files from a repomix backup to a working directory: ```bash -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "/path/to/backup.xml" \ "~/workspace/restored-project" ``` @@ -167,11 +167,11 @@ Always provide an output directory to avoid cluttering the current working direc ```bash # Good: Explicit output directory -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "input.xml" "/tmp/output" # Avoid: Default output (may clutter current directory) -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py "input.xml" +python3 scripts/unmix_repomix.py "input.xml" ``` ### Use Temporary Directories for Review @@ -180,7 +180,7 @@ Extract to temporary directories first for review: ```bash # Extract to /tmp for review -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "skills.xml" "/tmp/review-skills" # Review the contents @@ -196,11 +196,11 @@ Never extract directly to important directories without review: ```bash # Bad: Might overwrite existing files -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "repo.xml" "~/workspace/my-project" # Good: Extract to temp, review, then move -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "repo.xml" "/tmp/extracted" # Review, then: mv /tmp/extracted ~/workspace/my-project @@ -234,7 +234,7 @@ mkdir -p /tmp/output chmod 755 /tmp/output # Or use a directory you own -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "input.xml" "$HOME/extracted" ``` @@ -255,12 +255,12 @@ The script uses UTF-8 encoding by default. If issues persist: **Solution:** ```bash # Option 1: Use a fresh output directory -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "input.xml" "/tmp/output-$(date +%s)" # Option 2: Clear the directory first rm -rf /tmp/output && mkdir /tmp/output -python3 ~/.claude/skills/repomix-unmixer/scripts/unmix_repomix.py \ +python3 scripts/unmix_repomix.py \ "input.xml" "/tmp/output" ```