my-agent
LukeRenton/explore-claude-codeSubagent
Describe when Claude should delegate to this agent. Be specific. Include 'use proactively' if you want Claude to use it without being asked.
Why this score
This repo hosts 8 subagents, so its 323 stars are split between them (about 40 each) for scoring.
Popularity score: 64/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
What it can use
- Run shell commands
- Read and search files
Tools listed in the file: Read, Grep, Glob, Bash
Model: sonnet
This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.
The agent file
---
name: my-agent
description: "Describe when Claude should delegate to this agent. Be specific. Include 'use proactively' if you want Claude to use it without being asked."
tools: Read, Grep, Glob, Bash
model: sonnet
---
You are a [role description]. When invoked, [what you do].
Your focus areas:
- [Primary responsibility]
- [Secondary responsibility]
- [What you should never do]
Process:
1. [First step]
2. [Second step]
3. [Final step]
Output format:
- [How to structure your response]
---
This is a starter agent file. The filename `my-agent.md` registers this as a subagent named `my-agent`.
Everything above the second `---` is the agent's system prompt. This is all the agent sees (plus basic environment details like working directory). It does not receive the full Claude Code system prompt.
## Anatomy of This File
The **frontmatter** (between the first pair of `---`) configures the agent:
- `name`: unique identifier, lowercase with hyphens. This is how you refer to the agent
- `description`: Claude reads this to decide when to delegate. Be specific about what tasks this agent handles
- `tools`: which tools the agent can use. Omit to inherit all tools from the main conversation. Common sets:
- Read-only: `Read, Grep, Glob`
- Can modify files: `Read, Grep, Glob, Edit, Write, Bash`
- Can spawn agents: `Agent(worker, researcher), Read, Bash`
- `model`: which model to use. `sonnet` balances speed and capability, `haiku` is fast and cheap, `opus` is most capable, `inherit` uses whatever the main conversation uses
The **body** (after frontmatter) is the system prompt. Write it as direct instructions to the agent: "You are a...", "When invoked...", "Focus on...".
## Optional Frontmatter Fields
```yaml
permissionMode: default # default | acceptEdits | dontAsk | bypassPermissions | plan
maxTurns: 25 # stop after this many agentic turns
background: false # true to always run in the background
isolation: worktree # run in a temporary git worktree
memory: user # user | project | local (enables persistent memory)
skills: # skills to inject into context at startup
- api-conventions
- error-handling
mcpServers: # MCP servers available to this agent
- slack
hooks: # lifecycle hooks scoped to this agent
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/validate.sh"
```
## What Makes a Good Agent
- A narrow, well-defined responsibility (not "do everything")
- A detailed `description` so Claude delegates the right tasks
- Only the tools it actually needs (least privilege)
- Clear output format instructions so results are consistent
- Process steps that guide the agent through its task
## Subagents vs Skills
Both create `/slash-command` style interfaces, but they solve different problems:
| | Skills | Subagents |
|---|--------|-----------|
| Context | Runs in your main conversation | Runs in its own isolated context |
| Best for | Reference material, reusable workflows | Tasks that produce verbose output |
| Tool control | No tool restrictions | Fine-grained tool allowlists |
| Can chain | No | No (but the main conversation can chain them) |
MIT license, from LukeRenton/explore-claude-code at commit 3b1ce668a443.
Security
Scanned Oct 21, 2026 at commit 3b1ce668a443, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Nothing from another maker does quite the same job yet.