agents-search
Skill0 starsChanged 2 months agoMITView on GitHub
Discover, search, and manage Claude Code agents. Use when you want to find available agents, list installed agents, or refresh the agent catalog. Triggers on: "search agents", "list agents", "find agent", "what agents", "agent catalog".
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 11 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Use Glob to enumerate all files at ~/.claude/agents/*.md.
- Distinctive: line 52
If one or more agents match, render a markdown table:
- Distinctive: line 64
If no agents match, output exactly:
- Very specific: line 70
If Glob returns no results (no agents installed), check ~/.claude/cache/agents-catalog.md — if it exists and is less than 12 hours old (use
- Very specific: line 97
If ~/.claude/agents/ does not exist or contains no .md files, output:
- Distinctive: line 109
Read a specific agent's full definition and offer install / view options.
- Very specific: line 120
If not found locally: check whether ~/.claude/cache/agents-catalog.md exists via Read.
- Very specific: line 121
If the catalog exists, search it for a section or entry matching <name> (case-insensitive).
- Distinctive: line 122
If a match is found, display the matching content and offer the user three options:
- Distinctive: line 126
If the catalog does not exist or contains no match, output:
- Very specific: line 141
If
--fetchflag is present: Read the mtime of ~/.claude/cache/agents-catalog.md now (before deleting anything) using - Very specific: line 146
Check whether ~/.claude/cache/agents-catalog.md exists via Read.
- Very specific: line 147
If it exists, delete it using Bash: rm ~/.claude/cache/agents-catalog.md.
- Distinctive: line 148
If it does not exist, note "No cache file found."
- Distinctive: line 160
Use HTTPS only (SEC-3).
- Very specific: line 161
If the fetch succeeds, ensure ~/.claude/cache/ exists (Bash: mkdir -p ~/.claude/cache) and save the content to …
- Distinctive: line 170
If the fetch fails (network error, non-200, timeout), do not hard-fail (REL-1).
- Distinctive: line 178
Do not throw or abort; return gracefully.
- Very specific: line 187
Run Bash(stat -c %Y ~/.claude/cache/agents-catalog.md 2>/dev/null || stat -f %m ~/.claude/cache/agents-catalog.md 2>/dev/null || echo 0) to …
- Very specific: line 188
If (now - mtime) > 43200 seconds (12 hours), display an inline notice:
- Distinctive: line 200
All file I/O uses Claude Code built-in tools — this is a skill, not a shell script:
- Distinctive: line 217
Case-insensitive everywhere: All name and description matching is case-insensitive.
- Very specific: line 221
Read before write: Use Read to check existing files before Write to avoid blind overwrites without user confirmation.
- Very specific: line 223
User drives installs: Never silently write to ~/.claude/agents/ without presenting options and getting implicit or explicit user consent.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agents Search — Discovery and Management
Discover, search, and manage Claude Code sub-agents installed under ~/.claude/agents/.
Supports four sub-commands: search, list, fetch, and invalidate.
Arguments
$0— sub-command:search,list,fetch, orinvalidate. If not provided, default tolist.$1— query string (forsearch), agent name (forfetch), or--fetchflag (forinvalidate).
Sub-Commands
search <query>
Find installed agents whose name or description matches a query string.
Steps:
- Use
Globto enumerate all files at~/.claude/agents/*.md. - For each file, use
Readto load its content (frontmatter + body). Parse YAML frontmatter (the block between the first---and the second---) to extract:name(string)model(string, may be absent — default toinherit)tools(array or comma-separated string, may be absent — default to"")description(string — use only the first line if multi-line)
- Perform a case-insensitive substring match of
<query>against bothnameand the first line ofdescription. Include a file if either field matches. If one or more agents match, render a markdown table:
| Name | Model | Tools | Description | | ---- | ----- | ----- | ----------- | | ... | ... | ... | ... |Toolscolumn: join array entries with", "or display the raw string; truncate to 40 chars with…if longer.Descriptioncolumn: first line of thedescriptionfield only.
If no agents match, output exactly:
No agents found matching '<query>'- If Glob returns no results (no agents installed), check
~/.claude/cache/agents-catalog.md— if it exists and is less than 12 hours old (useBash(stat -c %Y ~/.claude/cache/agents-catalog.md 2>/dev/null || stat -f %m ~/.claude/cache/agents-catalog.md 2>/dev/null || echo 0)to check mtime), display results from the catalog instead and note they are from the cached remote catalog.
list
List all installed agents grouped by model tier.
Steps:
- Use
Globto enumerate all files at~/.claude/agents/*.md. - For each file,
Readits frontmatter and extractname,model,tools,description(same parsing rules assearch). - Group agents by model tier in this order:
- opus — entries where
modelcontainsopus - sonnet — entries where
modelcontainssonnet - haiku — entries where
modelcontainshaiku - inherit — entries with no
modelfield,model: inherit, or any other value
- opus — entries where
For each non-empty tier, render a section header and a table:
### Opus | Name | Model | Tools | Description | | ---- | ----- | ----- | ----------- |If
~/.claude/agents/does not exist or contains no.mdfiles, output:No agents installed. Run `/agents:search fetch <name>` to install one.- If Glob returns no results (no agents installed), check
~/.claude/cache/agents-catalog.md— if it exists and is less than 12 hours old (useBash(stat -c %Y ~/.claude/cache/agents-catalog.md 2>/dev/null || stat -f %m ~/.claude/cache/agents-catalog.md 2>/dev/null || echo 0)to check mtime), display results from the catalog instead and note they are from the cached remote catalog.
fetch <name>
Read a specific agent's full definition and offer install / view options.
Steps:
- Construct the local path
~/.claude/agents/<name>.md. - Attempt
Readon that path.- If found locally: display the agent's frontmatter fields (one per line,
key: value) followed by the full body. Then present the user with options:- Already installed — offer to re-display or customize.
- Customize — open the file for editing via a follow-up Edit call.
- View only — no further action.
- If found locally: display the agent's frontmatter fields (one per line,
- If not found locally: check whether
~/.claude/cache/agents-catalog.mdexists viaRead.- If the catalog exists, search it for a section or entry matching
<name>(case-insensitive). If a match is found, display the matching content and offer the user three options:- Install — write the agent definition to
~/.claude/agents/<name>.mdusingWrite. - Customize — show the content and ask the user to provide edits before writing.
- View only — no further action.
- Install — write the agent definition to
If the catalog does not exist or contains no match, output:
Agent '<name>' not found locally or in catalog. Run `/agents:search invalidate --fetch` to refresh the catalog, then try again.
- If the catalog exists, search it for a section or entry matching
invalidate [--fetch]
Clear the local agent catalog cache, optionally refreshing it from GitHub.
Steps:
- If
--fetchflag is present: Read the mtime of~/.claude/cache/agents-catalog.mdnow (before deleting anything) usingBash(stat -c %Y ~/.claude/cache/agents-catalog.md 2>/dev/null || stat -f %m ~/.claude/cache/agents-catalog.md 2>/dev/null || echo 0). Store the result for informational use later. - Check whether
~/.claude/cache/agents-catalog.mdexists viaRead.- If it exists, delete it using
Bash:rm ~/.claude/cache/agents-catalog.md. - If it does not exist, note "No cache file found."
- If it exists, delete it using
Without
--fetch(cache clear only): Output:Cache cleared.- With
--fetch(clear and refresh — user explicitly requested a fresh fetch):- Fetch the catalog using
WebFetchfrom:https://raw.githubusercontent.com/VoltAgent/awesome-claude-code-subagents/main/README.md- Use HTTPS only (SEC-3).
If the fetch succeeds, ensure
~/.claude/cache/exists (Bash: mkdir -p ~/.claude/cache) and save the content to~/.claude/cache/agents-catalog.mdusingWrite. Output:Catalog refreshed. <N> bytes written to ~/.claude/cache/agents-catalog.mdIf the fetch fails (network error, non-200, timeout), do not hard-fail (REL-1). Warn the user:
Warning: Could not fetch catalog (network error). Existing cache cleared. Run `/agents:search invalidate --fetch` again when connectivity is restored.Do not throw or abort; return gracefully.
- Fetch the catalog using
Cache TTL
Whenever search or list falls back to ~/.claude/cache/agents-catalog.md for data,
check whether the cache is stale before using it:
- Run
Bash(stat -c %Y ~/.claude/cache/agents-catalog.md 2>/dev/null || stat -f %m ~/.claude/cache/agents-catalog.md 2>/dev/null || echo 0)to get mtime. If
(now - mtime) > 43200seconds (12 hours), display an inline notice:(Cache is stale — last updated more than 12 h ago. Run `/agents:search invalidate --fetch` to refresh.)Then continue with the stale data rather than blocking the user.
Tool Usage
All file I/O uses Claude Code built-in tools — this is a skill, not a shell script:
| Operation | Tool |
| Enumerate agents | Glob |
| Read file content / frontmatter | Read |
| Search catalog content | Grep |
| Write / install agent | Write |
| Delete cache file | Bash(rm <path>) |
| Create cache directory | Bash(mkdir -p <path>) |
| Check file mtime | Bash(stat -c %Y <path>) (GNU) / Bash(stat -f %m <path>) (BSD/macOS) |
| Fetch remote catalog | WebFetch |
Key Principles
- Case-insensitive everywhere. All name and description matching is case-insensitive.
- Graceful degradation. Network failures in
invalidate --fetchwarn and continue; they never abort the session or raise an unhandled error (REL-1). - HTTPS only. The catalog URL must always use
https://(SEC-3). - Read before write. Use
Readto check existing files beforeWriteto avoid blind overwrites without user confirmation. - User drives installs. Never silently write to
~/.claude/agents/without presenting options and getting implicit or explicit user consent. - Tier order is fixed.
listalways outputs opus → sonnet → haiku → inherit. Never reorder based on agent count or alphabetical sort within tiers (alphabetical within a tier is acceptable).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

