From claude-resources
Fixes, improves, or updates existing Claude Code custom agents (subagents). Diagnoses common issues like poor descriptions, wrong models, missing tools, and applies frontmatter edits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:subagent-tweakerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Find agents at:
Find agents at:
$HOME/.claude/agents/*.md (personal).claude/agents/*.md (project)Read the agent file to understand current configuration.
Common problems and fixes:
| Problem | Likely Cause | Fix |
|---|---|---|
| Agent not being used | Poor description | Rewrite with clear trigger keywords |
| Agent too slow | Wrong model | Switch to sonnet or haiku |
| Agent can't edit files | tools missing Write/Edit | Add needed tools to allowlist |
| Agent doing too much | No tool restrictions | Add tools: or disallowedTools: |
| Agent forgets context | No persistent memory | Add memory: user or memory: project |
| Agent runs too long | No turn limit | Add maxTurns: N |
Edit the agent's Markdown file. Preserve existing content that works well.
Frontmatter fields reference:
| Field | Description |
|---|---|
name | Identifier (lowercase, hyphens) |
description | When to use (Claude reads this for delegation) |
model | opus, sonnet, haiku, inherit |
tools | Tool allowlist (inherits all if omitted) |
disallowedTools | Tool denylist |
permissionMode | default, acceptEdits, delegate, dontAsk, bypassPermissions, plan |
maxTurns | Max agentic turns |
skills | Preloaded skills |
mcpServers | Available MCP servers |
hooks | Scoped lifecycle hooks |
memory | user, project, local |
Format the edited agent file using the mdx-formatter to ensure consistent markdown formatting:
pnpm dlx @takazudo/mdx-formatter --write <path-to-agent-file.md>
After editing:
Task tool to agents that will be spawned as subagentsdisallowedTools over tools if only blocking a fewdescription is the primary trigger mechanism - this is the most impactful field to improvenpx claudepluginhub takazudo/claude-resources --plugin claude-resourcesCreates custom Claude Code subagents with YAML frontmatter, tool restrictions, model selection, permission modes, and persistent memory. Used for generating specialized, delegatable agents.
Creates or improves Claude Code agents interactively. For new agents, prompts for project/global/plugin placement, model selection (sonnet/opus/haiku/inherit), and CLAUDE.md table updates; improves existing via analysis.
Creates, validates, and refines Claude Code subagents for reliable delegation. Use for building new subagents, checking configurations, improving quality, scoping tool access, permission modes, and hook validation.