Agent definition conventions. Use when creating or modifying agents at any level (~/.claude/agents/, .claude/agents/, or project-local). Validate frontmatter, update README.md index. NOT for creating skills, MCP servers, or modifying CLAUDE.md.
Apply these conventions when creating or modifying AI agent definitions.
| $ARGUMENTS | Action |
|------------|--------|
| Active (auto-invoked when working on agent files) | Apply all conventions below |
| Empty | Display convention summary |
| check | Run validation checks only |
| File | Purpose |
|------|---------|
| references/readme-template.md | Template for agent README.md index entries |
Create new agent definitions with:
python skills/agent-conventions/scripts/scaffold_agent.py <name>
Every agent file must include these fields in YAML frontmatter:
name -- kebab-case, must match filename without .mddescription -- non-empty, describes the agent's purposetools -- comma-separated tool allowlist (default: all)disallowedTools -- comma-separated tool denylistmodel -- sonnet | opus | haiku | inherit (default: inherit)permissionMode -- default | acceptEdits | delegate | dontAsk | bypassPermissions | planmaxTurns -- integer cap on agentic turnsskills -- list of skills preloaded into agent contextmcpServers -- list of MCP servers available to this agentmemory -- user | project | localhooks -- lifecycle hooks scoped to this agentMemory field conventions:
local for temporary insights, project for shared patterns, user for cross-project preferencesdebugging.md, api-patterns.md), not chronologically^[a-z0-9][a-z0-9-]*$.md) must match the name frontmatter field exactlyWhen defining a new agent at any level:
~/.{gemini|copilot|codex|claude}/agents/.claude/agents/ (project-level)Update the corresponding README.md index in the same directory:
name and description in frontmatter -- they are requiredpython scripts/validate_agent.py --check-index after any agent frontmatter changeCanonical terms (use these exactly):
agent -- an AI agent definition file in agents/ directoryfrontmatter -- YAML metadata between --- delimiterssystem prompt -- the markdown body after frontmatterindex table -- the markdown table in README.md listing all agentskebab-case -- lowercase words separated by hyphensBefore declaring changes to this skill complete, run:
python skills/agent-conventions/scripts/check.py
Completion criteria:
scripts/check.py exits 0.scripts/validate_agent.py --check-index.npx skills add wyattowalsh/agent-conventions下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer