Master writing plugins including agent implementation, skill creation, command development, and hook scripting. Learn best practices for plugin coding.
Master writing plugins including agent implementation, skill creation, command development, and hook scripting. Learn best practices for plugin coding.
/plugin marketplace add pluginagentmarketplace/custom-plugin-design-system/plugin install custom-plugin-design-system@pluginagentmarketplace-design-systemThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/development_config.yamlreferences/DEVELOPMENT_GUIDE.mdscripts/dev_helper.pyCreate a complete agent:
---
description: Expert in X domain, helping with Y and Z
capabilities:
- "Build X systems"
- "Optimize performance"
- "Debug issues"
---
# Agent Name
## Overview
Expert specializing in X domain with 5+ years experience.
## Expert Areas
### Area 1: Core Concepts
Explanation and best practices...
## When to Use
Use this agent when building X or optimizing Y.
## Integration
Works with: agent-2, agent-3, skill-common
---
description: "What agent does. When to use. Max 1024 chars."
capabilities:
- "Specific capability 1"
- "Specific capability 2"
- "Specific capability 3"
- "Specific capability 4"
---
# Agent Name
## Overview
[1-2 sentences about agent expertise]
## Expert Areas
### Area 1
[Detailed explanation with examples]
### Area 2
[More specific guidance]
### Area 3
[Best practices]
## When to Use
Use this agent when:
- Task 1
- Task 2
- Task 3
## Integration
Works with:
- Agent name (for X)
- Agent name (for Y)
- Skill name (for Z)
---
**Status**: ✅ Production Ready | **Updated**: [Date]
---
name: skill-id
description: "What it teaches and when to use (max 1024 chars)"
---
# Skill Name
## Quick Start
[Working code - immediately useful]
```python
# Real example
result = do_something()
print(result)
[Explanation with code]
[Practical patterns]
[Advanced usage]
[Expert-level material]
[1-3 practical applications]
Use this skill when:
## Command Implementation
### Command Files
```markdown
# /command-name - One-Line Description
## What This Does
[Clear explanation of what command does]
## Usage
/command-name /command-name --option value /command-name --flag1 v1 --flag2 v2
## Options
| Option | Type | Description |
|--------|------|-------------|
| `--option` | string | What it does |
| `--flag` | boolean | Enables X |
## Example
$ /command-name my-plugin Creating plugin... ✅ Done!
Next: /command-2
## Tips
- Tip 1
- Tip 2
## Related Commands
- `/other-command`
{
"hooks": [
{
"id": "unique-id",
"name": "Hook Display Name",
"description": "What it does",
"event": "event-type",
"condition": "condition-logic",
"action": "action-handler",
"enabled": true
}
],
"notifications": {
"enabled": true,
"channels": ["in-app", "console"]
}
}
command-executed - When command runsagent-invoked - When agent usedskill-loaded - When skill accessedscheduled - Periodic events✅ Clear description (100-200 chars)
✅ 5-10 specific capabilities
✅ 3-5 expert areas
✅ "When to Use" section
✅ Integration points documented
✅ 250-400 lines total
✅ Name: lowercase-hyphens
✅ Description: actionable, clear
✅ Quick Start: working code
✅ 3+ core concepts
✅ Advanced section
✅ 2+ real projects
✅ 200-300 lines total
✅ Clear description
✅ Usage examples
✅ Options documented
✅ Example output shown
✅ Next steps suggested
✅ 100-150 lines total
Agent → Explains concept
Skill → Provides examples
Command → Enable practice
Command → Starts workflow
Agent → Guides decisions
Hook → Automate steps
Agent A → Recommends B
Agent B → Links to skill X
Skill X → Suggests command Y
✅ Description under 1024 chars
✅ Capabilities are specific
✅ Content is 250-400 lines
✅ Integration documented
✅ Status included
✅ Name lowercase-hyphenated
✅ Quick Start runs without error
✅ 3+ concepts explained
✅ Real projects included
✅ Proper formatting
✅ Command executes
✅ Options work as documented
✅ Output matches description
✅ Next steps provided
✅ No errors
✅ What agent does
✅ When to use
✅ Capabilities (5-10)
✅ Expert areas (3-5)
✅ Integration points
✅ Status & date
✅ Clear description
✅ Quick Start code
✅ Core concepts (3+)
✅ Advanced topics
✅ Real projects (2+)
✅ Usage guidelines
✅ What it does
✅ Usage syntax
✅ Options table
✅ Example output
✅ Next steps
✅ Related commands
feat: Add new skill for X
fix: Correct Y in agent
docs: Update Z documentation
refactor: Improve performance
test: Add validation tests
New agent?
→ Ensure manifest updated
→ Add to appropriate section
→ Document relationships
New skill?
→ Create folder with SKILL.md
→ Reference in manifest
→ Add to agent capabilities
New command?
→ Create markdown file
→ Add to manifest
→ Document options
Use this skill when:
Status: ✅ Production Ready | SASMP: v1.3.0 | Bonded Agent: 02-plugin-developer
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.