From claude-resources
Fixes, improves, or updates Claude Code custom subagents by editing frontmatter fields (model, tools, permissions, maxTurns, memory), prompts, and tool restrictions. Use when agents underperform or need tweaks.
npx claudepluginhub takazudo/claude-resourcesThis skill uses the workspace's default tool permissions.
Find agents at:
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
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 improve