Expert in creating Claude Code subagents, skills, slash commands, plugins, and plugin marketplaces. Automatically activates when working with .md files in .claude/ directories, agent/command/skill frontmatter, marketplace.json, or when discussing Claude Code extensibility and component creation.
/plugin marketplace add sjungling/claude-plugins/plugin install claude@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/templates/agent-template.mdassets/templates/command-template.mdassets/templates/plugin.jsonassets/templates/skill-template.mdreferences/hooks-guide.mdreferences/plugins-guide.mdreferences/skills-guide.mdreferences/slash-commands-guide.mdreferences/subagents-guide.mdscripts/init_plugin.pyscripts/validate_marketplace.pyExpert guidance for creating Claude Code subagents, skills, slash commands, plugins, and plugin marketplaces.
This skill automatically activates when:
.claude/agents/*.md files.claude/commands/*.md filesskills/*/SKILL.md files.claude-plugin/plugin.json or marketplace.json.claude/ directoriesDo not use this skill for:
/help instead)Claude Code components use a three-level loading system to manage context efficiently:
Design components to be lean in the body, delegating detailed information to bundled references. This approach keeps the context window efficient while making specialized knowledge available when needed.
Before starting, determine which component type fits the requirements:
| Need | Use | Example |
|---|---|---|
| Always-available guidance | Skill | Code style patterns, debugging workflows |
| Keyboard shortcut | Command | /format-code, /run-tests |
| Delegatable workflow | Subagent | Code reviews, complex migrations |
| Package for distribution | Plugin | Collection of related components |
| Validate prerequisites | Hook | Check dependencies, verify API keys |
Skills provide automatic, context-aware guidance.
Steps:
skills/skill-name/SKILL.md with frontmatterSee: ./references/skills-guide.md for complete best practices
Commands provide quick shortcuts for common tasks.
Steps:
commands/command-name.mdSee: ./references/slash-commands-guide.md for complete best practices
Subagents provide specialized expertise and delegatable workflows.
Steps:
agents/agent-name.mdSee: ./references/subagents-guide.md for complete best practices
Plugins package components for distribution.
Quick Start: Plugin scaffold generator usage:
python ./scripts/init_plugin.py --name my-plugin --description "Description" --author "Your Name"
Steps:
./scripts/init_plugin.py).claude-plugin/plugin.json with metadata./scripts/validate_marketplace.py)See: ./references/plugins-guide.md for complete best practices
Hooks validate prerequisites and control tool execution.
Steps:
hooks/hooks.json configurationscripts/ directorychmod +x)See: ./references/hooks-guide.md for complete best practices
Note: This is a quick reference. See individual reference guides for complete schema details.
---
name: skill-name
description: Expert in [domain]. Automatically activates when [triggers]...
---
Note: Skills support ONLY name and description in frontmatter. Unlike subagents, skills do not support version, model, color, tools, or any other fields. Additional fields will be ignored.
See ./references/skills-guide.md for complete frontmatter specification.
---
name: agent-name
description: Agent purpose...
model: inherit
color: blue
tools: Read, Write, Edit
---
See ./references/subagents-guide.md for complete frontmatter specification.
---
description: Command description
allowed-tools:
- Bash(npm:*)
args:
- name: arg-name
description: What it does
---
See ./references/slash-commands-guide.md for complete frontmatter specification.
Do:
Don't:
Do:
Don't:
Do:
Don't:
Do:
Don't:
Component Templates: Use provided templates as starting points:
./assets/templates/plugin.json - Plugin metadata template./assets/templates/agent-template.md - Subagent structure template./assets/templates/skill-template.md - Skill structure template./assets/templates/command-template.md - Slash command templateskill-name/
├── SKILL.md
├── references/
│ ├── guide.md
│ └── patterns.md
└── templates/
└── template.txt
plugin-name/
├── .claude-plugin/
│ └── plugin.json
├── agents/
│ └── expert.md
├── commands/
│ └── quick-action.md
├── skills/
│ └── auto-guidance/
│ └── SKILL.md
├── SKILLS.md
└── README.md
---
description: Complex workflow delegated to expert
allowed-tools:
- Task
---
Use the domain-expert agent to [accomplish task].
Provide the agent with:
- [Context 1]
- [Context 2]
Expected deliverables:
- [Output 1]
- [Output 2]
Problem: Skill doesn't trigger in expected contexts
Solutions:
description variationsProblem: Component fails to load
Solutions:
Problem: Command prompts for approval repeatedly
Solutions:
allowed-tools arrayBash(npm:*)Problem: Plugin installation fails
Solutions:
source path uses ./ prefixcat marketplace.json | python -m json.toolThis skill includes bundled resources to support component creation:
References (loaded into context as needed):
./references/subagents-guide.md - Complete frontmatter reference, system prompt best practices, testing and integration patterns, common agent patterns./references/skills-guide.md - Description writing for activation, content structure recommendations, bundling reference materials, discovery and testing./references/slash-commands-guide.md - Tool preapproval syntax, argument handling, workflow patterns, security considerations./references/plugins-guide.md - Plugin structure and metadata, marketplace configuration, installation and distribution, testing and versioning./references/hooks-guide.md - Hook types and when to use them, PreToolUse hook implementation, input/output contracts, validation patterns and best practicesScripts (executable utilities):
./scripts/init_plugin.py - Generate plugin scaffold with complete directory structure (agents/, commands/, skills/, .claude-plugin/)./scripts/validate_marketplace.py - Validate marketplace.json configuration for correctness and best practicesAssets (templates used in output):
./assets/templates/plugin.json - Plugin metadata template with standard fields./assets/templates/agent-template.md - Subagent structure template with frontmatter and system prompt sections./assets/templates/skill-template.md - Skill structure template with activation triggers and bundled resources./assets/templates/command-template.md - Slash command template with argument handling and tool preapprovals---
name: api-testing-patterns
description: Expert in API testing patterns. Automatically activates when writing tests for REST APIs, GraphQL endpoints, or API integration tests - provides patterns for request mocking, response validation, authentication testing, and error scenario coverage
---
# API Testing Patterns
## Quick Start
When testing API endpoints:
1. Arrange: Set up test data and mocks
2. Act: Make the API request
3. Assert: Validate response
4. Cleanup: Reset state
[Additional content with patterns and examples]
---
description: Deploy application to specified environment
allowed-tools:
- Bash(git:*)
- Bash(npm run deploy:*)
- Bash(gh:*)
args:
- name: environment
description: Target environment (dev, staging, prod)
---
Deploy to $1 environment:
1. Verify git status is clean
2. Run deployment script for $1
3. Monitor deployment status
4. Create deployment record
Use: /deploy staging
---
name: code-reviewer
description: Expert code reviewer analyzing code quality, best practices, security, and maintainability. Use for comprehensive code reviews before merging.
model: inherit
color: purple
tools: Read, Grep, Glob
---
You are an expert code reviewer specializing in code quality, security, and maintainability.
## Review Process
1. Analyze changed files for:
- Code quality and readability
- Security vulnerabilities
- Performance implications
- Test coverage
2. Provide feedback on:
- Best practices adherence
- Design patterns
- Error handling
- Documentation
3. Suggest improvements with examples
[Additional review guidelines]
Claude Code components are successful when:
Skills:
Commands:
Subagents:
Plugins:
./ prefix in configurationsOfficial Claude Code Documentation: