agents-subagents

Solid

Create AI coding agent subagents with YAML frontmatter and least-privilege tools. Use when designing delegation, tool selection, or safety rules.

AI & Automation 80 stars 17 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
64
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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. Define the agent’s scope and success criteria. 2. Choose a model based on risk, latency, and cost (default to `sonnet` for most work). 3. Choose tools via least privilege; avoid granting `Edit`/`Write` unless required. 4. If delegating with `Task`, define a handoff contract (inputs, cons...

Details

Author
vasilyu1983
Repository
vasilyu1983/AI-Agents-public
Created
9 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category