Guide · Agent skill
How to use the Repomix Codebase Explorer agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The repomix-explorer skill is an agent skill that tells an AI agent to pack a codebase into one text file with the Repomix CLI, then search and read that file to report on its structure and metrics. It is aimed at developers getting oriented in a large or unfamiliar project, or exploring a public GitHub repository without cloning it into their own project. After this guide you will know what the skill does, how to install it, how to phrase requests so it triggers, and what to watch for.
Quick start
- 1Download the ZIP. Download the repomix-explorer skill ZIP from this page.
- 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for your account, or into .claude/skills/ inside a project.
- 3Or upload in the Claude apps. Open Settings, go to Capabilities, then Skills, and upload the ZIP.
- 4Check Node.js and npx. Confirm Node.js with npx is available, since the skill fetches Repomix with npx repomix@latest.
- 5Ask for an overview. Say something like "Analyze the yamadashy/repomix repository" or "Analyze this codebase".
- 6Search and review. Let the agent search the packed output for the patterns you care about, then ask follow-up questions.
- 7Clean up. Delete the generated output file when you no longer need it.
What is an agent skill and what does repomix-explorer do?
An agent skill is a folder containing a SKILL.md file that gives an AI agent instructions for a specific kind of task. The agent reads these instructions when a request matches the skill's description.
When you ask an agent for an overview of an unfamiliar or large codebase, this skill tells it to run the Repomix tool. Repomix bundles all the project's files into a single text file, XML by default. The agent then searches that file for patterns such as authentication code, API endpoints, or largest files, and reports back a structure summary and metrics such as file counts and token estimates.
- Works on local folders and on public GitHub repositories you name
- Reports structure, file counts, token estimates and language breakdowns
- Intended for read-only exploration, not editing
Install the repomix-explorer skill
Download the skill ZIP from this page and unzip it. You can install it in one of two ways.
Option A: for your user account, unzip the folder into ~/.claude/skills/. Option B: for one project only, unzip it into the project's .claude/skills/ folder.
Option C: in the Claude apps, open Settings, go to Capabilities, then Skills, and upload the ZIP.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Make sure your machine can run it
The skill runs the Repomix CLI through npx, so Node.js with npx must be available. The Repomix CLI is fetched on demand with npx repomix@latest, so you do not install it separately. Remote repositories need network access to GitHub.
- Node.js with npx available on the command line
- Network access for remote repositories on GitHub
- The skill runs scripts and uses the network
npx repomix@latestHow to trigger the skill with natural requests
You do not need special syntax. Describe what you want in plain language and the agent will decide whether the skill applies. The skill is triggered by requests for structure or overviews, pattern discovery across many files, metrics, and any GitHub URL or owner/repo name you want explored.
- Structure: "Analyze this repo", "What's the structure of facebook/react?"
- Patterns: "Find all authentication code", "Where are the API endpoints defined?"
- Metrics: "How many files are in this project?", "Show me the largest files"
- Remote: "Explore https://github.com/microsoft/vscode"
Examples of what you can ask for
For a remote repository, the agent runs Repomix with the --remote flag and writes the output to /tmp so your current project stays clean. For a local folder, it packs that directory. For large repositories it can use --compress, which the skill describes as Tree-sitter compression with about 70% token reduction.
- Overview: "Explain the structure of this project"
- Remote: "Analyze the yamadashy/repomix repository"
- Language mix: "How much TypeScript vs JavaScript?"
- Pattern search: "Show me all React components"
npx repomix@latest --remote yamadashy/repomix --output /tmp/repomix-analysis.xmlKnow what the skill will not do
The skill is for understanding, not changing code. Its description says not to trigger for editing, refactoring or writing code in your current project, for git operations, running tests, builds or installs, or for reading a single known file. For a single known file, a direct read or grep is faster.
- Not for editing or refactoring your current project
- Not for a known file path or a single-symbol grep
- Not for sensitive or private repositories, since the code is packed and processed and remote fetches go over the network
Safety notes: scripts and network
This skill runs scripts and uses the network. The agent executes Repomix commands in a shell, and remote repositories are fetched from GitHub. The packed output contains the repository's code, so treat the generated file as containing whatever the repo contains.
Avoid using it on private or sensitive repositories. Remove large output files after analysis if you do not need them, as the skill itself recommends.
- Runs shell commands through npx
- Fetches remote repositories over the network
- Output may be large; clean it up with rm repomix-output.xml when done
rm repomix-output.xmlTips for better results
Name the repository explicitly in the form owner/repo or as a full GitHub URL. If you care about a branch, tag or commit, say so, since the skill supports a specific remote branch. Ask targeted questions such as where authentication lives, which files are largest, or where routes are defined, because those map to the grep searches the skill runs.
- Use owner/repo or a full GitHub URL for remote projects
- Name a branch, tag or commit when it matters
- Ask specific pattern questions for better search results
- Keep the default XML format unless you have a reason to change it
npx repomix@latest --remote facebook/react --compress --output /tmp/react-analysis.xmlWhat people use it for
- Getting oriented in a large inherited project by asking for its structure and main components
- Exploring a public open-source repository on GitHub without cloning it into your project
- Getting file counts, token estimates or a TypeScript vs JavaScript breakdown for a repo
- Finding where authentication code, API endpoints or database models are defined across many files
Frequently asked questions
Is the repomix-explorer skill free?
The skill is published under the MIT licence, and Repomix is the tool it runs. This page does not list prices, so check the project's own licence and terms for details.
What do I need to install before using it?
You need Node.js with npx available, plus network access if you want to explore remote GitHub repositories. The Repomix CLI is fetched automatically with npx repomix@latest.
Where do I put the skill files?
Unzip the skill into ~/.claude/skills/ for your user account, or into .claude/skills/ in a specific project. In the Claude apps, you can instead upload the ZIP under Settings, Capabilities, Skills.
Is it safe to use on private repositories?
The source does not recommend it for sensitive or private repositories, because the code is packed and processed and remote fetches go over the network. Use it on code you are comfortable sharing with the tools involved.
Why won't the skill edit my code?
It is designed for read-only exploration. Its description says not to trigger for editing, refactoring or writing code in the current project, so ask a normal coding request for changes.
How does it compare to just grepping a repo myself?
For a single known file or a single symbol, a direct read or grep is faster. The skill helps when you want a high-level overview or pattern discovery across many files, plus metrics like file counts and token estimates.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use repomix-explorer if you need to get oriented in a large or unfamiliar project, or want to explore a public GitHub repo without cloning it, and you are comfortable with the skill running scripts and network requests. Pick something else if you want to edit code, work with private or sensitive repositories, or need a quick lookup of one known file.
Download the skill