Claude Code Plugins
Repomix provides official plugins for Claude Code that integrate seamlessly with the AI-powered development environment. These plugins make it easy to analyze and pack codebases directly within Claude Code using natural language commands.
Available Plugins
1. repomix-mcp (MCP Server Plugin)
Foundation plugin that provides AI-powered codebase analysis through MCP server integration.
Features:
- Pack local and remote repositories
- Search through packed outputs
- Read files with built-in security scanning (Secretlint)
- Automatic Tree-sitter compression (~70% token reduction)
2. repomix-commands (Slash Commands Plugin)
Provides convenient slash commands for quick operations with natural language support.
Available Commands:
/repomix-commands:pack-local- Pack local codebase with various options/repomix-commands:pack-remote- Pack and analyze remote GitHub repositories
3. repomix-explorer:explorer (AI Analysis Agent Plugin)
AI-powered repository analysis agent that intelligently explores codebases using Repomix CLI.
Features:
- Natural language codebase exploration and analysis
- Intelligent pattern discovery and code structure understanding
- Incremental analysis using grep and targeted file reading
- Automatic context management for large repositories
Available Commands:
/repomix-explorer:explore-local- Analyze local codebase with AI assistance/repomix-explorer:explore-remote- Analyze remote GitHub repositories with AI assistance
How it works:
- Runs
npx repomix@latestto pack the repository - Uses Grep and Read tools to efficiently search the output
- Provides comprehensive analysis without consuming excessive context
Installation
1. Add the Repomix Plugin Marketplace
First, add the Repomix plugin marketplace to Claude Code:
/plugin marketplace add yamadashy/repomix2. Install Plugins
Install the plugins using the following commands:
# Install MCP server plugin (recommended foundation)
/plugin install repomix-mcp@repomix
# Install commands plugin (extends functionality)
/plugin install repomix-commands@repomix
# Install repository explorer plugin (AI-powered analysis)
/plugin install repomix-explorer@repomixPlugin Relationship
The repomix-mcp plugin is recommended as a foundation. The repomix-commands plugin provides convenient slash commands, while repomix-explorer adds AI-powered analysis capabilities. While you can install them independently, using all three provides the most comprehensive experience.
Alternative: Interactive Installation
You can also use the interactive plugin installer:
/pluginThis opens an interactive interface where you can browse and install available plugins.
Usage Examples
Packing a Local Codebase
Use the /repomix-commands:pack-local command with natural language instructions:
/repomix-commands:pack-local
Pack this project as markdown with compressionOther examples:
- "Pack the src directory only"
- "Pack TypeScript files with line numbers"
- "Generate output in JSON format"
Packing a Remote Repository
Use the /repomix-commands:pack-remote command to analyze GitHub repositories:
/repomix-commands:pack-remote yamadashy/repomix
Pack only TypeScript files from the yamadashy/repomix repositoryOther examples:
- "Pack the main branch with compression"
- "Include only documentation files"
- "Pack specific directories"
Exploring a Local Codebase with AI
Use the /repomix-explorer:explore-local command for AI-powered analysis:
/repomix-explorer:explore-local ./src
Find all authentication-related codeOther examples:
- "Analyze the structure of this project"
- "Show me the main components"
- "Find all API endpoints"
Exploring a Remote Repository with AI
Use the /repomix-explorer:explore-remote command to analyze GitHub repositories:
/repomix-explorer:explore-remote facebook/react
Show me the main component architectureOther examples:
- "Find all React hooks in the repository"
- "Explain the project structure"
- "Where are error boundaries defined?"
Related Resources
- MCP Server Documentation - Learn about the underlying MCP server
- Configuration - Customize Repomix behavior
- Security - Understanding security features
- Command Line Options - Available CLI options
Plugin Source Code
The plugin source code is available in the Repomix repository:
Feedback and Support
If you encounter issues or have suggestions for the Claude Code plugins: