/agentkit-dev-skills:write-subagentfrom AgentKit Dev Skills
Draft a Claude Code subagent file in .claude/agents/ for one repeatable job, with a trigger-ready description, minimal tools and a fitting model. Use to create, fix or tune a subagent.
Ships in AgentKit Dev Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: one Markdown file with YAML frontmatter that Claude Code loads, delegates to at the right moments, and that can only touch what its job needs.
.claude/agents/, commit it for the team) or every project for this user (~/.claude/agents/)? Project wins on a name clash.Check .claude/agents/ and ~/.claude/agents/ first (both are scanned recursively). If a subagent with the same name exists, edit it instead of adding a second.
---
name: test-runner
description: Runs the test suite and reports only failing tests with the relevant error lines. Use proactively whenever tests need to be run. Do not use for writing or fixing tests, or for lint and type checks.
tools: Bash, Read, Grep
model: haiku
---
Rules:
name: lowercase with hyphens, unique. Identity comes from this field, not the filename. Never start it with - or put : in it.description (required): say what it does and when to use it. Add "Use proactively" only if Claude should delegate without being asked. End with a short "Do not use for ..." line naming the nearby jobs it should leave alone (often the work of a neighbouring subagent); it is the cheapest fix for a subagent that keeps grabbing the wrong tasks.tools is an allowlist. Read-only jobs get Read, Grep, Glob. Add Bash only for commands, Edit/Write only for jobs that change files, WebSearch, WebFetch only for lookups. To keep everything except a few tools, use disallowedTools instead. Omitting both means it inherits all tools, so do that only on purpose.model: haiku for fast, mechanical work (search, test runs, summaries), sonnet for review and debugging, opus for deep audits, or inherit to match the main session. Leave it out to use the default.disallowedTools, maxTurns). A misspelled field is ignored silently, so copy names exactly.Keep it under about 40 lines:
The subagent does not see your conversation. Put any context it always needs in the body or in CLAUDE.md.
--- is the very first line and the YAML parses.claude plugin validate is available, run it on the agents folder to catch parse errors; otherwise run claude --debug and look for the subagent in the log./agents only prints a reminder to edit the files; it no longer lists them.)description more specific about when. If it is picked for the wrong jobs, add or sharpen the "Do not use for ..." line.Show the user the file and the test result. Do not commit unless asked.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/agents-md-auditAudit an AGENTS.md, CLAUDE.md, Cursor rule or Copilot instructions file for stale commands, broken paths, vague rules, secrets and contradictions. Use to review or trim agent instructions./brag-doc-from-gitBuild an evidence-based brag doc or self-review draft from your merged PRs and commits, leaving visible gaps where results are unknown. Use for review season, promotion cases or resumes./dependency-upgradeUpgrade one dependency at a time by reading its changelog, planning for breaking changes, updating code and proving it still builds and passes. Use to bump, update or migrate a package./explain-codebaseMap an unfamiliar repo covering purpose, entry points, how to run it, main modules, data flow and risky areas, with file references. Use when asked to explain or onboard onto a codebase./pr-descriptionWrite a pull request title and description from the actual diff and commits, with what changed, why, how it was tested and what to review. Use when asked to write or improve a PR description./prove-it-ranVerify that tests, builds and checks actually ran and exercised the changed code, before claiming a task is done. Use before reporting completion, or when asked to prove tests ran or verify a fix.Generated from the plugin's indexed repository (agentkitco/agentkit-dev-skills) — no native marketplace selected
npx claudepluginhub p/agentkitco-agentkit-dev-skills