askill
schemas

schemasSafety 100Repository

YAML frontmatter schemas for Claude Code agents and commands. Use when creating or validating agent/command files.

1 stars
1.2k downloads
Updated 1/13/2026

Package Files

Loading files...
SKILL.md

Frontmatter Schemas

Agent Frontmatter

---
name: agent-name               # Required: lowercase-with-hyphens
description: |                 # Required: detailed with examples
  Use this agent when [scenario]. Examples:
  (1) "Task description" - launches agent for X
  (2) "Task description" - launches agent for Y
  (3) "Task description" - launches agent for Z
model: sonnet                  # Required: sonnet | opus | haiku
color: purple                  # Optional: purple | cyan | green | orange | blue | red
tools: TodoWrite, Read, Write  # Required: comma-separated, space after comma
skills: skill1, skill2         # Optional: referenced skills
---

Field Reference

FieldRequiredValuesDescription
nameYeslowercase-with-hyphensAgent identifier
descriptionYesMulti-line string3-5 usage examples
modelYessonnet, opus, haikuAI model to use
colorNoSee colors belowTerminal color
toolsYesTool listAvailable tools
skillsNoSkill listReferenced skills

Color Guidelines

ColorAgent TypeExamples
purplePlanningarchitect, api-architect
greenImplementationdeveloper, ui-developer
cyanReviewreviewer, designer
orangeTestingtest-architect, tester
blueUtilitycleaner, api-analyst
redCritical/Security(rarely used)

Tool Patterns by Agent Type

Orchestrators (Commands):

  • Must have: Task, TodoWrite, Read, Bash
  • Often: AskUserQuestion, Glob, Grep
  • Never: Write, Edit

Planners:

  • Must have: TodoWrite, Read, Write (for docs)
  • Often: Glob, Grep, Bash

Implementers:

  • Must have: TodoWrite, Read, Write, Edit
  • Often: Bash, Glob, Grep

Reviewers:

  • Must have: TodoWrite, Read
  • Often: Glob, Grep, Bash
  • Never: Write, Edit

Command Frontmatter

---
description: |                 # Required: workflow description
  Full description of what this command does.
  Workflow: PHASE 1 → PHASE 2 → PHASE 3
allowed-tools: Task, Bash      # Required: comma-separated
skills: skill1, skill2         # Optional: referenced skills
---

Field Reference

FieldRequiredValuesDescription
descriptionYesMulti-lineCommand purpose and workflow
allowed-toolsYesTool listTools command can use
skillsNoSkill listReferenced skills

Validation Checklist

Agent Frontmatter

  • Opening --- present
  • name is lowercase-with-hyphens
  • description includes 3+ examples
  • model is valid (sonnet/opus/haiku)
  • tools is comma-separated with spaces
  • Closing --- present
  • No YAML syntax errors

Command Frontmatter

  • Opening --- present
  • description explains workflow
  • allowed-tools includes Task for orchestrators
  • Closing --- present
  • No YAML syntax errors

Common Errors

Invalid YAML Syntax

# WRONG - missing colon
name agent-name

# CORRECT
name: agent-name

Incorrect Tool Format

# WRONG - no spaces after commas
tools: TodoWrite,Read,Write

# CORRECT
tools: TodoWrite, Read, Write

Missing Examples

# WRONG - too generic
description: Use this agent for development tasks.

# CORRECT
description: |
  Use this agent when implementing TypeScript features. Examples:
  (1) "Create a user service" - implements service with full CRUD
  (2) "Add validation" - adds Zod schemas to endpoints
  (3) "Fix type errors" - resolves TypeScript compilation issues

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

92/100Analyzed 2/13/2026

A comprehensive reference guide for YAML frontmatter schemas used in Claude Code agents. It includes detailed field definitions, color guidelines, tool patterns, validation checklists, and examples of common errors, making it highly actionable for creating or validating configuration files.

100
100
75
95
95

Metadata

Licenseunknown
Version-
Updated1/13/2026
Publishertianzecn

Tags

apigithub-actionssecuritytesting