Skip to main content
skill CX Codex

meta-agent-creator — Claude Code skill for creating subagents

The meta-agent-creator Claude Code skill helps define custom subagents and configure their settings. Use it to shape task delegation and control which tools an agent can access.

MIT 104 installs ★ 29 updated 2026-08-17

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-code
Open on GitHub

What meta-agent-creator does

The skill guides the creation of specialized subagents in Markdown files with YAML fields. It covers agent scope, tool access, model choice, and permission modes. It also explains skill preloading and lifecycle hooks.

An agent can have restricted tools and permissions, while its description can specify when a task should be routed to it. The guidance covers project and user files, CLI settings, and plugins. Nested delegation is unsupported: a subagent cannot start another subagent.

What it helps with

  • create a focused subagent for a specific task
  • restrict an agent’s access to tools
  • choose a model and permission mode
  • define when tasks go to a subagent

Example prompts for the agent

  • Create a test-checking subagent and define its settings.
  • Set up a read-only agent to review files.
  • How should the main conversation delegate tasks to an agent?

How to install meta-agent-creator

1Skills CLI (Vercel)

npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-code

2Manually: put the files in place

~/.claude/skills/meta-agent-creator/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/meta-agent-creator/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about meta-agent-creator

How do I install meta-agent-creator in Claude Code?

Run npx skills add oakoss/agent-skills --skill meta-agent-creator -a claude-code. The skill file is at ~/.claude/skills/meta-agent-creator/SKILL.md.

What does meta-agent-creator do?

It guides the setup of custom subagents in Markdown files, including their tools, model, permissions, skills, and hooks.

Can subagents start other subagents?

No. Nested delegation is unsupported; tasks are delegated from the main conversation.

Source text

SKILL.md · MIT
---
name: meta-agent-creator
description: |
  Creates custom subagents for Claude Code with YAML frontmatter configuration in Markdown files. Covers agent scoping (project, user, CLI, plugin), tool access control, model selection, permission modes, skill preloading, and lifecycle hooks.

  Use when building specialized subagents, configuring tool access, selecting models, setting permission modes, or designing delegation patterns. Use for agent creation, subagent configuration, custom agent setup.
license: MIT
metadata:
  author: oakoss
  version: '1.0'
  source: https://code.claude.com/docs/en/sub-agents
disable-model-invocation: true
---

# 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

| Pattern                 | Configuration                  | Key Points                                              |
| ----------------------- | ------------------------------ | ------------------------------------------------------- |
| File location (project) | `.claude/agents/name.md`       | Shared via version control, priority 2                  |
| File location (user)    | `~/.claude/agents/name.md`     | Available across all projects, priority 3               |
| Required fields         | `name`, `description`          | Only two fields are mandatory                           |
| Tool restriction        | `tools: Read, Grep, Glob`      | Allowlist; inherits all if omitted                      |
| Tool denial             | `disallowedTools: Write, Edit` | Denylist; removed from inherited set                    |
| Model selection         | `model: haiku`                 | Options: `sonnet`, `opus`, `haiku`, `inherit` (default) |
| Permission mode         | `permissionMode: dontAsk`      | Controls permission prompt behavior                     |
| Skill preloading        | `skills: [auth, api-patterns]` | Injected at startup; no inheritance from parent         |
| Lifecycle hooks         | `hooks: { PreToolUse: [...] }` | Validate or block tool usage conditionally              |
| CLI-defined agent       | `claude --agents '{...}'`      | Session-only, highest priority, JSON format             |
| Interactive creation    | `/agents` command              | Guided setup with Claude generation                     |
| Proactive triggers      | `"Use proactively after..."`   | Include in description for auto-delegation              |

## Common Mistakes

| Mistake                                         | Correct Pattern                                                  |
| ----------------------------------------------- | ---------------------------------------------------------------- |
| Using opus for simple checklist reviews         | Use haiku for read-only reviews and style checks                 |
| Omitting output format in system prompt         | Include structured output template for consistent results        |
| Listing tools explicitly when all are needed    | Omit `tools` field to inherit all tools including MCP            |
| Expecting skills from parent conversation       | Explicitly list skills in the `skills` field                     |
| Generic description without triggers            | Include specific trigger phrases like "Use proactively when..."  |
| Giving a single agent too many responsibilities | Design focused agents with one clear purpose each                |
| Using `bypassPermissions` without caution       | Prefer `acceptEdits` or `dontAsk` for safer automation           |
| Creating deeply nested agent workflows          | Chain 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

- [Agent configuration: YAML fields, file locations, and priority order](references/agent-configuration.md)
- [Tool selection: access patterns, common combinations, and model guide](references/tool-selection.md)
- [Templates: ready-to-use agent patterns for common workflows](references/templates.md)

© oakoss · MIT · oakoss/agent-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set106

The whole set →
turborepo This Claude Code skill helps configure Turborepo in JavaScript and TypeScript monorepos. Use it to set up task pipelines, caching, package filters, and CI workflows. CX Codex +1 108installs realtime-sync realtime-sync guides agents through designing low-latency sync using WebTransport, CRDT conflict resolution, and batched AI token streaming. CX Codex +1 108installs plan-first-development The plan-first-development Claude Code skill structures project planning and tracks progress across sessions. It activates for new projects, major features, and work split into phases. CX Codex +1 107installs tracer-bullets The tracer-bullets Claude Code skill splits multi-layer work into end-to-end slices. Each slice is checked before work moves on. CX Codex +1 107installs expert-instruction The expert-instruction Claude Code skill helps design system instructions for AI agents. It covers agent roles, behavioral limits, response formats, and tool-use guidance. CX Codex +1 106installs codebase-packager The codebase-packager Claude Code skill prepares large repositories for AI coding tasks. It builds digests, packs source context, and traces connections across files. CX Codex +1 105installs skill-management skill-management — a Claude Code skill for creating, reviewing, and validating skills against the Agent Skills standard. It comes into play during structure checks, description edits, and manifest comparisons. CX Codex +1 105installs localization-engineer localization-engineer is a Claude Code skill that guides internationalization and localization architecture. It structures ICU messages, CLDR plurals, RTL layouts, and multilingual SEO. CX Codex +1 103installs

Project sponsors

Companies that keep this analytics open