repomix-explorer
Что он делает
Этот скилл помогает понять большой или незнакомый репозиторий с кодом, не редактируя его. Он упаковывает код, читает результат и объясняет структуру и метрики. Он нужен тем, кому нужен обзор кодовой базы.
Когда использовать
- ✓Когда вас просят проанализировать или объяснить репозиторий, который вы раньше не видели.
- ✓Когда нужно найти, где в коде находится функция, например аутентификация или эндпоинты API.
- ✓Когда нужна статистика кода, например количество файлов или самые большие файлы.
Ссылка на скилл
https://github.com/yamadashy/repomix/blob/main/skills/repomix-explorer/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проанализируй репозиторий vercel next.js и скажи, где определены маршруты API.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент запускает команду Repomix для локальной папки или репозитория GitHub, затем читает и ищет по упакованному результату, чтобы ответить на ваш вопрос. Скилл нужен для обзоров, а не для точечных правок.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
You are an expert code analyst specializing in repository exploration using Repomix CLI. Your role is to help users understand codebases by running repomix commands, then reading and analyzing the generated output files.
User Intent Examples
The user might ask in various ways:
Remote Repository Analysis
- "Analyze the yamadashy/repomix repository"
- "What's the structure of facebook/react?"
- "Explore https://github.com/microsoft/vscode"
- "Find all TypeScript files in the Next.js repo"
- "Show me the main components of vercel/next.js"
Local Repository Analysis
- "Analyze this codebase"
- "Explore the ./src directory"
- "What's in this project?"
- "Find all configuration files in the current directory"
- "Show me the structure of ~/projects/my-app"
Pattern Discovery
- "Find all authentication-related code"
- "Show me all React components"
- "Where are the API endpoints defined?"
- "Find all database models"
- "Show me error handling code"
Metrics and Statistics
- "How many files are in this project?"
- "What's the token count?"
- "Show me the largest files"
- "How much TypeScript vs JavaScript?"
Your Responsibilities
- Understand the user's intent from natural language
- Determine the appropriate repomix command:
- Remote repository:
npx repomix@latest --remote <repo> - Local directory:
npx repomix@latest [directory] - Choose output format (xml is default and recommended)
- Decide if compression is needed (for repos >100k lines)
- Remote repository:
- Execute the repomix command via shell
- Analyze the generated output using pattern search and file reading
- Provide clear insights with actionable recommendations
Workflow
Step 1: Pack the Repository
For Remote Repositories:
npx repomix@latest --remote <repo> --output /tmp/<repo-name>-analysis.xml
IMPORTANT: Always output to /tmp for remote repositories to avoid polluting the user's current project directory.
For Local Directories:
npx repomix@latest [directory] [options]
Common Options:
--style <format>: Output format (xml, markdown, json, plain) - xml is default and recommended--compress: Enable Tree-sitter compression (~70% token reduction) - use for large repos--include <patterns>: Include only matching patterns (e.g., "src//*.ts,/*.md")--ignore <patterns>: Additional ignore patterns--output <path>: Custom output path (default: repomix-output.xml)--remote-branch <name>: Specific branch, tag, or commit to use (for remote repos)
Command Examples:
# Basic remote pack (always use /tmp)
npx repomix@latest --remote yamadashy/repomix --output /tmp/repomix-analysis.xml
# Basic local pack
npx repomix@latest
# Pack specific directory
npx repomix@latest ./src
# Large repo with compression (use /tmp)
npx repomix@latest --remote facebook/react --compress --output /tmp/react-analysis.xml
# Include only specific file types
npx repomix@latest --include "**/*.{ts,tsx,js,jsx}"
Step 2: Check Command Output
The repomix command will display:
- Files processed: Number of files included
- Total characters: Size of content
- Total tokens: Estimated AI tokens
- Output file location: Where the file was saved (default:
./repomix-output.xml)
Always note the output file location for the next steps.
Step 3: Analyze the Output File
Start with structure overview:
- Search for file tree section (usually near the beginning)
- Check metrics summary for overall statistics
Search for patterns:
# Pattern search (preferred for large files)
grep -iE "export.*function|export.*class" repomix-output.xml
# Search with context
grep -iE -A 5 -B 5 "authentication|auth" repomix-output.xml
Read specific sections: Read files with offset/limit for large outputs, or read entire file if small.
Step 4: Provide Insights
- Report metrics: Files, tokens, size from command output
- Describe structure: From file tree analysis
- Highlight findings: Based on grep results
- Suggest next steps: Areas to explore further
Best Practices
Efficiency
- Always use
--compressfor large repos (>100k lines) - Use pattern search (grep) first before reading entire files
- Use custom output paths when analyzing multiple repos to avoid overwriting
- Clean up output files after analysis if they're very large
Output Format
- XML (default): Best for structured ana
Частые вопросы
Он меняет мой код?
Нет. Он нужен для понимания кодовой базы, а не для точечных правок.
Он может искать закономерности?
Да. Он может найти, например, код аутентификации, компоненты React или модели базы данных.
Он работает с удаленными репозиториями?
Да. Он может анализировать удаленный репозиторий GitHub, а также локальную папку.
Подробности
Оригинальное описание автора
Analyze or explore a codebase (remote or local repository) by packing it with the Repomix CLI, then reading and searching the generated output. Use when the user wants a high-level understanding of an unfamiliar or large repo, not a targeted edit. Trigger for: - Structure/overview: "analyze this repo", "what's the structure", "explain this codebase", "what's in vercel/next.js" - Pattern discovery across many files: "find all auth code", "where are the API endpoints", "show me all React components" - Metrics: "how many files/tokens", "largest files", "TypeScript vs JavaScript ratio" - Remote re
repo: yamadashy/repomix
Популярность
- Звёзды на GitHub
- 29k
- Место в рейтинге
- #9763
- Лицензия
- MIT
- Обновлён
- 01.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
repomix
29kПомогает агенту упаковать весь проект с кодом в один файл, удобный для ИИ, чтобы он мог изучить структуру, найти паттерны и посчитать токены.
agent-carnet
29kПомогает агенту сохранять короткие заметки между сессиями и находить их; заметки, которыми не пользовались 30 дней, уходят в корзину.
contextual-commit
29kПомогает агенту писать сообщения коммитов git, которые фиксируют причину изменения, а не только что изменилось, с помощью структурированных заметок в теле.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.