repomix
Pack codebases into context-optimized formats for analysis and understanding.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Repomix (Codebase Packaging)
Use Repomix to pack entire codebases into a single, context-optimized format for analysis.
Tools
| Tool | Purpose |
|---|---|
repomix_pack_codebase |
Pack local codebase |
repomix_pack_remote_repository |
Pack a GitHub repository |
repomix_grep_repomix_output |
Search within packed output |
repomix_read_repomix_output |
Read sections of packed output |
Packing a Remote Repository
repomix_pack_remote_repository({
remote: "https://github.com/5dlabs/my-project",
branch: "develop"
})
Returns a packed representation of the entire codebase.
Searching Packed Output
# After packing, search for specific patterns
repomix_grep_repomix_output({
pattern: "authentication",
output_id: "abc123"
})
Reading Specific Sections
repomix_read_repomix_output({
output_id: "abc123",
start_line: 100,
end_line: 200
})
Use Cases
| Task | Approach |
|---|---|
| PRD Analysis | Pack repo to understand existing architecture |
| Code Review | Pack to see full context of changes |
| Task Planning | Pack to understand dependencies |
| Integration | Pack multiple repos for merge planning |
Best Practices
- Pack before planning - Understand the codebase first
- Use grep for navigation - Don't read everything
- Focus on relevant sections - Use start/end lines
- Cache outputs - Reuse packed output for multiple queries
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-03-04
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!