creating-agents

Create Claude Code subagents with YAML frontmatter and system prompts.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BrendanShields/spec-flow --skill creating-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-agents
Source: https://github.com/BrendanShields/spec-flow/tree/main/plugins/spec/skills/creating-agents
Command: npx skills add https://github.com/BrendanShields/spec-flow --skill creating-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and create Claude Code subagents to delegate tasks, coordinate workflows, and apply domain-specific prompts.

Core Features & Use Cases

  • Define agent purpose, location, and tools.
  • Provide a ready-to-use system prompt template and examples.
  • Save agents to .claude/agents/ with consistent frontmatter.

Quick Start

  1. Define the agent's purpose and location.
  2. Choose required tools and a model.
  3. Write the system prompt.
  4. Create and save the agent file under .claude/agents/.

Frequently Asked Questions about creating-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Claude Code subagent to automate tasks?

Create a subagent by defining its purpose, selecting tools and a model, writing a system prompt, and saving the agent file to `.claude/agents/` with YAML frontmatter containing name, description, tools, model, permissionMode, and skills. This delegates tasks and coordinates workflows with domain-specific behavior.

What goes in a subagent's system prompt and frontmatter?

System prompts should be concise and task-focused. Frontmatter uses structured YAML with required fields: name, description, tools, model, permissionMode, and skills. This configuration ensures the agent operates consistently and invokes correctly within your workflow.

Can I create both built-in and custom agents in Claude Code?

Yes. Claude Code supports both built-in agents and custom agents. Custom agents are saved under `.claude/agents/` with standardized templates and file formats, allowing you to define purpose, tools, and behavior for project- or user-level task delegation.

Where do I store agent files and how should they be organized?

Store agent files in `.claude/agents/` with consistent naming and YAML frontmatter. This standardized location and format ensures agents are discoverable, maintainable, and properly configured for task delegation across your project.

What tools and models can I assign to a subagent?

Subagents accept configurable tool and model selections defined in the frontmatter. Choose tools and a model based on the agent's purpose. The Core Task Description specifies functional and technical requirements; consult documentation for available model and tool options.

How do I invoke a subagent once it's created?

Proactive invocation guidance is part of the agent design process. Once saved under `.claude/agents/` with proper frontmatter, the agent can be invoked according to the patterns and permissions defined in permissionMode and the system prompt.