# Repomix Codebase Context Packer for LLMs

> Repomix packs an entire code repository into a single AI-friendly file optimized for LLM consumption. It provides token counting, security scanning via Secretlint, Tree-sitter-based code compression, and outputs in XML, Markdown, or plain text format.

- Skill: `agentskillexchange/repomix-codebase-context-packer-for-llms` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/repomix-codebase-context-packer-for-llms`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/repomix-codebase-context-packer-for-llms/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/repomix-codebase-context-packer-for-llms

---


# Repomix Codebase Context Packer for LLMs

Repomix packs an entire code repository into a single AI-friendly file optimized for LLM consumption. It provides token counting, security scanning via Secretlint, Tree-sitter-based code compression, and outputs in XML, Markdown, or plain text format.

## Installation

Use the upstream install or setup path that matches your environment:
- npx repomix@latest
- npm install -g repomix
- yarn global add repomix
- brew install repomix

Requirements and caveats from upstream:
- If you're using Python, you might want to check out Gitingest, which is better suited for Python ecosystem and data
- ### Docker Usage 🐳
- You can also run Repomix using Docker.

Basic usage or getting-started notes:
- <i>Get help with configuration and usage</i><br>
- ## 🚀 Quick Start
- # Alternatively using yarn

- Source: https://github.com/yamadashy/repomix
- Extracted from upstream docs: https://raw.githubusercontent.com/yamadashy/repomix/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/repomix-codebase-context-packer-llm/)

