Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By dmajimav1.0.1MITIn 1 marketplace
プロンプト送信時に available-skills を自動スコアリングしてフック注入で適合スキルを推奨。ロジック編集は対象外
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
ユーザプロンプトに対し、Claude Code 有効化スキルの description / evals を分析してルーティング推奨を UserPromptSubmit フックで注入し、スキルの自動起動率を高めるプラグイン。
完全ローカルで動作する埋め込みベース意味的類似度判定 をオプトインで搭載(既定無効)。外部 API には一切接続せず、fastembed + 多言語 MiniLM モデル(約 120MB)で同義語・言い換えを意味ベクトルで捕捉します。有効化すると現行ヒューリスティックでは拾えない表現バリエーションを大幅に改善できます。詳細は「埋め込み判定」セクションを参照してください。
このファイルは 人間向けのリファレンス です。Claude Code がスキル動作中に参照することはありません。各スキルの動作本体は skills/{skill-name}/SKILL.md および references/ 配下を参照してください。
| 機能 | 種別 | 説明 |
|---|---|---|
skill-router | スキル | ルーティングロジック本体・検証用 evals の保持 |
/router-rebuild | コマンド | インデックスを手動で再構築する(embedding 有効時はベクトルも差分更新) |
/router-status | コマンド | 統計・直近のルーティング決定・スコア分布を表示する(--clean で 30 日超セッション削除)。stats.embedding を含む |
/router-toggle | コマンド | プラグインを on / off に切り替える |
/router-embedding-cache | コマンド | 埋め込みキャッシュの参照・クリア・スキル別詳細表示 |
SessionStart フック | フック | startup / resume / clear 時にインデックス(index.json + inverted_index.json)を自動構築する(hooks.json timeout 360s)。venv ライフサイクル管理(TTL 超過分の撤去 → 必要時の構築)も同フックが担当する。venv を構築するのは embedding.enabled: true のときだけで、既定では構築しない。embedding.enabled 時は各スキルのベクトル化(fastembed ONNX 推論)も実施する。timeout 内訳の目安: venv create 60s + pip install 180s + index build 数 s + ベクトル化 100 スキルで 10s 程度 = 計 250s 程度(埋め込みの初回有効化時のみ) |
UserPromptSubmit フック | フック | プロンプトを 5W1H 抽出 + 逆引き索引 + スコア閾値判定し、high / mid 帯のスキル候補を additionalContext で注入する(hooks.json timeout 30s。平常時は 1 秒前後で完了する)。embedding.enabled 時はプロンプトを fastembed でベクトル化してコサイン類似度を heuristic スコアに加算する(ヒューリスティック処理が 1.5 秒を超えた場合は加算を省略して即応答する)。venv の撤去・構築はこのフックでは行わない |
python3 または python として解決できること/plugin marketplace add dmajima/claude-plugins
/plugin install skill-router@dmajima-claude-plugins
# 1. リポジトリを複製
git clone https://github.com/dmajima/claude-plugins.git <local-path>
# 2. 必要に応じてブランチ・タグ切替
cd <local-path>
git checkout main
# 3. ローカルパスでマーケットプレイスを登録
/plugin marketplace add <local-path>
# 4. プラグインをインストール
/plugin install skill-router@dmajima-claude-plugins
~/.claude/settings.json の extraKnownMarketplaces で autoUpdate: true を設定すると、セッション起動時に自動更新されます。
{
"extraKnownMarketplaces": {
"dmajima-claude-plugins": {
"source": { "type": "github", "repo": "dmajima/claude-plugins" },
"autoUpdate": true
}
}
}
依存プラグインなし(標準ライブラリのみで動作)。
plugin.json に dependencies の記載はなく、別マーケットプレイスのプラグインへの参照も持ちません。anthropic-agent-skills 等の追加マーケットプレイスを別途登録する必要はありません。
Python 等の外部ツール依存
利用者環境に以下の前提となる外部ツールが必要です:
python3 または python として PATH 上に解決可能)対応プラットフォーム
embedding.enabled=true を利用する場合、fastembed の依存 onnxruntime が動作する以下のプラットフォームをサポートします。
| プラットフォーム | 状態 |
|---|---|
| Windows x86_64 | サポート |
| Linux x86_64 | サポート |
| macOS x86_64 / arm64 | サポート |
| Linux ARM64 / aarch64 | onnxruntime バージョンによっては wheel 未配布。動作要確認 |
| Windows ARM64 | wheel 未配布のバージョンあり。動作要確認 |
未対応プラットフォームでは pip install が失敗し、venv 再構築が枯渇すると埋め込み機能が無効化されます(heuristic にフェイルオープン)。embedding.enabled=false(既定)であれば全プラットフォームで動作します。
/router-rebuild
/router-status
/router-status でインデックス生成統計とスコア分布ヒストグラムが表示されれば導入完了です。
/router-rebuild # インデックスを手動再構築(embedding 有効時はベクトルも差分更新)
/router-status # 統計と直近の決定を表示(stats.embedding を含む)
/router-status --clean # 30 日超のセッション履歴を削除
/router-toggle on # ルーティング有効化
/router-toggle off # ルーティング無効化(disabled フラグファイル生成)
/router-embedding-cache # 埋め込みキャッシュ統計を表示
/router-embedding-cache --clear # 埋め込みキャッシュを全削除
/router-embedding-cache --show <qn> # 指定スキルのキャッシュ詳細を表示
disabled フラグファイルは以下の優先順位で route_prompt.sh から参照されます(最初に見つかった時点でルーティングをスキップします)。
| 優先 | パス | スコープ |
|---|---|---|
| 1 | ${CLAUDE_PLUGIN_DATA}/disabled | プラグイン永続データ領域(提供されていれば最優先) |
| 2 | <repo-root>/.claude/.local/plugins/skill-router/disabled | リポジトリスコープ |
| 3 | ~/.claude/.local/plugins/skill-router/disabled | ユーザスコープ(最終フォールバック) |
| 発話例 | 起動 |
|---|---|
| 「router のインデックスを再構築して」 | /router-rebuild |
| 「router の状態を確認したい」 | /router-status |
| 「skill-router を一時停止して」 | /router-toggle off |
| 「埋め込みキャッシュの状態を見せて」 | /router-embedding-cache |
| 「: の埋め込みを確認したい」 | /router-embedding-cache --show <qualified_name> |
ユーザがプロンプトを送信するたびに、UserPromptSubmit フックが自動発火し、適合度の高いスキルがある場合のみ additionalContext で推奨が注入されます。閾値未満(low 帯)では何も注入せず通常応答に進みます。
<base>/config.json で重み・閾値を調整できます。<base> は以下の優先順位で解決されます。
${CLAUDE_PLUGIN_DATA}(定義され書込可能なら最優先)<repo-root>/.claude/.local/plugins/skill-router/~/.claude/.local/plugins/skill-router/npx claudepluginhub dmajima/claude-plugins --plugin skill-routerPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.