skills/ultimate-agent-creator/SKILL.md
Use when creating a new Claude Code native agent (.md file in ~/.claude/agents/), when building an agent from scratch or from a user request, when formalizing behavior into a reusable agent, or when the user says "create an agent", "build an agent", "make an agent for", "write an agent". Use when improving, refactoring, or rebuilding an existing agent that fails to trigger, produces generic output, or has over-permissioned tools. Use when optimizing an agent's description for better triggering, rewriting a bullet-list body into expert content, or scoping tools to least-privilege. Do NOT use for: agent-judge (evaluating/scoring existing agents), agent-development (plugin agent structural guidance), skill-judge (scoring SKILL.md files), ultimate-skill-creator (creating skills, not agents).
npx skillsauth add sharkitect-solutions/sharkitect-claude-toolkit ultimate-agent-creatorInstall 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.
Agents fail for four predictable reasons -- all addressable during creation:
This skill addresses all four through a 4-layer creation process that builds agents from description outward.
| File | Load When | Do NOT Load |
|---|---|---|
| references/agent-structure-spec.md | Planning agent structure, writing frontmatter, choosing tools, selecting model | Body content already written, in optimization phase |
| references/agent-optimization-patterns.md | Rewriting bullet-list body to expert content, building anti-patterns, creating decision trees, compressing bloated agents | Creating a new agent from scratch (use structure-spec first) |
| references/agent-native-mechanics.md | Understanding triggering mechanics, context window impact, delegation chains, collaboration patterns, single-message return constraint | Already familiar with native agent mechanics |
| Request | This Skill | Use Instead | |---|---|---| | "Create an agent for X" | YES | - | | "Build a new agent that does Y" | YES | - | | "Rewrite this agent's body" | YES | - | | "Fix this agent -- it never triggers" | YES | - | | "Optimize this agent's description" | YES | - | | "Score/evaluate this agent's quality" | NO | agent-judge | | "Audit all my agents for quality" | NO | agent-judge | | "Help me build a plugin agent" | PARTIAL -- structure + description yes, plugin-specific no | agent-development | | "Create a skill (not an agent)" | NO | ultimate-skill-creator | | "Test this agent's runtime performance" | NO | agent-evaluation |
Every agent -- new or rebuilt -- follows these 4 layers in order. Each layer addresses one of the four failure modes.
Failure addressed: Agent doesn't trigger.
The description is the ONLY thing the orchestrator reads when deciding which agent to invoke. Claude reads ALL 38+ descriptions on every message. A perfect body behind a bad description is invisible.
Step 1: Write trigger conditions. Start with "Use this agent when..." followed by 2-3 specific conditions.
Step 2: Write 3 <example> blocks.
Each example must have:
Context: -- a realistic scenario (not "user needs help")user: -- a natural phrasing (varied words across examples)assistant: -- how the orchestrator responds (brief)<commentary> -- WHY this agent fits (not another)Quality requirements for examples:
Step 3: Write explicit exclusions. "Do NOT use for: [agent-name] ([reason]), [agent-name] ([reason])." Cross-reference agents with overlapping domains. With 38+ agents, overlap is inevitable.
Step 4: Verify word count. Target: 150-300 words. Enough for precision, short enough not to bloat orchestrator context.
See references/agent-structure-spec.md for frontmatter format and complete examples.
Failure addressed: Agent produces generic output.
The body IS the system prompt. It determines HOW the subagent thinks and acts. Bullet lists produce bullet-list thinking. Decision trees produce expert thinking.
Diagnose before writing:
What is the current body state?
├─ No body or <50 lines → Full build from expert knowledge
├─ 50-400 lines of bullet lists → Strip bullets, replace with decision trees
├─ 400+ lines of code blocks → Strip redundant code, add expert procedures
└─ 150-350 lines with decision trees → Targeted polish only
Expert content types (use 3+ of these):
| Content Type | What It Does | When to Use | |---|---|---| | Decision trees | Branches logic based on conditions | Always -- replaces bullet lists | | Named anti-patterns | NEVER do X because [non-obvious reason] | Always -- 5-8 minimum | | Rationalization tables | "When Claude says X, it's wrong because Y" | Discipline-enforcing agents | | Output format templates | Structured response headings + content spec | Always -- solves single-message constraint | | Edge case handlers | "If [unusual input], then [specific response]" | Complex or multi-path agents | | Scope boundaries | "Focus on X. Do NOT attempt Y." | Agents prone to scope creep |
Content audit -- mark each section:
Target: >60% Expert, <25% Activation, <15% Redundant. Body: 150-350 lines.
Memory injection (add to every active agent):
## Session Context
Before starting work, read the project's MEMORY.md for current context and patterns.
After completing work, update MEMORY.md if you made significant decisions.
Read-only agents: only read MEMORY.md. Active agents: read AND update.
See references/agent-optimization-patterns.md for detailed rewrite strategies.
Failure addressed: Body can't contain enough expert content without bloating.
Only apply if ALL of these are true:
If applying:
~/.claude/agents/references/<agent-name>/ directorydecision-tree.md -- complex branching logic for multi-path scenariosanti-patterns.md -- detailed failure cases with production exampleschecklists.md -- domain-specific verification procedures## Deep References (load on demand)
- For complex [X] scenarios: Read `~/.claude/agents/references/<name>/decision-tree.md`
- For known failure patterns: Read `~/.claude/agents/references/<name>/anti-patterns.md`
Only load when the task requires that specific depth.
If NOT applying: Ensure body is dense enough (150-350 lines of expert content) to stand alone.
Failure addressed: Over-permissioned tools, wrong model.
Tool scoping decision tree:
What does the agent DO?
├─ Read-only analysis (review, audit, research)
│ → Tools: Read, Glob, Grep
│ → Add WebSearch, WebFetch ONLY if body references web research
│
├─ Code generation/modification (build, fix, debug)
│ → Tools: Read, Write, Edit, Bash, Glob, Grep
│
├─ Coordination/delegation (orchestrate other agents)
│ → Tools: Read, Glob, Grep, Task
│ → Add Write ONLY if it produces artifacts
│
└─ Full autonomy (rare -- only if genuinely needs everything)
→ Omit tools field (inherits all)
→ Document WHY in body
Model selection:
| Complexity | Model | Examples | |---|---|---| | Simple classification, formatting | haiku | Basic categorization, template filling | | Most analysis and generation | sonnet (or omit to inherit) | Code review, research, content creation | | Complex multi-step reasoning | opus | Architecture decisions, multi-agent coordination |
Body-tool alignment check (mandatory): Read every instruction in the body. For each action verb (search, read, write, run, delegate, fetch), verify the corresponding tool is in the tools list. Misalignment means the agent will fail at runtime.
See references/agent-structure-spec.md for complete tool/model reference.
Write the description BEFORE the body. If the description doesn't work, the body is irrelevant. Test the description mentally: "If a user said [X], would the orchestrator pick this agent over the 37 others?"
Bodies with >40% bullet lists produce generic output. Decision trees, tables, and conditional logic are mandatory. If you catch yourself writing a bullet list, convert it:
| Bullet List (BAD) | Decision Tree (GOOD) | |---|---| | "- Check for security issues" | "IF handling user input → validate + sanitize. IF handling auth → check token expiry + rotation. IF neither → skip security review for this component." | | "- Follow best practices" | "WHICH best practice? → Check body section for domain-specific practices. IF not covered → flag as gap in agent body." |
Every agent MUST have explicit exclusions in the description. With 38+ agents, overlap is guaranteed. An agent without exclusions will compete with siblings for the same triggers.
Every agent MUST define its output format in the body. Agents return a single message. Without structure, the orchestrator gets unparseable prose. Minimum format:
## Output Format
### Summary (2-3 sentences)
### Findings/Results (structured list with severity/priority)
### Recommendations (actionable next steps)
### Confidence Level (HIGH/MEDIUM/LOW with reasoning)
<example> blocks -- triggering will be unreliable across phrasingsBefore declaring any agent complete, verify:
<example> blocks with varied phrasingsAn agent is done when ALL pass:
<commentary> explaining WHY this agentdevelopment
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
testing
--- name: using-sharkitect-methodology description: Use when starting any conversation in a Sharkitect workspace OR before any task involving NEW pricing, positioning, proposal, strategy, plan-execution, or schema-design work — mandates invocation of Sharkitect-specific methodology skills (pricing-strategy, marketing-strategy-pmm, smb-cfo, hq-revenue-ops, executing-plans, brainstorming) under the same anti-rationalization discipline as using-superpowers. Documentation has failed 4 times across H
testing
Use when user says 'end session', 'wrap up', 'stop for the day', 'done for today', 'close out', 'save session', 'wrapping up', or invokes /end-session. Runs the full 9-step end-of-session protocol: resource audit, MEMORY.md update, lessons capture, plan status, pending items, workspace checklist, .tmp/ audit, git commit+push, Supabase brain sync, session brief, summary. Final step schedules a detached self-kill of the current session ONLY (3s delay) so the window closes cleanly. Other claude.exe processes (active workspaces) are NOT touched -- orphan cleanup is handled separately by Claude-Orphan-Cleanup-Hourly with proper age safeguards. Do NOT use for: mid-session quick saves (use session-checkpoint), skill syncing (use sync-skills.py), brain memory queries (use supabase-sync.py pull), document freshness reviews (use document-lifecycle), resource gap detection (use resource-auditor).
testing
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, passive voice, negative parallelisms, and filler phrases.