repomix

Package local or remote repositories into single-file XML, Markdown, JSON, or plain-text outputs.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Junior-Frontend-dev/Hi-u-ng --skill repomix-junior-frontend-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/Junior-Frontend-dev/Hi-u-ng/tree/main/.claude/skills/repomix
Command: npx skills add https://github.com/Junior-Frontend-dev/Hi-u-ng --skill repomix-junior-frontend-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Repomix packages entire repositories into AI-friendly single-file representations, enabling efficient sharing with LLMs and optimized context management.

Core Features & Use Cases

  • AI-optimized repository packaging with XML, Markdown, JSON, and plain-text outputs
  • Supports local and remote repositories with include/exclude patterns and token-aware summaries
  • Generates contextual snapshots for security audits, documentation, and code reviews

Quick Start

Run Repomix to package your repository and generate an AI-ready context file in your preferred format.

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 AI context?

To package a code repository for AI context, you can use tools that aggregate local files into a single representation. This process generates consolidated outputs with optional headers and summaries, making the codebase ready to feed directly into LLMs for analysis.

What output formats work best for sharing codebases with LLMs?

Markdown, XML, JSON, and plain-text formats are effective for sharing codebases with LLMs. These formats structure the repository content into a single file, enabling AI models to parse the code structure and documentation context efficiently.

Can I run security audits on my codebase using AI-assisted reviews?

Yes, you can run security audits by generating contextual snapshots of your repository to feed into LLMs. This approach packages the code with security checks, allowing AI models to analyze the entire codebase structure for potential vulnerabilities.

How do I include or exclude specific files when packaging a repository for AI analysis?

You can include or exclude specific files during repository packaging by applying pattern matching rules. This allows you to filter out unnecessary files and optimize the AI context, ensuring only relevant code is packaged into the final output.

Does repository packaging support both local and remote repositories?

Repository packaging supports both local and remote repositories. You can aggregate code from a local directory or fetch it directly from a remote source, generating a unified, token-aware context file for AI workflows.

Why do I need token counting when preparing codebases for LLM workflows?

Token counting is necessary when preparing codebases for LLM workflows to ensure the packaged context fits within the model's token limits. It provides a token-aware summary of the repository, helping you manage context window constraints effectively.