majiayu000/claude-skill-registry-agent-creation
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.
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-creation
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.
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.
Use this skill when:
Don't use this skill for:
Before creating an agent definition, you MUST ask clarifying questions when context is missing. Do not proceed until you have sufficient information.
Required context to gather:
Do not proceed with creating the agent until you have:
agents/ named after the project or agent (lowercase, hyphens, no spaces).AGENTS.md file inside the directory.The frontmatter must include:
Required fields:
my-project-agent). Keep concise.- item syntax (never []). Must be existing skills from skills/ directory.critical-partnerprocess-documentationOptional fields (include only if they add specificity):
"user query | string"). Omit if obvious from description."markdown report"). Omit if obvious from description.Formatting rules:
- item (never [] for arrays)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
---
After the frontmatter, include the following sections:
| Trigger (When to Read) | Required Skill | Path |Critical trigger that MUST be included in all agents:
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.
All generated code, documentation, comments, and prompt content must follow the english-writing skill. Do not duplicate these rules here.
Before finalizing, verify:
agents/ with correct namingAGENTS.md file exists with proper frontmattername, description, skillscritical-partner included in skills (mandatory for ALL agents)process-documentation included for technical/management agentsskills/ directory- item), not arrays ([])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
Before finalizing agent creation, verify:
- item, not [])Confidence check: Can you answer these questions?
If you answered NO to any checklist item or cannot answer the confidence questions:
For complete validation: See Compliance Checklist below.
---
name: example-agent
description: Development assistant for Example Project. Provides guidance on TypeScript, React, and accessibility standards.
skills:
- typescript
- react
- critical-partner
- process-documentation
- conventions
- a11y
---
# Example Project Agent
## Purpose
This agent serves as the primary development assistant for the Example Project, ensuring code quality, accessibility compliance, and adherence to TypeScript and React best practices.
## Supported stack
- **Languages**: TypeScript 5.0+, JavaScript (ES2020+)
- **Framework**: React 18+
- **Build**: Vite
## Skills Reference
| Skill Name | Description | Path |
| --------------------- | --------------------------- | ------------------------------------- |
| typescript | TypeScript best practices | skills/typescript/SKILL.md |
| react | React patterns and hooks | skills/react/SKILL.md |
| critical-partner | Code review and improvement | skills/critical-partner/SKILL.md |
| process-documentation | Change documentation | skills/process-documentation/SKILL.md |
| conventions | General coding conventions | skills/conventions/SKILL.md |
| a11y | Accessibility standards | skills/a11y/SKILL.md |
## Workflows
### Feature Development
1. Gather requirements
2. Design component architecture
3. Implement with TypeScript and React
4. Ensure accessibility compliance
5. Document changes
## Policies
- All code must be strictly typed (no `any`)
- Components must be keyboard-accessible
- Follow React hooks best practices
Before finalizing an agent, verify:
agents/ with correct naming (lowercase, hyphens)AGENTS.md file exists with proper frontmattername, description, skillscritical-partner included in skills (mandatory for ALL agents)process-documentation included for technical/management agentsskills/ directory- item), not arrays ([])make sync (if applicable)Take majiayu000/claude-skill-registry-agent-creation from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.