claude-code-agents
Create and maintain Claude Code agents/subagents (.claude/agents/*.md) with YAML frontmatter (name/description/tools/model/permissionMode/skills/hooks), least-privilege tool selection, delegation patterns (Task), context budgeting, and safety best practices.
npx skills add majiayu000/claude-skill-registry --skill claude-code-agents --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Claude Code Agents Create and maintain Claude Code agents/subagents with predictable behavior, least-privilege tools, and explicit delegation contracts. ## Quick Start 1. Create an agent file at `.claude/agents/<agent-name>.md` (kebab-case filename). 2. Add YAML frontmatter (required: `name`, `description`; optional: `tools`, `model`, `permissionMode`, `skills`, `hooks`). 3. Write the agent prompt: responsibilities, workflow, and an output contract. 4. Minimize tools: start read-only, then add only what the agent truly needs. 5. Test on a real task and iterate. Minimal template: ```markdown --- name: sql-optimizer description: Optimize SQL queries, explain tradeoffs, and propose safe indexes tools: Read, Grep, Glob model: sonnet --- # SQL Optimizer ## Responsibilities - Diagnose bottlenecks using query shape and plans when available - Propose optimizations with risks and expected impact ## Workflow 1. Identify the slow path and data volume assumptions 2. Propose changes (query rewrite, indexes, stats) with rationale 3. Provide a verification plan ## Output Contract - Summary (1–3 bullets) - Recommendations (ordered) - Verification (commands/tests to run) ``` ## Workflow (2026) 1.
- Quick Start
- Workflow (2026)
- Frontmatter Fields (Summary)
- 2026 Best Practices (Domain Expertise)
- Validation Checklist
- Navigation
What does the claude-code-agents skill do?
Create and maintain Claude Code agents/subagents (.claude/agents/*.md) with YAML frontmatter (name/description/tools/model/permissionMode/skills/hooks), least-privilege tool selection, delegation patterns (Task), context budgeting, and safety best practices.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill claude-code-agents --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
