Skip to content
Agentmart
Submit a tool

repomix

Pack repository contents into AI-friendly formats (XML, Markdown, JSON, plain text) for LLM context.

Skill by EndUser123

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/enduser123-repomix

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Pack repository contents into AI-friendly formats (XML, Markdown, JSON, plain text) for LLM context.

Use cases: documents, ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/repomix

What's inside

Skill name
repomix
Description
Pack repository contents into AI-friendly formats (XML, Markdown, JSON, plain text) for LLM context.
License
MIT
Instructions
141 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# repomix

**Goal:** Pack repository contents into a single AI-friendly file for LLM context.

**Prerequisites:** `repomix` installed globally via `npm install -g repomix` or `pip install repomix`.

---

## Usage

```bash
# Basic usage — pack current directory
repomix

# Pack specific directory
repomix /path/to/repo

# Output to custom file
repomix -o output.xml

# Markdown output (most readable for LLMs)
repomix --style markdown

# Include git diffs and logs
repomix --include-diffs --include-logs

# Show only summary, no file contents
repomix --no-files

# Copy to clipboard
repomix --copy

# Output to stdout (pipe to LLM)
repomix --stdout > output.txt
```

---

## Output Formats

| Style | Use Case |
|-------|----------|
| `xml` | Default, structured parsing |
| `markdown` | Human-readable, most common |
| `json` | Structured data, tooling |
| `plain` | Raw text, minimal overhead |

---

## Key Options

### File Selection
- `--include <patterns>` — Include only matching files (glob patterns, comma-separated)
- `-i, --ignore <patterns>` — Exclude matching files
- `--top-files-len <N>` — Number of largest files to show in summary (default: 5)

### Output Control
- `--style <type>` — Output format (xml, markdown, json, plain)
- `-o, --output <file>` — Output file path
- `--compress` — Extract essential code structure only (classes, functions, interfaces) using Tree-sitter
- `--split-output <size>` — Split into multiple files (e.g., 500kb, 2mb)

### Git Integration
- `--include-diffs` — Add working tree and staged changes
- `--include-logs` — Add commit history (default: 50 recent commits)
- `--no-git-sort-by-changes` — Don't sort by git change frequency

### Content Filtering
- `--remove-comments` — Strip code comments
- `--remove-empty-lines` — Compact output
- `--truncate-base64` — Truncate long base64 strings

---

## Claude Code Skill Generation

Repomix can generate a SKILL.md for Claude Code:

```bash
repomix --skill --skill-dir /path/to/output
```

This generates:
- `SKILL.md` — Main skill file
- `project-structure.md` — Directory tree with line counts
- `files.md` — All file contents (searchable with `## File: <path>`)
- `tech-stacks.md` — Languages, frameworks, dependencies per package

---

## Examples

### Pack and copy to clipboard
```bash
repomix --style markdown --copy
```

### Pack with custom header
```bash
repomix --style markdown --header-text "My project context" -o context.md
```

### Compress large repo (extract structure only)
```bash
repomix --compress --style markdown -o compressed.md
```

### Git-aware output with diffs
```bash
repomix --style markdown --include-diffs --include-logs -o full-context.md
```

### Pipe directly to LLM
```bash
repomix --style markdown --stdout | cline "Analyze this codebase"
```

---

## Integration with LLMs

From EndUser123/search-research, MIT.

More from EndUser123/search-research

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 23, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from EndUser123

Cite this page

repomix skill. Agent Mart. https://agentmart.dev/skills/enduser123-repomix (last updated 2026-10-24)