npx skills add ...
npx skills add daymade/claude-code-skills --skill repomix-unmixer
Extracts files from repomix-packed repositories, restoring original directory structures from XML/Markdown/JSON formats. Activates when users need to unmix repomix files, extract packed repositories, restore file structures from repomix output, or reverse the repomix packing process.
npx skills add daymade/claude-code-skills --skill repomix-unmixer
This skill extracts files from repomix-packed repositories and restores their original directory structure. Repomix packs entire repositories into single AI-friendly files (XML, Markdown, or JSON), and this skill reverses that process to restore individual files.
This skill activates when:
Extract all files from a repomix file and restore the original directory structure using the bundled unmix_repomix.py script:
Parameters:
<path_to_repomix_file>: Path to the repomix output file (XML, Markdown, or JSON)<output_directory>: Directory where files will be extracted (will be created if doesn't exist)Example:
The script will:
Example output:
Repomix XML format structure:
The script uses regex to match <file path="...">content</file> blocks.
For markdown-style repomix output with file markers:
file content
Refer to references/repomix-format.md for detailed format specifications.
For JSON-style repomix output:
Extract skills that were shared as a repomix file:
Then review, validate, or install the extracted skills.
Extract a packed repository to review its structure and contents:
Restore files from a repomix backup to a working directory:
After unmixing, validate the extracted files are correct:
tree or ls -R to inspect directory layoutRefer to references/validation-workflow.md for detailed validation procedures, especially for unmixing Claude skills.
Always provide an output directory to avoid cluttering the current working directory:
Extract to temporary directories first for review:
Never extract directly to important directories without review:
Issue: Script completes but no files are extracted.
Possible causes:
Solution:
references/repomix-format.md for format detailsIssue: Cannot write to output directory.
Solution:
Issue: Special characters appear garbled in extracted files.
Solution: The script uses UTF-8 encoding by default. If issues persist:
Issue: Files exist at extraction path.
Solution:
/tmp or similar for initial reviewtree to inspect directory layout before useMain unmixing script that:
The script is self-contained and requires only Python 3 standard library.
Comprehensive documentation of repomix file formats including:
Load this reference when dealing with format-specific issues or supporting new repomix versions.
Detailed validation procedures for extracted content including:
Load this reference when users need to validate unmixed skills or verify extraction quality.*
Unmixing /path/to/skill.xml...
Output directory: /tmp/extracted-files
✓ Extracted: github-ops/SKILL.md
✓ Extracted: github-ops/references/api_reference.md
✓ Extracted: markdown-tools/SKILL.md
...
✅ Successfully extracted 20 files!
Extracted files are in: /tmp/extracted-files<file path="relative/path/to/file.ext">
file content here
</file>## File: relative/path/to/file.ext