Loading...
Loading...
Claude Code extensibility: agents, skills, output styles. Capabilities: create/update/delete agents and skills, YAML frontmatter, system prompts, tool/model selection, resumable agents, CLI-defined agents. Actions: create, edit, delete, optimize, test extensions. Keywords: agent, skill, output-style, SKILL.md, subagent, Task tool, progressive disclosure. Use when: creating agents/skills, editing extensions, configuring tool access, choosing models, testing activation.
npx skill4agent add samhvw8/dot-claude claude-extensibilityprompt-enhancerSkill("prompt-enhancer") → Enhance skill/agent prompt content| Type | Invocation | Purpose | Location |
|---|---|---|---|
| Agents | Task tool | Specialized sub-processes | |
| Skills | Model-invoked (autonomous) | Domain knowledge | |
| Output Styles | | Modify main agent behavior | |
references/agent-development.md---
name: agent-name
description: Use this agent when [use case]. Use PROACTIVELY for [triggers].\n\nExamples:\n<example>\nContext: [situation]\nuser: [request]\nassistant: [response]\n<commentary>[reasoning]</commentary>\n</example>
tools: Grep, Glob, Read, Bash
model: haiku
permissionMode: default
skills: skill-name
---
# Agent Name
Brief mission statement.
## Core Strategy
### 1. Phase Name
Approach and techniques
<format>
Expected output structure
</format>| Field | Required | Description |
|---|---|---|
| Yes | Lowercase, hyphens (e.g., |
| Yes | Single line with |
| No | Comma-separated; inherits all if omitted |
| No | |
| No | |
| No | Comma-separated skill names to auto-load |
| Model | Use When | Target Time |
|---|---|---|
| Fast tasks, exploration, search | < 3s |
| Balanced, most use cases | < 10s |
| Complex reasoning, architecture | < 30s |
| Match main conversation model | varies |
| Agent | Model | Tools | Purpose |
|---|---|---|---|
| Sonnet | All | Complex research, multi-step operations |
| Sonnet | Read, Glob, Grep, Bash | Research in plan mode |
| Haiku | Read-only | Fast codebase search (quick/medium/very thorough) |
| Location | Scope | Priority |
|---|---|---|
| Project | Highest |
| User (all projects) | Lower |
Plugin | Plugin-specific | Varies |
| Session only | Medium |
claude --agents '{
"code-reviewer": {
"description": "Expert code reviewer. Use proactively after code changes.",
"prompt": "You are a senior code reviewer...",
"tools": ["Read", "Grep", "Glob", "Bash"],
"model": "sonnet"
}
}'agentIdagent-{agentId}.jsonlagentIdreferences/skill-development.md---
name: skill-name
description: "[What it does]. [Technologies]. Capabilities: [list]. Actions: [verbs]. Keywords: [triggers]. Use when: [scenarios]."
allowed-tools: Read, Grep, Glob
---
# Skill Name
## Purpose
What this skill helps with
## When to Use
Specific scenarios and conditions
## Key Information
Guidance, patterns, examples| Field | Required | Description |
|---|---|---|
| Yes | Lowercase, hyphens, max 64 chars |
| Yes | WHAT + WHEN format, max 1024 chars, quoted |
| No | Restrict tool access (security) |
"[Core purpose]. [Technologies/Stack]. Capabilities: [list]. Actions: [verbs]. Keywords: [triggers]. Use when: [scenarios]."description: "Extract text and tables from PDF files, fill forms, merge documents. Formats: .pdf. Tools: pypdf, pdfplumber. Capabilities: text extraction, form filling, document merging. Actions: extract, fill, merge PDFs. Keywords: PDF, form, document, pypdf, pdfplumber. Use when: working with PDF files, extracting data from documents, filling PDF forms."description: Helps with documents # Too vague
description: PDF skill # Missing WHEN triggersallowed-tools---
name: safe-reader
description: "Read-only file access. Use when viewing code without modifications."
allowed-tools: Read, Grep, Glob
---| Location | Scope |
|---|---|
| Project (shared via git) |
| User (all projects) |
Plugin | Plugin-bundled |
my-skill/
├── SKILL.md (required)
├── references/ (optional - detailed docs)
├── scripts/ (optional - utilities)
└── templates/ (optional - templates)---
name: My Custom Style
description: Brief description of behavior
keep-coding-instructions: true
---
# Custom Style Instructions
You are an interactive CLI tool that helps users...
## Specific Behaviors
[Define assistant behavior...]| Field | Purpose | Default |
|---|---|---|
| Display name | Filename |
| UI description | None |
| Retain coding instructions | |
TODO(human)~/.claude/output-styles/.claude/output-styles//output-style # Access menu
/output-style explanatory # Switch directlyTask(
subagent_type="agent-name",
description="Test task",
prompt="Detailed test prompt"
)claude --debug.claude/agents/{name}.md.claude/skills/{name}/SKILL.mdSkill("prompt-enhancer")Skill("prompt-enhancer").claude/agents/*.md.claude/skills/{name}/SKILL.md.claude/output-styles/*.md/agents/output-style