repomix

Package GitHub repositories into single AI-friendly files with token counting.

15|27|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill repomix-kevinnguyen271090
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repomix
Source: https://github.com/kevinnguyen271090/claudekit-engineering/tree/main/repomix
Command: npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill repomix-kevinnguyen271090

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of AI agents struggling with large, complex codebases by automating the analysis and packing of GitHub repositories into AI-friendly formats. It streamlines code understanding, efficient context loading, and documentation generation, saving significant time for developers and AI trainers.

Core Features & Use Cases

  • Repository Packing: Converts entire GitHub repositories into a single, AI-optimized file format, preserving directory structure and metadata.
  • Batch Processing: Automates the packing of multiple repositories, ideal for large-scale code analysis or AI model training datasets.
  • Configuration & Usage Patterns: Provides guidance on configuring Repomix and outlines various usage patterns for different analysis needs.
  • Use Case: An AI agent needs to perform a comprehensive code review on a large open-source project. This Skill can pack the entire repository into an AI-friendly format, allowing the agent to efficiently load and analyze the codebase without being overwhelmed by its size.

Quick Start

Pack the GitHub repository 'https://github.com/octocat/Spoon-Knife' into an AI-friendly format for code analysis.

Frequently Asked Questions about repomix

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

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

Repomix packages entire GitHub repositories into single AI-friendly files, preserving directory structure and metadata. It converts codebases into formats like XML, Markdown, JSON, or plain text optimized for LLM context loading, enabling AI agents to analyze large projects efficiently without overwhelming token limits.

What output formats does repository packing support?

Repository packing outputs multiple formats: XML, Markdown, JSON, and plain text. Each format preserves file structure and context while optimizing for different use cases—XML for structured parsing, Markdown for readability, JSON for programmatic access, and plain text for minimal overhead.

Can I automate packing multiple repositories at scale?

Yes, batch processing automates packing of multiple repositories simultaneously, ideal for large-scale code analysis, building AI training datasets, or conducting systematic security audits across many codebases without manual repetition.

How does token counting help with AI context management?

Built-in token counting tracks the size of packaged repositories relative to AI model context limits. This ensures packed codebases fit within LLM token budgets before analysis, preventing context overflow and enabling efficient context allocation for large projects.

Does repository packing work with remote and local repositories?

Repository packing supports both remote GitHub repositories and local codebases. This flexibility lets you package public projects, private repositories, or on-premise code without requiring repository hosting or external access for every analysis.

What security checks are included during repository packing?

Built-in security checks scan packaged repositories for common vulnerabilities and sensitive data patterns during the packing process. This protects against accidentally exposing credentials, API keys, or security misconfigurations when preparing codebases for AI analysis or sharing.