Creating Workflows
Creating an Agent
Section titled “Creating an Agent”Agents are markdown files in plugins/<plugin>/agents/ with YAML frontmatter.
Minimal Template
Section titled “Minimal Template”---name: my-agentdescription: | What this agent does.
Use this agent when: - Scenario 1 - Scenario 2tools: Read, Grepmodel: sonnetcategory: generalversion: 1.0.0---
# My Agent
You are a specialized agent for [purpose].
## Process
1. Step one2. Step two
## Output
Return findings in this format:- `path/to/file:line` — DescriptionKey Requirements
Section titled “Key Requirements”- name must be kebab-case and match the filename (without
.md) - tools must be valid Claude Code tools
- model must be
opus,sonnet, orhaiku - Include a “What NOT to Do” section for clear boundaries
Creating a Command
Section titled “Creating a Command”Commands are markdown files in plugins/<plugin>/commands/.
Minimal Template
Section titled “Minimal Template”---description: One-line summary of what this command doescategory: generaltools: Read, Writemodel: sonnetversion: 1.0.0---
# Command Name
You are tasked with [purpose].
## Process
1. Step one2. Step twoKey Differences from Agents
Section titled “Key Differences from Agents”- Commands do not have a
namefield (filename is the identifier) - Commands use a one-line
description(not multi-line) - Commands can use
argument-hintfor parameter documentation
Testing
Section titled “Testing”- Edit the file in the appropriate
plugins/<plugin>/directory - Restart Claude Code to reload
- Invoke with
@catalyst-dev:{agent-name}or/command-name - Verify output matches expectations
Validation
Section titled “Validation”Run frontmatter validation to check your workflow:
/validate-frontmatter plugins/dev/agents/my-agent.mdSee the Frontmatter Standard for the complete specification.