| title | Repomix Explorer Skill (Agent Skills) |
|---|---|
| description | Repomix Explorer agent skillをインストールし、Claude CodeやAgent Skills形式対応のAIアシスタントでローカルおよびリモートコードベースを分析します。 |
Repomixは、AIコーディングアシスタントがRepomix CLIを使ってコードベースを分析・探索できる、すぐに使えるRepomix Explorerスキルを提供しています。
このスキルは、Claude CodeやAgent Skills形式に対応したAIアシスタント向けに設計されています。
Claude Codeでは、公式のRepomix Explorerプラグインをインストールしてください。
/plugin marketplace add yamadashy/repomix
/plugin install repomix-explorer@repomix
このプラグインでは、/repomix-explorer:explore-local や /repomix-explorer:explore-remote などの名前空間付きコマンドを使えます。詳しくはClaude Codeプラグインを参照してください。
Codex、Cursor、OpenClawなど、Agent Skills形式に対応したアシスタントでは、Skills CLIでスタンドアロンスキルをインストールします。
npx skills add yamadashy/repomix --skill repomix-explorer特定のアシスタントを指定する場合は --agent を使います。
npx skills add yamadashy/repomix --skill repomix-explorer --agent codex
npx skills add yamadashy/repomix --skill repomix-explorer --agent openclawHermes Agentでは、Hermes Agentのネイティブなskillsコマンドで単一ファイルのスキルをインストールできます。
hermes skills install https://raw.githubusercontent.com/yamadashy/repomix/main/skills/repomix-explorer/SKILL.mdHermes Agentでリポジトリ分析を主目的にする場合は、Repomixを直接MCPサーバーとして動かせるMCPサーバー設定も有力です。
インストール後、自然言語の指示でコードベースを分析できます。
"What's the structure of this repo?
https://github.com/facebook/react"
"What's in this project?
~/projects/my-app"
コードベースの理解だけでなく、自身の別のリポジトリを参考に機能を実装したい場合にも役立ちます。
Repomix Explorer スキルは、AIアシスタントに完全なワークフローをガイドします:
- repomixコマンドを実行 - リポジトリをAIフレンドリーな形式にパック
- 出力ファイルを分析 - パターン検索(grep)を使って関連コードを検索
- インサイトを提供 - 構造、メトリクス、実用的な推奨事項を報告
"I want to understand the architecture of this project.
https://github.com/vercel/next.js"
AIはrepomixを実行し、出力を分析して、コードベースの構造化された概要を提供します。
"Find all authentication-related code in this repository."
AIは認証パターンを検索し、ファイルごとに分類して、認証がどのように実装されているかを説明します。
"I want to implement a similar feature to what I did in my other project.
~/projects/my-other-app"
AIは別のリポジトリを分析し、自身の実装を参考にするお手伝いをします。
このスキルには以下が含まれます:
- ユーザー意図の認識 - コードベース分析を求めるさまざまな表現を理解
- repomixコマンドのガイダンス - 使用すべきオプション(
--compress、--includeなど)を把握 - 分析ワークフロー - パックされた出力を探索するための構造化されたアプローチ
- ベストプラクティス - ファイル全体を読む前にgrepを使うなどの効率化のヒント
- Agent Skills生成 - コードベースから独自のスキルを生成
- Claude Codeプラグイン - Claude Code用のRepomixプラグイン
- MCPサーバー - 代替の統合方法