repomix

Package entire code repositories into XML, Markdown, or plain text.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of packaging entire code repositories into single, AI-friendly files, making them easily digestible for Large Language Models (LLMs).

Core Features & Use Cases

  • Codebase Packaging: Consolidate entire repositories into formats like XML, Markdown, or plain text.
  • LLM Context Preparation: Prepare codebases for analysis, code review, or training LLMs.
  • Use Case: You need to provide a large codebase to an AI for a security audit. Use Repomix to package the entire repository into an XML file that the AI can efficiently process.

Quick Start

Use repomix to package the current directory into an XML file named 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 an entire code repository into a single file for LLM analysis?

To package a code repository for LLM analysis, you consolidate the codebase into a single AI-friendly file. This process outputs XML, Markdown, or plain text formats, making the entire repository easily digestible for large language models.

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

Preparing a codebase for an AI security audit involves packaging the entire repository into a structured XML file. This consolidated output allows the AI to efficiently process and analyze the complete codebase snapshot for vulnerabilities.

Can I filter files and remove comments when creating a repository snapshot for LLM context?

Yes, you can apply filtering and comment removal options when creating a repository snapshot. This ensures the LLM context preparation output contains only the necessary code, optimizing the file size and analysis efficiency.

Does repomix work with third-party library analysis and plain text output formats?

Repomix supports third-party library analysis and outputs packaged code into plain text, XML, or Markdown formats. It effectively consolidates external dependencies into a single file for comprehensive LLM review.

When do I need to package code into XML or Markdown formats for AI consumption?

You need to package code into XML or Markdown formats when providing a large codebase to an AI for tasks like code review or training. This packaging creates a unified repository snapshot that LLMs can efficiently parse.