repomix-explorer
Qué hace
Esta habilidad te ayuda a entender un repositorio de código grande o desconocido sin editarlo. Empaqueta el código y lee el resultado para explicar la estructura y las métricas. Es para quienes quieren una visión general de una base de código.
Cuándo usarla
- ✓Cuando pides analizar o explicar un repositorio que no has visto antes.
- ✓Cuando quieres encontrar dónde vive una función como la autenticación o los endpoints de la API en el código.
- ✓Cuando quieres estadísticas del código, como el número de archivos o los archivos más grandes.
Link de la skill
https://github.com/yamadashy/repomix/blob/main/skills/repomix-explorer/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Analiza el repositorio de vercel next.js y dime dónde están definidas las rutas de la API.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Tu agente ejecuta el comando de Repomix sobre una carpeta local o un repositorio de GitHub, y luego lee y busca en la salida empaquetada para responder tu pregunta. Sirve para tener una visión general, no para ediciones puntuales.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Cambia mi código?
No. Sirve para entender una base de código, no para hacer ediciones puntuales.
¿Puede buscar patrones?
Sí. Puede encontrar cosas como código de autenticación, componentes de React o modelos de base de datos.
¿Funciona con repositorios remotos?
Sí. Puede analizar un repositorio remoto de GitHub además de un directorio local.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9763
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
repomix
29 milAyuda a tu agente a empaquetar un proyecto de código completo en un solo archivo apto para IA, para explorar su estructura, encontrar patrones y contar tokens.
agent-carnet
29 milPermite que tu agente guarde y organice notas breves que persisten entre sesiones. Cada uso reinicia su plazo de 30 días, y las notas no usadas van a la papelera.
contextual-commit
29 milAyuda a tu agente a escribir mensajes de commit de git que registren por qué se hizo un cambio, no solo qué cambió, usando notas estructuradas en el cuerpo.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.