From agents-architect
Write or refactor Claude Code sub-agent definitions (files in agents/*.md). Use when the user asks to "create a subagent", "add an agent for X", "build a specialist agent", "make a research agent", "write an agent file", "agent YAML", "delegate to a subagent", "design a multi-agent workflow", or when a task needs a fresh context window, restricted tools, or isolation. Covers frontmatter (tools/model/effort/maxTurns/isolation), delegation patterns, read-only constraints, and orchestrator↔specialist contracts.
npx claudepluginhub ibrahim-3d/agents-architect --plugin agents-architectThis skill uses the workspace's default tool permissions.
Sub-agents run in a fresh context window with a restricted tool allowlist. Use them when:
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.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
Sub-agents run in a fresh context window with a restricted tool allowlist. Use them when:
Do not create a sub-agent for trivial work — the spawn cost (~1-3s, fresh context reload) exceeds benefit for tasks under ~5 tool calls.
---
name: <kebab-case, matches filename>
description: What it does and when to invoke. Trigger-optimized like a skill description.
model: sonnet | opus | haiku # optional, defaults to parent
effort: low | medium | high # optional
maxTurns: 20 # cap tool loops
tools: Read, Grep, Glob, Bash # ALLOWLIST — omitting = inherit all
disallowedTools: Write, Edit # alternative: blocklist
skills: [skill-a, skill-b] # preload specific skills
memory: preserve | fresh # context handling
background: true | false # long-running background agent
isolation: worktree # only valid value; copies repo to temp worktree
---
Security: hooks, mcpServers, and permissionMode are NOT allowed in plugin-shipped agents. Do not include them.
<role>
You are <specialist>. Spawned by <parent command/orchestrator>. You answer <single question> and produce <single artifact>.
</role>
<required_reading>
Files the orchestrator MUST pass via Read. List them.
</required_reading>
<responsibilities>
Bullet list, 3-7 items.
</responsibilities>
<constraints>
- Read-only / write-only / deterministic
- Never do X
- Always do Y
</constraints>
<output_contract>
Produce exactly: `<path>/<file>.md` with sections: ...
Exit with a 5-line summary for the orchestrator.
</output_contract>
executor-class agents write code. Enforce via tools allowlist.Read, Grep, Glob, WebFetch, WebSearch. Code reviewer → Read, Grep, Glob, Bash. Never include Write unless the agent's job is to write.The orchestrator (usually a slash command) routes. It:
subagent_type + prompt containing <required_reading> paths.The orchestrator NEVER does the specialist's work inline.
Produce agents/<name>.md with correct frontmatter + structured body. Include a tool-allowlist justification comment for future auditors. Finish with a 3-line summary of the agent's niche.