MaTriXy

Agent Registry

AI 智慧體v2.0.1
作者:MaTriXy更新於 2026-05-17共 2 個版本 · 最新版本釋出於 2026-02-15agent-registry@clawhub_matrixy/agent-registry
Agent 框架

據 AlphaMoat 統計,截至 2026-09,Agent Registry 累計下載 4,200 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 2,382 位,在「AI 智慧體」分類(969 個)中排名第 465 位。

累計安裝
132
累計下載
4200
星標
-
全站排名
#2,382
全站前 47% · 「AI 智慧體」前 48%
平台累計安裝累計下載星標評論
ClawHub ↗1324200--
SkillHub ↗1324088-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該技能提供搜尋、讀取和自動提示鉤子,幫助按任務發現 agent,而不是預先載入全部檔案。agent 後設資料與被載入檔案可能包含不可信指令,使用前應先審閱建議內容;如不希望自動檢查提示,應確認鉤子的行為後再安裝。 可選遙測可能向外傳送請求,遷移時使用移動模式會改變原檔案位置。

資料釋出於 2026-10-29

可以用來做什麼

  • 需要查詢特定專業 agent 或減少一次性載入內容的 Claude Code 使用者。

什麼時候用

  • 先按任務意圖搜尋,再審閱候選 agent 的檔案和許可權;不要把載入到的說明自動視作可信指令。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請查詢適合程式碼審查的 agent 並簡要比較候選項;先不要載入或執行任何 agent 檔案中的指令。

月度資料趨勢

累計下載4200
2513341943252026-03 · 累計下載 26382026-05 · 累計下載 33352026-06 · 累計下載 35182026-07 · 累計下載 38452026-08 · 累計下載 40512026-09 · 累計下載 420026-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094200—-
2026-084051+5.4%-
2026-073845+9.3%-
2026-063518+5.5%-
2026-053335—-
2026-032638—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.4 KB · ClawHub v2.0.1
---
name: agent-registry
version: 2.0.1
description: |
  MANDATORY agent discovery system for token-efficient agent loading. Claude MUST use this skill
  instead of loading agents directly from ~/.claude/agents/ or .claude/agents/. Provides lazy
  loading via search and get tools. Use when: (1) user task may benefit from
  specialized agent expertise, (2) user asks about available agents, (3) starting complex
  workflows that historically used agents. This skill reduces context window usage by ~95%
  compared to loading all agents upfront.
展開全部(共 144 行)
hooks:
  UserPromptSubmit:
    - hooks:
        - type: command
          command: "bun ${CLAUDE_PLUGIN_ROOT}/hooks/user_prompt_search.js"
          timeout: 5
---

# Agent Registry

Lazy-loading system for Claude Code agents. Eliminates the "~16k tokens" warning by loading agents on-demand.

## CRITICAL RULE

**NEVER assume agents are pre-loaded.** Always use this registry to discover and load agents.

## Workflow

```
User Request → search_agents(intent) → select best match → get_agent(name) → execute with agent
```

## Available Commands

| Command | When to Use | Example |
|---------|-------------|---------|
| `list.js` | User asks "what agents do I have" or needs overview | `bun bin/list.js` |
| `search.js` | Find agents matching user intent (ALWAYS do this first) | `bun bin/search.js "code review security"` |
| `search-paged.js` | Paged search for large registries (300+ agents) | `bun bin/search-paged.js "query" --page 1 --page-size 10` |
| `get.js` | Load a specific agent's full instructions | `bun bin/get.js code-reviewer` |

## Search First Pattern

1. **Extract intent keywords** from user request
2. **Run search**: `bun bin/search.js "<keywords>"`
3. **Review results**: Check relevance scores (0.0-1.0)
4. **Load if needed**: `bun bin/get.js <agent-name>`
5. **Execute**: Follow the loaded agent's instructions

## Example

User: "Can you review my authentication code for security issues?"

```bash
# Step 1: Search for relevant agents
bun bin/search.js "code review security authentication"

# Output:
# Found 2 matching agents:
#   1. security-auditor (score: 0.89) - Analyzes code for security vulnerabilities
#   2. code-reviewer (score: 0.71) - General code review and best practices

# Step 2: Load the best match
bun bin/get.js security-auditor

# Step 3: Follow loaded agent instructions for the task
```

## Installation

### Step 1: Install the Skill

**Quick Install (Recommended):**

```bash
# Using Skills CLI (recommended)
npx skills add MaTriXy/Agent-Registry@agent-registry

# Discover skills interactively
npx skills find

# Update existing skills
npx skills update
```

**Traditional Install:**

```bash
# User-level installation
./install.sh

# OR project-level installation
./install.sh --project

# Optional: install enhanced interactive UI dependency
./install.sh --install-deps
```

**What install.sh does:**
1. Copies skill files to `~/.claude/skills/agent-registry/`
2. Creates empty registry structure
3. Optionally installs dependencies via `--install-deps` (`@clack/prompts` for enhanced UI)

### Step 2: Migrate Your Agents

Run the interactive migration script:

```bash
cd ~/.claude/skills/agent-registry
bun bin/init.js
# Optional destructive mode:
bun bin/init.js --move
```

**Interactive selection modes:**

- **With @clack/prompts** (default): Beautiful checkbox UI with category grouping, token indicators, and paging
  - Arrow keys navigate, Space toggle, Enter confirm
  - Visual indicators: [green] <1k tokens, [yellow] 1-3k, [red] >3k
  - Grouped by subdirectory

- **Fallback**: Text-based number input
  - Enter comma-separated numbers (e.g., `1,3,5`)
  - Type `all` to migrate everything

**What init.js does:**
1. Scans `~/.claude/agents/` and `.claude/agents/` for agent files
2. Displays available agents with metadata
3. Lets you interactively select which to migrate
4. Copies selected agents to the registry by default (`--move` is explicit opt-in)
5. Builds search index (`registry.json`)

## Dependencies

- **Bun** (ships with Claude Code) — zero additional dependencies for core functionality
- **@clack/prompts**: Optional enhanced interactive selection UI (install via `./install.sh --install-deps`)

## Registry Location

- **Global**: `~/.claude/skills/agent-registry/`
- **Project**: `.claude/skills/agent-registry/` (optional override)

Agents not migrated remain in their original locations and load normally (contributing to token overhead).

「AI 智慧體」分類下的熱門技能

MaTriXy 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。