repomix

Convert entire repositories into XML, Markdown, plain text, or JSON files.

1|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill repomix-thanh-apero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/Thanh-apero/apero-kit-cli/tree/main/templates/skills/repomix
Command: npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill repomix-thanh-apero

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill transforms entire repositories into AI-friendly files, enabling efficient analysis and context preparation for large codebases.

Core Features & Use Cases

  • Repository Packaging: Converts entire repositories into XML, Markdown, plain text, or JSON files for AI analysis.
  • Remote Repository Support: Process remote repositories without cloning, with options for specific commits.
  • Comment Removal: Strip comments from supported languages to focus on code content.
  • Use Case: Prepare a codebase for AI analysis by packaging it into a single file format using Repomix, which can then be used as input for LLMs like Claude, ChatGPT, and Gemini.

Quick Start

To package the current directory into an XML file, run: repomix --style xml

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 for AI analysis?

Packaging a codebase for AI analysis involves converting the full repository into a structured XML, Markdown, plain text, or JSON file to serve as context for LLMs like Claude, ChatGPT, and Gemini.

What is the best way to prepare a remote repository for LLM context preparation?

Preparing a remote repository for LLM context involves processing the repository directly without cloning it, optionally targeting specific commits to generate a single structured AI-friendly file.

Can I strip comments from code during repository packaging?

Yes, you can strip comments from supported programming languages during repository packaging to focus strictly on code content and reduce file size for the AI analysis output.

Do I need Python to use repomix for codebase snapshots?

Yes, you need Python and the repomix CLI installed to generate codebase snapshots and format them into AI-friendly files for security audits and library analysis.

Does repository packaging support JSON format for security audits?

Yes, repository packaging supports JSON format alongside XML, Markdown, and plain text, allowing you to output a structured file suitable for security audits and library analysis.