repomix

Package entire repositories into AI-friendly single files in XML, Markdown, JSON, or Plain.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill repomix-danielctc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/danielctc/ReactSpacesMonoRepo/tree/main/.claude/skills/repomix
Command: npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill repomix-danielctc

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Repomix packages entire code repositories into AI-friendly single-file representations to simplify analysis, auditing, documentation, and contextual understanding for large codebases.

Core Features & Use Cases

  • AI-friendly repository snapshots: convert codebases into compact, structured formats (XML, Markdown, JSON, Plain Text) while preserving file structure and context.
  • Token-conscious packaging: counts tokens to optimize AI input and support context windows for LLMs.
  • Use cases: security audits, code reviews, architecture analysis, and documentation preparation for large projects.

Quick Start

Run the tool in your project directory with a simple packaging command, for example: repomix --style markdown -o context.md To package a remote repository: npx repomix --remote owner/repo --style xml -o repo.xml

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 codebase into a single file for AI context?

To package a codebase for AI context, run a command in your project directory like `repomix --style markdown -o context.md`. This consolidates repository contents into structured formats like XML, Markdown, JSON, or Plain Text while preserving file structure for efficient LLM consumption.

Can I package remote repositories for AI analysis without cloning them first?

Yes, you can package remote repositories for AI analysis without cloning by using the `--remote owner/repo` command. This fetches the remote codebase and outputs a consolidated, AI-friendly single file in your chosen format, such as XML.

What is the best way to prepare a large codebase for an LLM security audit?

The best way to prepare a large codebase for an LLM security audit is to package it into a token-conscious single file. This approach counts tokens to optimize AI input and fits context windows, ensuring the entire repository structure is available for comprehensive analysis.

What output formats work best for feeding repository snapshots to AI models?

XML, Markdown, JSON, and Plain Text are the supported output formats for feeding repository snapshots to AI models. These formats preserve file structure and context while allowing you to choose the syntax best suited for your specific LLM's parsing capabilities.

Does packaging a repository for AI context count tokens to fit context windows?

Yes, packaging a repository for AI context includes token counting to optimize AI input and support context windows. This ensures the generated repository snapshot stays within the token limits required by large language models for efficient processing.