repomix

Package code repositories into single XML, Markdown, or plain text files.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/locdinh209/curation-skills --skill repomix-locdinh209
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/locdinh209/curation-skills/tree/main/repomix
Command: npx skills add https://github.com/locdinh209/curation-skills --skill repomix-locdinh209

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires repomix, and 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 and processing by AI systems.

Core Features & Use Cases

  • Repository Packaging: Pack entire repositories into single files with customizable include/exclude patterns.
  • Output Formats: Generate multiple output formats (XML, Markdown, plain text) to suit different use cases.
  • Use Case: For instance, you can package a codebase for AI analysis, create repository snapshots for LLM context, or prepare for security audits.

Quick Start

To package the current directory into an XML file, 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 an entire code repository into a single file for AI analysis?

Packaging a code repository into a single AI-friendly file allows large language models to process your entire codebase for contextual understanding. This approach facilitates tasks like security audits, documentation generation, and code representation by consolidating code into one accessible output.

What output formats can I generate when creating repository snapshots for LLMs?

When creating repository snapshots for LLMs, you can generate output in XML, Markdown, or plain text formats. These options allow you to customize the code representation to suit different AI analysis workflows and contextual requirements.

Can I customize which files are included or excluded when packaging a codebase for AI?

Yes, you can customize include and exclude patterns when packaging a codebase for AI. This allows you to control exactly which files are processed and included in the final AI-friendly output file, ensuring relevant context only.

Do I need the Repomix CLI installed to prepare codebases for security audits?

Yes, the Repomix CLI is required to process repositories and prepare codebases for security audits. The Skill relies on this command-line dependency to scan, package, and output the code representation necessary for AI-driven analysis.

What is the best way to provide full code repository context to an AI system?

The best way to provide full code repository context to an AI system is by consolidating the codebase into a single AI-friendly file. Packaging the repository ensures the AI receives complete contextual understanding without losing structural relationships between files.