Lazy-loading system for Claude Code agents. Eliminates the "~16k tokens" warning by loading agents on-demand.
NEVER assume agents are pre-loaded. Always use this registry to discover and load agents.
User Request → search_agents(intent) → select best match → get_agent(name) → execute with agent
| 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 |
bun bin/search.js "<keywords>"bun bin/get.js <agent-name>User: "Can you review my authentication code for security issues?"
# 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
Quick Install (Recommended):
發現更多技能外掛,請訪問7w4.net。
# 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:
# 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:
~/.claude/skills/agent-registry/--install-deps (@clack/prompts for enhanced UI)Run the interactive migration script:
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
Fallback: Text-based number input
1,3,5)all to migrate everythingWhat init.js does:
~/.claude/agents/ and .claude/agents/ for agent files--move is explicit opt-in)registry.json)./install.sh --install-deps)~/.claude/skills/agent-registry/.claude/skills/agent-registry/ (optional override)Agents not migrated remain in their original locations and load normally (contributing to token overhead).
這是一款高質量的 Claude Code 技能,能有效解決 agent 太多導致上下文視窗消耗過快的問題,效果顯著。搜尋功能智慧好用,自動發現 agent 的設計非常貼心。文件詳細,錯誤處理完善,使用起來穩定可靠。美中不足的是目前主要基於關鍵詞匹配,對模糊意圖的理解還有提升空間。總體而言是一款實用性強、完成度高的優質技能。