skills/mp-agent-create/SKILL.md
Create new Claude Code custom agents with structured conventions and review checklist. Use when: "create agent", "new agent", "write an agent", "agent create"
npx skillsauth add MartinoPolo/mpx-claude-code mp-agent-createInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new Claude Code custom agent following project conventions.
claude-code-guide agent to get latest agent/sub-agent authoring docs.md file in agents/ directorySpawn a claude-code-guide agent (subagent_type: claude-code-guide) with the prompt:
"What are the latest Claude Code guidelines for authoring custom agents (sub-agents)? Include frontmatter fields, file structure, tool allowlists, model selection, description rules, and any best practices."
Store the returned guidelines for use in Step 4.
Ask all of the following in a single numbered list (one round-trip):
If $ARGUMENTS provided, use as initial agent name/description and ask only the unanswered questions.
Create agents/<agent-name>.md with this structure:
---
name: <agent-name>
description: <one-line what it does and when to use it>
tools: <comma-separated tool list>
model: <haiku|sonnet|opus|inherit>
color: <color>
---
# <Agent Title>
<One-line role summary.>
## Workflow
1. Step one
2. Step two
3. Report results
## Output
\```markdown
<structured output template>
\```
Required:
| Field | Rules |
| ------------- | ---------------------------------------------------------------------- |
| name | Lowercase, hyphens only, max 64 chars. Must match filename. |
| description | One line, max 250 chars. Front-load key use cases. |
| tools | Comma-separated allowlist. Only include tools the agent actually uses. |
| model | Pick based on task complexity. Default inherit unless specific need. |
| color | Status line color for visual identification. |
Optional (use only when needed):
| Field | Purpose |
| ---------------- | ---------------------------------------------------------------- |
| maxTurns | Cap agentic turns before stopping |
| skills | Skill names to preload into agent context |
| mcpServers | MCP servers scoped to this agent |
| memory | Persistent memory scope: user, project, or local |
| background | true to always run as background task |
| isolation | worktree to run in isolated git worktree |
| permissionMode | default, acceptEdits, dontAsk, bypassPermissions, plan |
# Agent Title and one-line role summary## Workflow — numbered steps, clear and sequential## Output — structured template so parent can parse results| Agent Role | Typical Tools |
| -------------------------------- | --------------------------------------------------------------------- |
| Read-only reviewer | Read, Grep, Glob, Bash |
| Code executor | Read, Write, Edit, Bash, Grep, Glob |
| Research/exploration | Read, Grep, Glob, WebFetch, WebSearch |
| Orchestrator (spawns sub-agents) | Read, Grep, Glob, Bash, Agent |
| Browser tester | Read, Glob, Grep, Bash, AskUserQuestion + chrome-devtools MCP tools |
| Model | Best For |
| --------- | ----------------------------------------------------------- |
| haiku | Fast read-only tasks: checking, exploring, simple analysis |
| sonnet | Balanced: reviewing, docs updates, moderate complexity |
| opus | Complex reasoning: implementation, architecture, multi-step |
| inherit | When parent should control model choice |
gh command (e.g., gh pr list)model in spawning instructions when sub-agent defines its owngh CLI for all GitHub operationsCompare the drafted agent against the guidelines fetched in Step 1:
For each mismatch found:
If the guidelines suggest improvements beyond what this skill's conventions cover, note them as optional suggestions for the user.
Present the drafted agent and verify:
Ask the user for feedback. Iterate until approved.
Before finalizing, verify:
gh commands, script paths)development
Audit all active skills for consistency, convention drift, and common issues. Auto-fixes where possible, reports remaining issues. Use when: "audit skills", "skill audit", "check skills", "lint skills"
testing
Ship finished work: sync base, commit, push, PR, wait for CI green, merge. Use when: "ship it", "ship and merge", "ship this"
development
Scan recent Claude Code sessions for grilling/design discussions, extract decisions, and update CONTEXT.md + DECISIONS.md. Use when: "harvest decisions", "extract decisions from sessions", "update docs from sessions", "sync decisions"
tools
Consolidate CONTEXT.md: remove duplicates, outdated items, tighten language. Use when: "consolidate context", "clean up context", "simplify context", "consolidate requirements"