@ihatesea69/repomix
APackage code repositories into single AI-friendly files for analysis. Use when you need to understand unfamiliar codebases or prepare context for AI consumption.
Install
agr install @ihatesea69/repomix --target claudeWrites 1 file into .claude/skills/, pinned to git-e13d701b.
- .claude/skills/repomix/SKILL.md
Document
name: repomix description: Package code repositories into single AI-friendly files for analysis. Use when you need to understand unfamiliar codebases or prepare context for AI consumption.
Repomix
Activate this skill when packaging codebases for analysis or understanding repository structure.
When to Use
- Analyzing an unfamiliar codebase
- Creating repository snapshots for context
- Preparing code for security audits
- Generating documentation context
- Evaluating third-party libraries
Usage
# Pack current directory
repomix
# Pack with specific includes
repomix --include "src/**/*.ts"
# Pack remote repository
repomix --remote https://github.com/user/repo
# Output formats
repomix --style xml # default, best for AI
repomix --style markdown
repomix --style plain
Rules
- Use include/exclude patterns to focus on relevant code
- Prefer XML format for AI consumption (best token efficiency)
- Exclude test fixtures, build output, and node_modules
- Use --remote for analyzing external repositories
- Check output size before feeding to AI (token limits)
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-e13d701bbfae2026-07-31