Expert knowledge in creating and configuring Claude Code components (subagents, skills, slash commands, hooks, MCP integrations)...
This skill provides comprehensive guidance for creating and configuring Claude Code components following official best practices. Use this when working with .claude/ directory structure including agents, skills, commands, hooks, and MCP integrations.
All official documentation references are maintained in docs/claude/README.md. Always consult these references for the latest standards and best practices:
When creating new components, fetch and review the relevant documentation using the WebFetch tool.
Use a Subagent when you need:
Use a Skill when you need:
Use a Command when you need:
Use a Hook when you need:
Agent (specialized AI for focused tasks):
name: code-reviewer
description: Reviews code for quality and best practices
tools: Read, Grep, Glob
Skill (reusable knowledge package):
name: api-design-patterns
description: REST API design. Use when designing or reviewing APIs.
Command (user-invocable workflow):
description: Review code changes
allowed-tools: Task(code-reviewer)
See detailed guides: Agents | Skills | Commands
Specialized AI assistants that handle specific types of tasks in isolated contexts.
.claude/agents/[agent-name].mdSee Agent Creation Guide for complete details.
Reusable knowledge packages that can be loaded into conversations or subagents.
.claude/skills/[skill-name]/SKILL.mdSee Skills Creation Guide for complete details.
User-invocable prompts that provide reusable workflows.
.claude/commands/[command-name].mdSee Commands Creation Guide for complete details.
Scripts that run automatically on tool events.
.claude/settings.json or component frontmatterSee Hooks Reference Guide for complete details.
Standard layout for a well-organized .claude/ directory:
.claude/
āāā settings.json # Project-level configuration
āāā agents/
ā āāā agent-name-1.md
ā āāā agent-name-2.md
āāā skills/
ā āāā skill-name-1/
ā ā āāā SKILL.md
ā ā āāā reference.md # Progressive disclosure
ā ā āāā scripts/
ā ā āāā helper.py
ā āāā skill-name-2/
ā āāā SKILL.md
āāā commands/
ā āāā command-1.md
ā āāā command-2.md
āāā hooks/
āāā README.md # Hook documentation
āāā scripts/
āāā validate.sh
āāā lint.sh
Agents: lowercase-with-hyphens
code-reviewer, test-runner, db-analyzerCodeReviewer, test_runner, DBAnalyzerSkills: lowercase-with-hyphens (gerund form preferred)
processing-pdfs, analyzing-data, reviewing-codepdf-processing, data-analysis, code-reviewhelper, utils, tools (too vague)Commands: lowercase-with-hyphens
translate, deploy-staging, run-testsdoTranslate, Deploy_StagingFiles: Always use .md extension for agents, skills, and commands
All Components: Valid YAML, clear description with trigger terms, follows naming conventions
Agents: Focused purpose, minimal tools, clear workflow, tested Skills: Concise (<500 lines), concrete examples, one-level references Commands: User-facing, clear arguments, examples included Hooks: Fast execution, proper error handling, appropriate scope
For detailed checklists, see component-specific guides.
For detailed guidance, see these companion guides:
Always refer to the official documentation (see top of this file) when:
The official documentation is the source of truth. This skill provides a practical guide, but defer to official docs for authoritative information.