repomix

Package local and remote codebases into XML, Markdown, JSON, or plain text files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Repomix packs entire repositories into AI-friendly files to simplify ingestion by LLMs, enabling efficient codebase analysis, auditing, and documentation workflows.

Core Features & Use Cases

  • AI-optimized formatting with clear separators and metadata for easy parsing.
  • Output formats including XML, Markdown, JSON, and plain text; Git-aware processing with .gitignore support.
  • Token counting for LLM context management and security checks to detect sensitive data.
  • Remote repository support for packaging without cloning, and flexible inclusion/exclusion patterns.

Quick Start

Run repomix in your project directory to generate an AI-friendly repository snapshot.

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

You can package a codebase for LLM context by running repomix in your project directory to generate an AI-optimized file. This process aggregates repository files while respecting .gitignore rules and outputs formats like XML, Markdown, or JSON.

Does repomix support packaging remote repositories without cloning them?

Yes, repomix supports remote repository packaging without requiring a local clone. You can run it remotely via npx repomix to fetch and consolidate code into AI-friendly formats for analysis or documentation.

Can I count tokens for repository files before sending them to an LLM?

Yes, repomix includes token counting for LLM context management. This feature helps you track and manage token limits when packaging codebases into AI-optimized files for analysis.

How do I exclude specific files when generating an AI-friendly repository snapshot?

You can exclude specific files when generating an AI-friendly repository snapshot by using configurable include and exclude patterns. This ensures only relevant code is packaged into XML, Markdown, or JSON outputs.

Does repomix check for sensitive data during codebase packaging?

Yes, repomix performs security checks to detect sensitive data during codebase packaging. This ensures that AI-ready repository snapshots are safe for analysis and documentation generation workflows.

What is the best way to format code for multi-repo project analysis?

The best way to format code for multi-repo analysis is using repomix to generate AI-optimized files with clear separators and metadata. It supports multiple output formats including XML, Markdown, JSON, and plain text.