subagent-authoring

Create or update Claude Code subagents with YAML frontmatter and system prompts.

28|1|Updated Aug 30, 2025
One-click install
npx skills add https://github.com/outfitter-dev/agents --skill subagent-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subagent-authoring
Source: https://github.com/outfitter-dev/agents/tree/main/baselayer/skills/subagent-authoring
Command: npx skills add https://github.com/outfitter-dev/agents --skill subagent-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill creates or updates Claude Code subagents using YAML frontmatter, system prompts, and best practices.

Core Features & Use Cases

  • Agent YAML authoring: Structured frontmatter for name, description, tools, and model.
  • System prompts: Clear role, process, and output guidelines.
  • Multi-file organization: Support references, scripts, and assets as needed.

Quick Start

Bootstrap a new subagent, set up its frontmatter, and link supporting files.

Frequently Asked Questions about subagent-authoring

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

FAQPage Schema
How do I create a Claude Code subagent with YAML frontmatter?

Create a subagent by defining YAML frontmatter with required fields (name, description, tools, model), followed by a clear system prompt that specifies the agent's role, process, and output guidelines. This structure enables Claude Code to recognize and invoke your custom agent.

What should a system prompt include when authoring a subagent?

A system prompt should define the agent's role, explicit invocation triggers, processing logic, tool restrictions, and output format. This clarity ensures consistent behavior and helps Claude Code properly route requests to your subagent.

Can I organize a subagent across multiple files?

Yes. Subagents support multi-file organization with references, scripts, and assets linked from the main agent file. This modular approach keeps complex agents maintainable and reusable.

What are the required fields in subagent YAML frontmatter?

Required YAML frontmatter fields include name, description, tools, and model specification. Additional best-practice fields define invocation triggers and tool restrictions to ensure your agent functions correctly within Claude Code.

How do I ensure my subagent follows Claude Code best practices?

Follow the structured pattern: write valid YAML frontmatter with all required fields, create a detailed system prompt with explicit triggers and tool boundaries, organize supporting files as references, and test invocation flow before deployment.

Does subagent authoring work with custom tools and constraints?

Yes. Subagent YAML frontmatter lets you specify which tools are available and define constraints in the system prompt. This gives you fine-grained control over your agent's capabilities and behavior.