repomix

Package code repositories into AI-friendly XML, Markdown, JSON, or plain text files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Repomix consolidates large codebases into AI-friendly files, enabling fast, structured analysis by AI systems without the overhead of traversing thousands of files.

Core Features & Use Cases

  • AI-ready output formats: XML, Markdown, JSON, and plain text while preserving repository structure.
  • Token-aware packaging with include/exclude patterns to control context size and focus.
  • Use cases include repository snapshots for LLM context, security reviews, and documentation generation for large projects.

Quick Start

Install Repomix globally: npm install -g repomix Package the current directory: repomix Generate Markdown output: repomix --style markdown -o snapshot.md

Frequently Asked Questions about repomix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I package a code repository for LLM analysis?

To package a code repository for LLM analysis, you consolidate the codebase into AI-friendly files using formats like XML or Markdown while preserving the repository structure. This enables fast, structured analysis by AI systems without the overhead of traversing thousands of files.

What is the best way to create a codebase snapshot for AI context?

Creating a codebase snapshot for AI context involves combining repository files into a single output file with token counting and configurable include/exclude patterns. This approach controls context size and focuses the AI on specific parts of the project for efficient security audits or reviews.

Can I generate Markdown output from a code repository for documentation?

Yes, you can generate Markdown output from a code repository for documentation by running a packaging command with a markdown style flag. This produces a structured snapshot of the codebase suitable for feeding into AI systems to generate project documentation for large projects.

Does repository packaging work with monorepos and large codebases?

Repository packaging works effectively with monorepos and large codebases by consolidating thousands of files into a single AI-ready file. Token-aware packaging and configurable include/exclude patterns help manage context size and focus the analysis on specific directories.

What output formats are supported when packaging code for AI systems?

Supported output formats for packaging code for AI systems include XML, Markdown, JSON, and plain text. These formats preserve the repository structure while providing flexibility for different large language model compatibility requirements.

Why do I need token counting when packaging code for LLM context?

You need token counting when packaging code for LLM context to control the size of the generated file and ensure it fits within the model's context window. Token-aware packaging with include/exclude patterns allows you to focus on relevant code and avoid exceeding limits.