repomix

Package entire repositories into single AI-friendly files with token counting.

1|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/alex-tgk/saasaas --skill repomix-alex-tgk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/alex-tgk/saasaas/tree/main/.claude/skills/repomix
Command: npx skills add https://github.com/alex-tgk/saasaas --skill repomix-alex-tgk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large codebases are hard to feed into AI systems. Repomix packages entire repositories into AI-friendly single files, enabling efficient context provisioning for LLMs, code analysis, and security audits.

Core Features & Use Cases

  • AI-optimized formatting with clear separators
  • Multiple output formats (XML, Markdown, JSON, Plain text)
  • Git-aware processing with respect for .gitignore
  • Token counting for context management
  • Remote repository support via URL or commits
  • Comment removal when needed for clean contexts

Quick Start

Package a local directory or a remote repository to generate a single, AI-ready representation (e.g., repomix-output.xml).

Frequently Asked Questions about repomix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I package a codebase into a single file for AI analysis?

Repomix packages entire repositories into AI-friendly single files by scanning your codebase, applying AI-optimized formatting with clear separators, and outputting to your choice of XML, Markdown, JSON, or plain text. The resulting file is ready to share with LLMs for context provisioning, code analysis, or documentation generation.

Can repomix respect .gitignore and exclude sensitive files when packaging?

Yes. Repomix respects .gitignore during packaging to automatically exclude ignored files, and includes built-in security checks to help prevent accidental inclusion of sensitive data before you share the packaged output with AI systems.

What output formats does repomix support for AI context?

Repomix supports multiple output formats—XML, Markdown, JSON, and plain text—so you can choose the format that best integrates with your LLM workflow, documentation tools, or analysis pipeline.

How do I manage token limits when feeding large repositories to language models?

Repomix counts tokens in the packaged output so you can verify the context fits within your LLM's token budget before submission, and supports comment removal to trim unnecessary tokens and keep payloads lean.

Can I package remote repositories or specific commits with repomix?

Yes. Repomix supports remote repository processing via URL or specific commits, letting you package code you don't have locally and analyze external codebases or historical versions for LLM context and auditing.

Does repomix work with codebases in multiple programming languages?

Repomix applies to codebases of varying sizes and languages, packaging mixed-language repositories into a single AI-friendly file so you can analyze polyglot projects, security audit multilingual systems, or generate documentation across diverse tech stacks.