mcpField
M
meta-agent-creator

meta-agent-creator

github.com/oakossAgent workflows2097 installsUpdated 10w ago
Repository

About meta-agent-creator

A skill for defining specialized subagents as Markdown files with YAML frontmatter. It covers their tools, permissions, model choices, and triggers for teams configuring focused delegation in Claude Code.

Key features

  1. 01Configure subagents with YAML fields
  2. 02Restrict or allow tools and permissions
  3. 03Select models and preload skills
  4. 04Set lifecycle hooks and delegation triggers

Use cases

  1. 01Isolate test or log-heavy tasks
  2. 02Set up read-only code reviewers
  3. 03Delegate parallel research or repeatable workflows

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oakoss/agent-skills --skill meta-agent-creator

After installing, type/meta-agent-creatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
agent-configuration.md
templates.md
tool-selection.md
scripts/
validate-agent.py

Details

From the project README

Custom Agent Creator

Overview

Subagents are specialized AI assistants defined as Markdown files with YAML frontmatter. Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. When a task matches a subagent's description, the parent conversation delegates to it automatically, preserving main context while enforcing constraints.

When to use: Isolating high-volume operations (tests, logs), enforcing read-only access for reviewers, routing simple tasks to cheaper models, running parallel research, creating reusable team workflows.

When NOT to use: Tasks requiring frequent back-and-forth, quick targeted changes, workflows needing nested delegation (subagents cannot spawn subagents), latency-sensitive operations where fresh context gathering is costly.

Quick Reference

PatternConfigurationKey Points
File location (project).claude/agents/name.mdShared via version control, priority 2
File location (user)~/.claude/agents/name.mdAvailable across all projects, priority 3
Required fieldsname, descriptionOnly two fields are mandatory
Tool restrictiontools: Read, Grep, GlobAllowlist; inherits all if omitted
Tool denialdisallowedTools: Write, EditDenylist; removed from inherited set
Model selectionmodel: haikuOptions: sonnet, opus, haiku, inherit (default)
Permission modepermissionMode: dontAskControls permission prompt behavior
Skill preloadingskills: [auth, api-patterns]Injected at startup; no inheritance from parent
Lifecycle hookshooks: { PreToolUse: [...] }Validate or block tool usage conditionally
CLI-defined agentclaude --agents '{...}'Session-only, highest priority, JSON format
Interactive creation/agents commandGuided setup with Claude generation
Proactive triggers"Use proactively after..."Include in description for auto-delegation

Common Mistakes

MistakeCorrect Pattern
Using opus for simple checklist reviewsUse haiku for read-only reviews and style checks
Omitting output format in system promptInclude structured output template for consistent results
Listing tools explicitly when all are neededOmit tools field to inherit all tools including MCP
Expecting skills from parent conversationExplicitly list skills in the skills field
Generic description without triggersInclude specific trigger phrases like "Use proactively when..."
Giving a single agent too many responsibilitiesDesign focused agents with one clear purpose each
Using bypassPermissions without cautionPrefer acceptEdits or dontAsk for safer automation
Creating deeply nested agent workflowsChain subagents from main conversation; nesting is not supported

Delegation

  • Agent pattern discovery: Use Explore agent to find existing agents in .claude/agents/
  • Interactive creation: Use /agents command for guided setup with Claude generation
  • Code review of agent files: Use Task agent to validate system prompts and configuration

References

Comments

Markdown supported