repomix

Pack and compress repository content into a single AI-friendly snapshot.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill repomix-giantcroissant-lunar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/GiantCroissant-Lunar/proto-breakout/tree/main/.agent/skills/02-tooling/repomix
Command: npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill repomix-giantcroissant-lunar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repomix consolidates repository code into a single AI-friendly context file, enabling faster external review, documentation generation, and efficient token usage.

Core Features & Use Cases

  • Full-repo packing and per-package snapshots for targeted reviews.
  • Output formats include XML, Markdown, and JSON to suit AI parsing and human readability.
  • Token-optimized compression using Tree-sitter while preserving structure and navigation.
  • Preserve directory structure and file metadata to aid navigation during reviews and documentation.

Quick Start

Run repomix on your repository to generate a token-optimized snapshot for AI review.

Frequently Asked Questions about repomix

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

FAQPage Schema
How do I pack a whole repository into a single file for AI review?

Repomix packs your repository into a single AI-friendly snapshot for efficient model review, preserving directory structure and file metadata while applying Tree-sitter compression to minimize token usage.

What output formats can I generate when consolidating repository code for AI parsing?

When consolidating repository code, repomix outputs XML, Markdown, and JSON formats to suit AI parsing and human readability requirements.

How does Tree-sitter compression optimize tokens for code snapshots?

Tree-sitter compression optimizes tokens for code snapshots by parsing repository content while preserving structural navigation needed for accurate AI model review and documentation.

Can I configure ignore rules for repository snapshots?

You can configure ignore rules for repository snapshots using a repomix.config.json file, ensuring deterministic and reproducible packing results by excluding unwanted files.

Does repomix support generating snapshots for individual packages instead of a full repository?

Repomix supports per-package snapshots for targeted reviews, allowing you to generate token-optimized context files for individual packages rather than packing the full repository.