| name | ak:repomix |
| description | Pack repositories into AI-friendly files with Repomix (XML, Markdown, plain text). Use for new-project onboarding, codebase snapshots, LLM context preparation, security audits, third-party library analysis. |
| user-invocable | true |
| when_to_use | Invoke to pack repositories for LLM context or audits. |
| category | dev-tools |
| keywords | ["codebase","pack","snapshot","llm-context"] |
| argument-hint | [path] [--style xml|markdown|plain|json] |
| metadata | {"author":"agentkit","version":"1.0.0"} |
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
repomix --version
Install
npm install -g repomix
brew install repomix
Basic Usage
repomix
repomix --style markdown
repomix --style json
npx repomix --remote owner/repo
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
- Monorepo-aware skill generation via
--skill-generate, including dependency files under package/app directories
Remote Repository Support
Process remote repositories without cloning:
npx repomix --remote yamadashy/repomix
npx repomix --remote https://github.com/owner/repo
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):
repomix --remove-comments
Common Use Cases