willyd61/nautobot-v2-custom-metrics-old/agent-authoring
Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Creates and configures Claude Code subagents (custom agents). Covers frontmatter fields, tool restrictions, model selection, hooks, memory, skills preloading, and common patterns. Follows official Anthropic best practices. USE WHEN: user mentions "create agent", "subagent", "custom agent", ".claude/agents", "agent file", "delegate task", "isolated context", "agent memory", "agent hooks" DO NOT USE FOR: creating skills - use `skill-authoring`; creating hooks standalone - use `hook-authoring`; creating MCP servers - use `mcp-authoring`
Install
npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/agent-authoringSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/agent-authoring.
Agent/Subagent Authoring — Official Best Practices
File Structure
Agents are Markdown files with YAML frontmatter. The body becomes the system prompt.
YAML Frontmatter — All Fields
See quick-ref/frontmatter-reference.md for detailed field docs.
System Prompt (Body)
The markdown body IS the system prompt. Subagents receive ONLY this + basic env details (cwd, etc.), NOT the full Claude Code system prompt.
Effective prompt structure:
Description — Critical for Delegation
Claude delegates based on the description. Include "Use proactively" to encourage automatic delegation.
Good: "Expert code review specialist. Use proactively after code changes." Bad: "Reviews code" — too vague, Claude won't know when to delegate.
Key Design Decisions
When to use agents vs skills vs main conversation
| Use Case | Mechanism | |
|---|---|---|
| Verbose output you don't need in main context | Agent | |
| Enforce tool restrictions | Agent | |
| Self-contained work returning a summary | Agent | |
| Reusable knowledge/instructions inline | Skill | |
| Frequent back-and-forth needed | Main conversation | |
| Quick, targeted changes | Main conversation |
Model selection
| Model | Use for | |
|---|---|---|
haiku | Fast exploration, simple search, low-cost | |
sonnet | Balanced — code review, analysis, most tasks | |
opus | Complex reasoning, architecture decisions | |
inherit | Same as main conversation (default) |
Tool restrictions
- Read-only agent:
tools: Read, Grep, Glob, Bash - Full capabilities: omit
tools(inherits all) - Block specific tools:
disallowedTools: Write, Edit - Restrict spawning:
tools: Agent(worker, researcher), Read
Common Patterns
See quick-ref/patterns.md for detailed examples.
Code reviewer — Read-only, focused on quality Debugger — Can edit, diagnosis-to-fix workflow Domain expert — Specialized knowledge (data science, security) Parallel research — Multiple agents exploring independently Chain — Sequential agents, each building on previous results
Memory
When memory is set, the agent gets a persistent directory across sessions.
| Scope | Location | Use when | |
|---|---|---|---|
user | ~/.claude/agent-memory/<name>/ | Learnings across all projects | |
project | .claude/agent-memory/<name>/ | Project-specific, shareable via VCS | |
local | .claude/agent-memory-local/<name>/ | Project-specific, not committed |
The agent automatically gets Read/Write/Edit tools + instructions for managing MEMORY.md.
Tip: Include in prompt: "Update your agent memory as you discover patterns, codepaths, and architectural decisions."
Anti-Patterns
| Anti-Pattern | Fix | |
|---|---|---|
| Too many responsibilities | One agent, one job. Create separate agents for different tasks | |
| No description or vague description | Detailed description with "use proactively" | |
| Overly permissive tools | Grant only what's needed | |
| Expecting subagents to spawn subagents | Not supported. Use chains from main conversation | |
| Forgetting subagents lose parent context | They start fresh. Preload skills or provide full instructions |
Checklist
- [ ]
nameanddescriptionset (both required) - [ ] Description explains WHEN to delegate, not just what
- [ ] Tools restricted to minimum necessary
- [ ] Model chosen based on task complexity
- [ ] System prompt has clear workflow steps
- [ ] Tested with real scenarios
- [ ] Committed to
.claude/agents/(project) or~/.claude/agents/(user)
Reference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mcp-servers/skill-loader/skills/claude-code-authoring/agent-authoring/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyd61/nautobot-v2-custom-metrics-old/agent-authoring)