repomix

Package entire code repositories into XML, Markdown, JSON, and plain text files.

24|3|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/VoDaiLocz/kilo-kit-mcp --skill repomix-vodailocz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/VoDaiLocz/kilo-kit-mcp/tree/main/skills/engineering/repomix
Command: npx skills add https://github.com/VoDaiLocz/kilo-kit-mcp --skill repomix-vodailocz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of packaging entire code repositories into single, AI-friendly files, enabling efficient analysis, documentation, and security auditing.

Core Features & Use Cases

  • Repository Packaging: Pack entire repositories into single files with customizable include/exclude patterns.
  • Output Formats: Generate multiple output formats like XML, Markdown, JSON, and plain text.
  • File Structure Preservation: Preserve file structure and context in the output files.
  • Token Counting: Optimize for AI consumption with token counting.
  • Use Cases: Ideal for AI analysis, security audits, documentation generation, and code review preparation.

Quick Start

To package your current directory into an XML file named 'repomix-output.xml', simply run:

repomix

Frequently Asked Questions about repomix

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

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

To package a code repository for AI analysis, run the repomix CLI tool to compile your entire codebase into a single AI-friendly file. This process preserves the file structure and context while optimizing the output for AI consumption.

What output formats can I generate when creating a repository snapshot?

When creating a repository snapshot, you can generate XML, Markdown, JSON, and plain text output files. These formats allow flexible integration with various AI tools and documentation workflows.

Can I exclude specific files when packaging my codebase for a security audit?

Yes, you can exclude specific files when packaging your codebase for a security audit. The tool supports customizable include and exclude patterns to ensure sensitive or irrelevant files are omitted from the final output.

Does packaging a repository for AI consumption include token counting?

Yes, packaging a repository for AI consumption includes token counting. This feature optimizes the generated files to ensure they fit within the context limits of AI models for efficient analysis.

What is the best way to prepare a codebase for automated documentation generation?

The best way to prepare a codebase for automated documentation generation is to pack the repository into a structured Markdown or XML file. This consolidated output provides AI models with full project context to generate accurate documentation.

Do I need any dependencies to run repository packaging commands?

No dependencies are required to run repository packaging commands. The Skill operates independently using the built-in repomix CLI tool to process your local directory and generate the packaged output files.