Package entire code repositories into single AI-friendly files using Repomix. Capabilities include pack codebases with customizable include/exclude patterns, generate multiple output formats (XML, Markdown, plain text), preserve file structure and context, optimize for AI consumption with token counting, filter by file types and directories, add custom headers and summaries. Use when packaging codebases for AI analysis, creating repository snapshots for LLM context, analyzing third-party libraries, preparing for security audits, generating documentation context, or evaluating unfamiliar codebases.
View on GitHubrafaelcalleja/claude-market-place
claudekit-skills
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/rafaelcalleja/claude-market-place/blob/main/plugins/claudekit-skills/skills/repomix/SKILL.md -a claude-code --skill repomixInstallation paths:
.claude/skills/repomix/# Repomix Skill Repomix packs entire repositories into single, AI-friendly files. Perfect for feeding codebases to LLMs like Claude, ChatGPT, and Gemini. ## When to Use Use when: - Packaging codebases for AI analysis - Creating repository snapshots for LLM context - Analyzing third-party libraries - Preparing for security audits - Generating documentation context - Investigating bugs across large codebases - Creating AI-friendly code representations ## Quick Start ### Check Installation ```bash repomix --version ``` ### Install ```bash # npm npm install -g repomix # Homebrew (macOS/Linux) brew install repomix ``` ### Basic Usage ```bash # Package current directory (generates repomix-output.xml) repomix # Specify output format repomix --style markdown repomix --style json # Package remote repository npx repomix --remote owner/repo # Custom output with filters repomix --include "src/**/*.ts" --remove-comments -o output.md ``` ## Core Capabilities ### Repository Packaging - AI-optimized formatting with clear separators - Multiple output formats: XML, Markdown, JSON, Plain text - Git-aware processing (respects .gitignore) - Token counting for LLM context management - Security checks for sensitive information ### Remote Repository Support Process remote repositories without cloning: ```bash # Shorthand npx repomix --remote yamadashy/repomix # Full URL npx repomix --remote https://github.com/owner/repo # Specific commit npx repomix --remote https://github.com/owner/repo/commit/hash ``` ### Comment Removal Strip comments from supported languages (HTML, CSS, JavaScript, TypeScript, Vue, Svelte, Python, PHP, Ruby, C, C#, Java, Go, Rust, Swift, Kotlin, Dart, Shell, YAML): ```bash repomix --remove-comments ``` ## Common Use Cases ### Code Review Preparation ```bash # Package feature branch for AI review repomix --include "src/**/*.ts" --remove-comments -o review.md --style markdown ``` ### Security Audit ```bash # Package third-party library npx repomix --r