agent-authoring

Guides authoring of Claude Code subagent definitions in .claude/agents markdown files.

Updated Jul 25, 2026
One-click install
npx skills add https://github.com/RorySullivan1/powerapp_taskmaster --skill agent-authoring-rorysullivan1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-authoring
Source: https://github.com/RorySullivan1/powerapp_taskmaster/tree/main/.claude/skills/agent-authoring
Command: npx skills add https://github.com/RorySullivan1/powerapp_taskmaster --skill agent-authoring-rorysullivan1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing a Claude Code subagent that actually gets invoked is hard: vague descriptions mean the agent never triggers, over-broad tool lists create risk, and bodies that assume conversation context fail silently. This Skill provides the design principles, frontmatter field guidance, and templates needed to author agents that delegate reliably and run with least privilege. ## Core Features & Use Cases - Delegation-focused description writing: Craft description fields with concrete triggers and the "proactively" convention so Claude hands off tasks reliably. - Least-privilege configuration: Choose minimal tools allowlists, the weakest workable permissionMode (default, plan, acceptEdits, bypassPermissions), and an appropriate model (haiku, sonnet, opus, inherit). - Complete agent templates: Use the included frontmatter template, worked diff-reviewer example, authoring checklist, and anti-pattern list to scaffold or review agents. - Use Case: You want an agent that reviews every diff after code changes. Use this Skill to decide it warrants an agent, write a trigger-rich description, scope tools to Read/Grep/Glob/Bash, set permissionMode: plan, and produce the full .claude/agents/diff-reviewer.md file. ## Quick Start Ask the AI to use the agent-authoring skill to draft a new Claude Code subagent for reviewing code diffs, including its frontmatter and system prompt.

Frequently Asked Questions about agent-authoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Claude Code subagent that actually gets invoked?▼

Write a description field that leads with the use case and names concrete trigger phrases, using the "proactively" convention when you want automatic delegation. Claude decides whether to delegate by reading the description, so vague descriptions mean the agent is never used.

What tools and permissions should a Claude Code agent have?▼

Specify a least-privilege tools allowlist such as Read, Grep, Glob for read-only analyzers, adding Edit or Write only when the mandate requires it. Pair it with the weakest permissionMode that still completes the job, reserving bypassPermissions for trusted narrow automation.

Should I create an agent, a skill, a command, or a hook?▼

Choose an agent when a self-contained side task produces noisy output and can return a tidy summary in an isolated context. Choose a skill for reusable in-conversation expertise, a command for one-shot prompts, and a hook for deterministic event-triggered actions.

Why isn't my Claude Code agent being used?▼

The description is almost certainly too generic, since delegation decisions are driven entirely by that field. Sharpen it with specific situations and trigger phrases before changing tools, permissions, or the body.

Does a subagent inherit the conversation and CLAUDE.md context?▼

No, a subagent starts fresh with a separate context window and should not be assumed to absorb every CLAUDE.md rule. Anything it must know must be restated in its system-prompt body or passed in its task input.

Which model should I set for a Claude Code subagent?▼

Match the model to the reasoning load: haiku for fast mechanical or high-volume work, sonnet as the default for most agents, opus for complex multi-step reasoning, or inherit to follow the parent session's model.