본문으로 건너뛰기
cccskills
무료GitHub에 공개

repomix

Combine code from local directories or GitHub into one structured file for AI analysis. Examine project structure, search for related code, and check estimated tokens, the units AI models use to process text.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.

연동 도구FacebookGitHub
설치 방법 보기

이럴 때 유용합니다

  • Preparing a single codebase file for AI analysis
  • Reviewing a project's directory structure
  • Finding authentication code and database models
  • Checking estimated AI tokens before analysis

포함된 파일(1)

  • SKILL.md5.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Repomix — Codebase Packer & Analyzer

Pack entire codebases into a single, AI-friendly file for analysis. Repomix intelligently collects repository files, respects .gitignore, runs security checks, and generates structured output optimized for LLM consumption.

When to Use

  • "Analyze this repo" / "Explore this codebase"
  • "What's the structure of facebook/react?"
  • "Find all authentication-related code"
  • "How many tokens is this project?"
  • "Pack this repo for AI analysis"
  • "Show me the main components of vercel/next.js"

Quick Reference

Pack a Remote Repository

npx repomix@latest --remote <owner/repo> --output /tmp/<repo-name>-analysis.xml

Always output to a temporary directory (/tmp on Unix, %TEMP% on Windows) for remote repositories to avoid polluting the user's working directory.

Pack a Local Directory

npx repomix@latest [directory] --output /tmp/<name>-analysis.xml

Key Options

OptionDescription
--style <format>Output format: xml (default, recommended), markdown, plain, json
--compressTree-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 (for remote repos)

Workflow

Step 1: Pack the Repository

Choose the appropriate command based on the target:

# Remote repository (always output to /tmp)
npx repomix@latest --remote yamadashy/repomix --output /tmp/repomix-analysis.xml

# Large remote repo with compression
npx repomix@latest --remote facebook/react --compress --output /tmp/react-analysis.xml

# Local directory
npx repomix@latest ./src --output /tmp/src-analysis.xml

# Specific file types only
npx repomix@latest --include "**/*.{ts,tsx,js,jsx}" --output /tmp/filtered-analysis.xml

Step 2: Check Command Output

The command displays:

  • Files processed: Number of files included
  • Total characters: Size of content
  • Total tokens: Estimated AI tokens
  • Output file location: Where the file was saved

Note the output file location for subsequent analysis.

Step 3: Analyze the Output

Structure overview:

  1. Search for the file tree section (near the beginning of the output)
  2. Check the metrics summary for overall statistics

Search for patterns (use the output file path from Step 2):

# Find exports and main entry points
grep -iE "export.*function|export.*class" <output-file>

# Search with context
grep -iE -A 5 -B 5 "authentication|auth" <output-file>

# Find API endpoints
grep -iE "router|route|endpoint|api" <output-file>

# Find database models
grep -iE "model|schema|database|query" <output-file>

Read specific sections using offset/limit for large outputs.

Step 4: Report Findings

  • Metrics: Files, tokens, size from command output
  • Structure: Directory layout from file tree analysis
  • Key findings: Based on pattern search results
  • Next steps: Suggestions for deeper exploration

Best Practices

  1. Use --compress for large repos (>100k lines) to reduce token usage by ~70%
  2. Use pattern search first before reading entire output files
  3. Use a temporary directory for output (/tmp on Unix, %TEMP% on Windows) to keep the user's workspace clean
  4. Use --include to focus on specific parts of a codebase
  5. XML is the default and recommended format — it has clear file boundaries for structured analysis

Output Formats

FormatBest For
XML (default)Structured analysis, clear file boundaries
MarkdownHuman-readable documentation
PlainSimple grep-friendly output
JSONProgrammatic/machine analysis

Error Handling

  • Command fails: Check error message, verify repository URL/path, check permissions
  • Output too large: Use --compress, narrow scope with --include
  • Network issues (remote): Verify connection, suggest local clone as alternative
  • Pattern not found: Try alternative patterns, check file tree to verify files exist

Security

Repomix automatically excludes potentially sensitive files (API keys, credentials, .env files) through built-in security checks. Trust its security defaults unless the user explicitly requests otherwise.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Save research findings, fixes, and decisions in a shared Markdown notebook on disk. Search and organize notes across sessions, record when they inform actual work, and let unused notes expire automatically.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Saving research findings for future sessions
  • Reusing fixes for difficult bugs
  • Recording design decisions and their reasoning
yamadashy/repomix2.9만2026년 10월 18일 업데이트

Develop and maintain the WXT browser extension that adds a Repomix button to GitHub repository pages. The skill covers Chrome, Firefox, and Edge compatibility, extension scripts, translation files, and commands for building, linting, and testing.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Maintaining the GitHub Repomix button extension
  • Checking Chrome, Firefox, and Edge compatibility
  • Updating translations or adding a language
yamadashy/repomix2.9만2026년 10월 18일 업데이트

Write Git commit messages that preserve why changes were made. The skill keeps Conventional Commits subject lines and adds structured body entries for user intent, decisions, rejected alternatives, constraints, and lessons supported by the session context.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Recording the purpose behind a feature
  • Preserving design decisions and rejected alternatives
  • Documenting constraints and implementation lessons
yamadashy/repomix2.9만2026년 10월 18일 업데이트

Explore local or remote repositories with Repomix CLI to understand their structure, locate related code across files, and review file counts and estimated tokens, the units AI models use to process text.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Understanding an unfamiliar project's structure
  • Locating authentication code and API endpoints
  • Checking file counts and estimated AI tokens
yamadashy/repomix2.9만2026년 10월 18일 업데이트

Maintain the Repomix documentation website by editing guides, navigation, and search labels across languages. Follow its VitePress file structure to add a language and keep translations aligned with the English source.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Updating the Japanese installation guide
  • Changing navigation and sidebar labels
  • Adding a new language to the documentation
yamadashy/repomix2.9만2026년 10월 18일 업데이트

yamadashy의 스킬 모두 보기

이 스킬의 문제 신고