repomix
Package entire code repositories into single AI-friendly files using Repomix. Capabilities include pack codebases with customizable include/exclude patterns, generate multiple output formats (XML, Markdown, plain text), preserve file structure and context, optimize for AI
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Package entire code repositories into single AI-friendly files using Repomix. Capabilities include pack codebases with customizable include/exclude patterns, generate multiple output formats (XML, Markdown, plain text), preserve file structure and context, optimize for AI consumption with token counting, filter by file types and directories, add custom headers and summaries. Use when packaging codebases for AI analysis, creating repository snapshots for LLM context, analyzing third-party libraries, preparing for security audits, generating documentation context, or evaluating unfamiliar codebases.
How to use
Zainstaluj Repomix globalnie za pomocą npm (npm install -g repomix) lub Homebrew na macOS/Linux (brew install repomix). Sprawdź poprawność instalacji poleceniem repomix --version.
Przejdź do katalogu projektu, który chcesz spakować, i uruchom repomix bez parametrów — narzędzie automatycznie wygeneruje plik repomix-output.xml zawierający całą strukturę kodu.
Jeśli chcesz zmienić format wyjściowy, użyj flagi --style: repomix --style markdown dla Markdown, repomix --style json dla JSON lub repomix --style plain dla tekstu zwykłego.
Aby spakować zdalne repozytorium bez klonowania, użyj flagi --remote z nazwą użytkownika i repozytorium, na przykład npx repomix --remote owner/repo.
Dostosuj zawartość pakietu za pomocą filtrów: --include "src/**/*.ts" ograniczy pakowanie do wybranych plików, a --remove-comments usunie komentarze. Określ nazwę pliku wyjściowego flagą -o, na przykład -o output.md.
Wygenerowany plik możesz teraz wysłać do Claude'a lub innego modelu AI jako kontekst do analizy, audytu bezpieczeństwa lub generowania dokumentacji.