Guides agents and users to create standards-compliant agent definitions using templates in markdown frontmatter format, ensuring context gathering, clarity, and proper metadata. Forces agents to ask clarifying questions when context is insufficient. Token-efficient documentation required. All content must be in English. Trigger: When creating a new agent definition, setting up project agents, or documenting agent workflows.
Provides actionable instructions for creating standards-compliant agent definitions using templates. Agents are defined in markdown files (AGENTS.md) with YAML frontmatter specifying metadata and a clear, readable structure. This skill enforces context gathering before agent creation to ensure robust and well-defined agents.
Objective
Enable agents and users to generate agent definitions that strictly follow the required structure and conventions using the provided template. Ensure sufficient context is gathered through clarifying questions before proceeding with agent creation. Validate each agent against the JSON schema and provide a compliance checklist to ensure all requirements are met.
description: Clear, concise explanation of purpose and responsibilities. Token-efficient: eliminate redundancy, keep specificity.
skills: List required skills using YAML - item syntax (never []). Must be existing skills from skills/ directory.
Mandatory for ALL agents: Always include critical-partner
Mandatory for technical/management agents: Always include process-documentation
Optional fields (include only if they add specificity):
input: Expected input type/format (e.g., "user query | string"). Omit if obvious from description.
output: Expected output type/format (e.g., "markdown report"). Omit if obvious from description.
Formatting rules:
Use YAML list syntax: - item (never [] for arrays)
Omit empty fields completely
Be precise and token-efficient: every word must serve AI and human understanding
Example frontmatter:
---
name: my-project-agent
description: Development assistant for Project X. Expert in TypeScript, React, and MUI.
skills:
- typescript
- react
- mui
- critical-partner
- process-documentation
- conventions
- a11y
---
Step 4: Content Structure
After the frontmatter, include the following sections:
# Agent Name (h1): Title describing the agent (e.g., "SBD Project Agent").
## Purpose: Clear statement of the agent's primary goal and responsibilities. Be specific and actionable.
## ⚠️ Mandatory Skill Reading (REQUIRED): Critical instructions for reading skills before task execution. Must include:
Skill Reading Protocol (5-step process)
Warning about not proceeding without reading skills
Notification Policy for multi-skill tasks (2+ skills)
Reference to Extended Mandatory Read Protocol in AGENTS.md
Link to Mandatory Skills table
## Mandatory Skills (REQUIRED): Table with triggers, required skills, and paths. Use format: | Trigger (When to Read) | Required Skill | Path |
Critical trigger that MUST be included in all agents:
"Write commit messages, PRs, or documentation" → technical-communication
Additional triggers based on agent's skills: Add specific triggers for each skill the agent uses (e.g., "Create React components" → react, "Create TypeScript types" → typescript)
Important: The Mandatory Skill Reading section must inform AI agents that when working with complex skills (40+ patterns), they should consult the skill's Decision Tree and Quick Reference Table to determine if reading references/ is required. See AGENTS.md Extended Mandatory Read Protocol for complete guidance. 5. ## Supported stack (if applicable): List technologies, frameworks, libraries, and versions used in the project. 6. ## Skills Reference (optional but recommended): Table listing all skills with descriptions and paths. 7. ## Workflows (optional): Common workflows the agent handles (e.g., "Feature Development," "Code Review"). 8. ## Policies (optional): Project-specific rules, constraints, or guidelines the agent must follow.
Step 5: Writing Guidelines
All generated code, documentation, comments, and prompt content must follow the english-writing skill. Do not duplicate these rules here.
Be token-efficient: precise and concise without losing specificity
Organize content with proper markdown structure (headings, lists, code blocks, tables)
Step 6: Validation
Before finalizing, verify:
Directory created under agents/ with correct naming
AGENTS.md file exists with proper frontmatter
Required fields: name, description, skills
critical-partner included in skills (mandatory for ALL agents)
process-documentation included for technical/management agents
All referenced skills exist in skills/ directory
Skills use YAML list syntax (- item), not arrays ([])
Empty fields omitted
Content sections present: Purpose, and others as appropriate
Token-efficient documentation: no redundancy
Content in English with American spelling
Decision Tree
Context gathered (9 questions answered)? → NO → Stop: Ask clarifying questions
All required skills identified? → NO → Ask: Which skills needed?
Agent for technical/management? → YES → Include process-documentation in skills
Creating first agent? → YES → Use AGENT-TEMPLATE.md as starting point
Agent has complex workflows (3+ phases)? → YES → Add detailed Workflow section
Agent needs skill reference reading? → YES → Include Extended Protocol reference
Mandatory Skill Reading section included? → NO → Stop: Must include (REQUIRED)
critical-partner in skills list? → NO → Stop: Must include (mandatory)
All referenced skills exist in skills/? → NO → Stop: Verify skill paths
Ready to create? → YES → Proceed with agent creation
🔍 Self-Check Protocol (For AI Agents)
Before finalizing agent creation, verify:
I gathered all 9 context questions (purpose, input, output, skills, workflows, audience, technologies, project context, tone)
I read the entire agent-creation SKILL.md (this file)
I consulted the Decision Tree for my specific case
I included ⚠️ Mandatory Skill Reading section with 5-step protocol
I referenced Extended Mandatory Read Protocol in AGENTS.md
I included Mandatory Skills table with triggers
Mandatory Skills table includes "Write commit messages, PRs, or documentation" → technical-communication
critical-partner is in skills list (REQUIRED for ALL agents)
process-documentation is in skills list (if technical/management agent)
All referenced skills exist in skills/ directory
YAML syntax correct (lists use - item, not [])
Empty fields omitted from frontmatter
Agent has unique, clear purpose statement
Confidence check: Can you answer these questions?
What is this agent's primary responsibility? (Answer: Should be in Purpose section)
Which skills will this agent use most frequently? (Answer: Should be in Mandatory Skills table)
When should the agent read skill references? (Answer: When Decision Tree indicates MUST or [CRITICAL] pattern says so)
If you answered NO to any checklist item or cannot answer the confidence questions:
Stop immediately
Re-read the missing section or gather missing context
Use when you need to install the embedded robot agents into either .cursor/agents or .claude/agents, selecting the destination interactively and copying the embedded agent definitions from project assets. This should trigger for requests such as Install embedded agents; Bootstrap .cursor/agents; Bootstrap .claude/agents; Copy robot agents. Part of cursor-rules-java project
Use when you need to generate an AGENTS.md file for a Java repository — covering project conventions, tech stack, file structure, commands, Git workflow, and contributor boundaries — through a modular, step-based interactive process that adapts to your specific project needs. This should trigger for requests such as Create AGENTS.md; Update AGENTS.md file; Add agent instructions. Part of cursor-rules-java project
Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape. Activate on "find expungement data", "scrape state laws", "legal research", "court URLs", "statute sources", "Clean Slate laws", "automatic expungement research". NOT for interpreting laws (use national-expungement-expert), building UI, or legal advice.
Entwurf einer BAG-konformen Abmahnung im Arbeitsrecht – konkrete Schilderung der Pflichtverletzung, klare Verhaltenserwartung, ausdrückliche Sanktionsandrohung. Use when AG eine verhaltensbedingte Sanktion vor einer Kündigung dokumentieren muss oder AN die Wirksamkeit einer empfangenen Abmahnung prüft.