repomix

Package code repositories into AI-friendly single-file XML representations.

3|2|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/hotriluan/ai-command-center --skill repomix-hotriluan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/hotriluan/ai-command-center/tree/main/repomix
Command: npx skills add https://github.com/hotriluan/ai-command-center --skill repomix-hotriluan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Analyzing large or complex code repositories for AI agents can be challenging due to file structure, size, and the need for specific metadata. This skill provides tools to package codebases into an AI-friendly single file (XML format), preserving directory structure and including metadata, making it easier for AI to understand and process code.

Core Features & Use Cases

  • AI-Friendly Packaging: Convert entire repositories into a single, structured XML file, optimized for AI consumption.
  • Metadata Inclusion: Automatically includes repository metadata, enhancing AI's contextual understanding of the codebase.
  • Batch Processing: Scripts for processing multiple repositories in a batch, ideal for large-scale analysis.
  • Configuration Management: Supports custom configurations for packaging, allowing fine-tuned control over the output.
  • Use Case: An AI agent needs to perform a security audit across 50 different GitHub repositories. Instead of cloning and processing each one individually, this skill can batch-process all repositories into repomix-output.xml files, which the AI can then easily consume for efficient and consistent analysis, saving significant time and computational resources.

Quick Start

Package the attached GitHub repository 'my-project' into an AI-friendly XML file.

Frequently Asked Questions about repomix

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

FAQPage Schema
How do I package a repository into a single file for AI analysis?

Package repositories into AI-friendly single-file representations using XML, Markdown, JSON, or plain text format. The skill converts entire codebases—local or remote—into structured files that preserve directory structure, include metadata, and support include/exclude patterns, making code easier for AI agents to process and understand.

Can I process multiple GitHub repositories at once?

Yes, batch-process multiple repositories simultaneously into individual output files. This is ideal for large-scale analysis tasks like security audits across many projects, eliminating the need to clone and process each repository individually while maintaining consistent formatting.

What output formats does codebase packaging support?

Codebase packaging supports XML, Markdown, JSON, and plain text formats. Each format preserves directory structure and includes per-file token accounting, repository metadata, and configurable headers and summaries tailored to your AI analysis or documentation needs.

How does token counting work when packaging code for AI?

Token counting provides per-file accounting to track token usage across packaged repositories. This helps estimate computational costs and manage context limits when sending structured codebase representations to AI models for analysis, audits, or investigations.

Does repository packaging work with remote and local codebases?

Yes, packaging applies to both local repositories and remote GitHub repositories. Git-aware processing handles cloning, configuration management, and security checks automatically, supporting flexible CLI and config-file options for both scenarios.

What security checks are included when packaging repositories?

Security checks are applied during packaging to ensure safe AI consumption. Combined with include/exclude pattern filtering, these checks help prevent sensitive files or configurations from being included in the packaged output for AI analysis.