Repomix

🌐Community
by mrgoonie · vlatest · Repository

Repomix intelligently reorganizes your Markdown files for cleaner structure and improved readability – a productivity booster!

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add repomix npx -- -y @trustedskills/repomix
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "repomix": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/repomix"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

Repomix intelligently packages entire code repositories into single, AI-friendly files. It's designed to prepare codebases for analysis by large language models (LLMs) like Claude, ChatGPT, and Gemini. The tool supports various output formats and allows filtering of included files and removal of comments to optimize the context provided to these LLMs.

When to use it

  • Packaging codebases for AI analysis: Prepare repositories for review or understanding by an LLM.
  • Creating repository snapshots: Generate a consolidated view of a codebase at a specific point in time.
  • Analyzing third-party libraries: Package external dependencies for security audits or deeper inspection.
  • Preparing for security audits: Create formatted files suitable for automated security scanning tools and LLM analysis.

Key capabilities

  • Repository Packaging: Converts entire repositories into single output files.
  • AI-optimized formatting: Structures the output with clear separators to improve readability for LLMs.
  • Multiple output formats: Supports XML, Markdown, JSON, and plain text outputs.
  • Git-aware processing: Respects .gitignore rules when determining which files to include.
  • Token counting: Provides token counts to help manage the context window of LLMs.
  • Security checks: Performs basic security scans for sensitive information.
  • Remote Repository Support: Processes repositories directly from URLs without cloning.
  • Comment Removal: Removes comments from a wide range of programming languages.

Example prompts

Here are some examples of how you might instruct an AI agent using Repomix:

  1. "Package the current repository into a Markdown file for analysis."
  2. "Create an XML representation of the vendor/library repository for a security audit."
  3. "Generate a JSON file containing only TypeScript files from the project, with comments removed."

Tips & gotchas

  • Installation: Repomix can be installed via npm or Homebrew.
  • Remote repositories: When using remote repositories, ensure the URL is correct and accessible.
  • Token limits: Be mindful of LLM token limits when packaging large codebases; consider filtering files or removing comments to reduce size.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
mrgoonie
Installs
157

🌐 Community

Passed automated security scans.