repomix

Package large codebases into XML, Markdown, JSON, or plain text files.

3|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/zircote/agents --skill repomix-zircote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/zircote/agents/tree/main/skills/repomix
Command: npx skills add https://github.com/zircote/agents --skill repomix-zircote

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Packages large codebases into AI-friendly single-file formats to streamline analysis and context sharing.

Core Features & Use Cases

  • AI-optimized packaging into multiple output formats (XML, Markdown, plain text), with token counting to manage LLM context.
  • Preserve repository structure and provide human-readable summaries for audits, reviews, and documentation context.
  • Use cases include preparing for security audits, cross-repo comparisons, or AI-assisted code reviews.

Quick Start

Run a simple packaging action to generate an AI-friendly snapshot of your repository using 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 codebase into a single file for AI analysis?

To package a codebase for AI analysis, you can use a repository packaging tool to consolidate your repository into a single-file format like XML, Markdown, or plain text, preserving the directory structure and providing token counting for LLM context management.

What is the best way to prepare a repository snapshot for a security audit using LLMs?

Preparing a repository snapshot for a security audit involves packaging the codebase into an AI-friendly format with human-readable summaries and preserved structure, allowing language models to efficiently review and analyze the code.

Can I filter specific files and track token counts when converting a repository for LLM context?

Yes, when converting a repository for LLM context, you can apply include and exclude filtering to select specific files, while built-in token counting ensures the generated output fits within your model's context window limits.

Does repomix support multiple output formats for cross-project code comparisons?

Repomix supports multiple output formats for cross-project code comparisons, allowing you to package repositories into XML, Markdown, JSON, or plain text files to streamline analysis and context sharing.

How do code reviews benefit from packaging codebases into AI-friendly formats?

Code reviews benefit from AI-friendly packaging because it consolidates large codebases into a single file with preserved directory structure, enabling AI assistants to efficiently analyze the complete context and identify issues.

When do I need to package a repository into a single file rather than using individual code files?

You need to package a repository into a single file when providing context to AI models that have token limits, as it streamlines analysis by combining code with token counting and custom headers for efficient LLM ingestion.