/search-research:repomixfrom search-research
Pack repository contents into AI-friendly formats (XML, Markdown, JSON, plain text) for LLM context.
Ships in search-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
# 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
| Style | Use Case |
|---|---|
xml | Default, structured parsing |
markdown | Human-readable, most common |
json | Structured data, tooling |
plain | Raw text, minimal overhead |
--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)--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)--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--remove-comments — Strip code comments--remove-empty-lines — Compact output--truncate-base64 — Truncate long base64 stringsRepomix can generate a SKILL.md for Claude Code:
repomix --skill --skill-dir /path/to/output
This generates:
SKILL.md — Main skill fileproject-structure.md — Directory tree with line countsfiles.md — All file contents (searchable with ## File: <path>)tech-stacks.md — Languages, frameworks, dependencies per packagerepomix --style markdown --copy
repomix --style markdown --header-text "My project context" -o context.md
repomix --compress --style markdown -o compressed.md
repomix --style markdown --include-diffs --include-logs -o full-context.md
repomix --style markdown --stdout | cline "Analyze this codebase"
Claude Code: Use --skill flag for Claude-specific output format.
Other LLMs: Use --style markdown for best readability.
Token estimation: Repomix shows token counts per file and total — useful for context window management.
Default output: repomix-output.xml (or format based on --style).
Staging: For pipeline use, redirect to P://.staging/.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (enduser123/search-research) — no native marketplace selected
npx claudepluginhub p/enduser123-search-research16 skills in this plugin
/aidAI-Distiller wrapper for code analysis - refactoring, security, performance, architecture./allCompatibility wrapper for the canonical /research workflow; preserves the historical /all invocation./chsDedicated chat history search with summarization, workspace aliases, tool filtering, context preview, session stats, and branch filtering/chs-evalRun golden-case retrieval evaluation against the CHS database and report per-case + mean recall/context7Docs-as-Code: Fetch fresh, version-specific documentation via Context7 API./crawlIngest websites into QMD wiki collections for semantic search via /search and /explore. Crawls with crawl4ai, dedupes by SHA256, injects [[wikilinks]] to related pages, logs to log.md, and rebuilds the qmd index. Use when adding web docs or articles to the searchable vault.