Plugin Setup Creator
Version: 1.0.0
Last Updated: 2025-11-10
Purpose
This skill helps you create a complete, shareable Claude Code plugin that packages your personal setup including:
- Custom slash commands
- Event hooks and automation scripts
- Output style configurations
- Status line templates
- Specialized subagents/AI assistants
- Comprehensive plugin manifest and documentation
The generated plugin can be immediately shared with team members or published to community marketplaces.
Instructions
Phase 1: Discovery and Assessment
Ask the user about their setup
- What custom commands do they have?
- What hooks and automations are configured?
- Do they use custom output styles?
- What status line configurations exist?
- What specialized agents/subagents have they created?
- What's the intended audience (personal, team, public)?
Verify existing configurations
- Check
~/.claude/commands/ for custom slash commands
- Check
~/.claude/hooks/ for hook configurations
- Check
~/.claude/output-styles/ for output style definitions
- Check
~/.claude/status-lines/ for status line configs
- Check
~/.claude/agents/ for subagent definitions
- Review
.claude/settings.json for project-level configurations
Assess plugin metadata needs
- Plugin name (kebab-case, max 64 chars)
- Description and purpose
- Author information
- License
- Target audience and use cases
Phase 2: Plugin Structure Creation
Create plugin directory structure
plugin-name/
├── .claude-plugin/
│ └── plugin.json
├── commands/
│ └── [custom commands]
├── agents/
│ └── [subagent definitions]
├── hooks/
│ ├── hooks.json
│ └── scripts/
├── output-styles/
│ └── [style configs]
├── status-lines/
│ └── [status line configs]
├── README.md
├── LICENSE
└── INSTALLATION.md
Organize components
- Copy commands from
~/.claude/commands/ to commands/
- Extract hooks configuration into
hooks/hooks.json
- Copy output style files to
output-styles/
- Copy status line configs to
status-lines/
- Convert agents to proper subagent format in
agents/
Create central plugin.json manifest
- Name: Use provided plugin name
- Version: Start with 1.0.0
- Description: Clear explanation with trigger keywords
- Author: User information
- Keywords: For marketplace discovery
- Reference paths for all components
Generate supporting documentation
- README.md: Overview and installation instructions
- INSTALLATION.md: Step-by-step setup guide
- COMPONENTS.md: Detail what each component does
- USAGE.md: Examples and common workflows
Phase 3: Component Validation
Validate all files
- Check JSON syntax (plugin.json, hooks.json)
- Verify markdown frontmatter in commands
- Ensure relative paths (start with
./)
- Confirm no sensitive data (credentials, tokens)
Verify directory structure
- All components at plugin root (not in .claude-plugin/)
- Proper nesting (commands/, agents/, etc.)
- Supporting files organized logically
Test references
- Validate all file paths in hooks.json
- Check command and agent paths
- Verify output style references
Phase 4: Distribution Preparation
Create git repository
- Initialize git in plugin directory
- Create .gitignore for sensitive files
- Make initial commit
Generate marketplace manifest (optional)
- Create
.claude-plugin/marketplace.json if creating a marketplace
- Define plugin entry with version info
- Set category and metadata
Create sharing documentation
- Installation instructions for recipients
- Quick start guide
- Troubleshooting section
- Update/maintenance guidelines
Phase 5: Testing and Finalization
Local testing workflow
- Test marketplace setup locally
- Install plugin from local path
- Verify all components work
- Check command invocation
- Confirm hooks trigger properly
- Test agent activation
Generate plugin summary
- List all included commands
- Document all hooks
- Describe output styles
- Detail status line configs
- List agents/subagents
Create deployment guide
- GitHub setup instructions
- Marketplace submission process
- Team distribution method
- Version management approach
Examples
Example 1: Personal Productivity Plugin
User Request: "Package my custom commands and hooks into a shareable plugin"
Skill Actions:
- Discovers existing commands:
/review, /commit, /doc, /test
- Finds hooks configuration for auto-formatting and linting
- Creates
my-productivity-plugin/ structure
- Generates comprehensive plugin.json
- Creates README with installation instructions
- Tests locally via dev marketplace
- Provides GitHub setup guide
Output: Complete, tested plugin ready for team sharing or publication
Example 2: Team AI Agents Plugin
User Request: "Create a plugin from my specialized subagents for code review and testing"
Skill Actions:
- Identifies custom agents:
security-reviewer, test-generator
- Converts to proper subagent format
- Creates plugin with bundled agents
- Generates agent documentation
- Creates example invocation commands
- Sets up marketplace manifest for team distribution
Output: Plugin with ready-to-use specialized agents
Example 3: Complete Setup Export
User Request: "Export my entire Claude Code setup as a plugin with all my customizations"
Skill Actions:
- Discovers all commands, hooks, styles, status lines, and agents
- Creates comprehensive plugin structure
- Organizes components logically
- Generates complete documentation
- Creates setup.sh for easy installation
- Tests all components together
- Provides sharing and version management guide
Output: Complete, production-ready plugin of entire setup
Key Features
Automatic Discovery
- Scans existing Claude Code directories for customizations
- Identifies all commands, hooks, output styles, and agents
- Preserves configuration and functionality
Smart Organization
- Proper directory structure for marketplace compatibility
- Component references in plugin.json
- Relative path handling
Comprehensive Documentation
- README for overview
- INSTALLATION.md for setup
- COMPONENTS.md for detailed descriptions
- USAGE.md with examples
Built-in Testing
- Validates all JSON syntax
- Checks file paths and references
- Tests local installation
- Verifies component activation
Distribution Ready
- Git initialization
- .gitignore generation
- Marketplace manifest (optional)
- GitHub publishing guide
- Team distribution instructions
Version Management
- Semantic versioning setup
- Version history tracking
- Update guidelines
- Tag recommendations
Prerequisites
- Claude Code installed and configured
- Existing custom commands, hooks, or agents (at least some)
- Git installed (for repository creation)
- jq or Python (for JSON validation - optional but recommended)
Supported Component Types
Slash Commands
- Custom markdown files with YAML frontmatter
- Template variables support
- Argument handling
Hooks
- PreToolUse and PostToolUse events
- SessionStart and SessionStop events
- Custom shell scripts with
${CLAUDE_PLUGIN_ROOT} support
- Filter conditions (tool type, command patterns)
Output Styles
- Custom formatting templates
- Color schemes
- Rendering preferences
- Display customizations
Status Lines
- Multi-version status line configurations
- Custom key-value pairs
- Session metadata
- Display templates
Subagents
- Markdown definitions with YAML frontmatter
- Custom system prompts
- Tool restrictions
- Model selection
Common Workflows
Share Personal Setup with Team
- Run this skill
- Select all personal customizations
- Generate plugin
- Publish to team marketplace
- Team members install once, get all customizations
Create Framework-Specific Plugin
- Create specialized commands for framework
- Add framework-aware subagents
- Package with hooks for automation
- Publish to community marketplace
Export Project Setup
- Gather all project-specific commands and hooks
- Include project standards as agents
- Create README with project context
- Include in project repository as
.claude-plugin/
Build Team Plugin Library
- Collect best practices as commands
- Create specialized agents for common tasks
- Add security hooks
- Distribute via team marketplace
Next Steps After Generation
Test locally:
/plugin marketplace add ./plugin-name
/plugin install plugin-name@dev-marketplace
/help # Verify commands appear
Publish:
- Push to GitHub (for public/team sharing)
- Submit to marketplace (for community)
- Share locally (for immediate team use)
Maintain:
- Update version in plugin.json
- Track changes in COMPONENTS.md
- Create git tags for releases
- Update README with new features
Version History
v1.0.0 (2025-11-10)
- Initial release
- Full plugin structure generation
- Command, hook, agent, output style, and status line support
- Comprehensive documentation generation
- Local testing guidance
- Distribution preparation
- Marketplace manifest support
1---2name: plugin-setup-creator3description: Create a shareable Claude Code plugin package containing your commands, hooks, output styles, status lines, and agents. Use when you want to package and distribute your Claude Code customizations, create team plugins, or export your personal setup.4---5
6# Plugin Setup Creator
7
8**Version:** 1.0.0
9**Last Updated:** 2025-11-10
10
11## Purpose
12
13This skill helps you create a complete, shareable Claude Code plugin that packages your personal setup including:
14- Custom slash commands
15- Event hooks and automation scripts
16- Output style configurations
17- Status line templates
18- Specialized subagents/AI assistants
19- Comprehensive plugin manifest and documentation
20
21The generated plugin can be immediately shared with team members or published to community marketplaces.
22
23## Instructions
24
25### Phase 1: Discovery and Assessment
26
271. **Ask the user about their setup**
28 - What custom commands do they have?
29 - What hooks and automations are configured?
30 - Do they use custom output styles?
31 - What status line configurations exist?
32 - What specialized agents/subagents have they created?
33 - What's the intended audience (personal, team, public)?
34
352. **Verify existing configurations**
36 - Check `~/.claude/commands/` for custom slash commands
37 - Check `~/.claude/hooks/` for hook configurations
38 - Check `~/.claude/output-styles/` for output style definitions
39 - Check `~/.claude/status-lines/` for status line configs
40 - Check `~/.claude/agents/` for subagent definitions
41 - Review `.claude/settings.json` for project-level configurations
42
433. **Assess plugin metadata needs**
44 - Plugin name (kebab-case, max 64 chars)
45 - Description and purpose
46 - Author information
47 - License
48 - Target audience and use cases
49
50### Phase 2: Plugin Structure Creation
51
521. **Create plugin directory structure**
53 ```
54 plugin-name/
55 ├── .claude-plugin/
56 │ └── plugin.json
57 ├── commands/
58 │ └── [custom commands]
59 ├── agents/
60 │ └── [subagent definitions]
61 ├── hooks/
62 │ ├── hooks.json
63 │ └── scripts/
64 ├── output-styles/
65 │ └── [style configs]
66 ├── status-lines/
67 │ └── [status line configs]
68 ├── README.md
69 ├── LICENSE
70 └── INSTALLATION.md
71 ```
72
732. **Organize components**
74 - Copy commands from `~/.claude/commands/` to `commands/`
75 - Extract hooks configuration into `hooks/hooks.json`
76 - Copy output style files to `output-styles/`
77 - Copy status line configs to `status-lines/`
78 - Convert agents to proper subagent format in `agents/`
79
803. **Create central plugin.json manifest**
81 - Name: Use provided plugin name
82 - Version: Start with 1.0.0
83 - Description: Clear explanation with trigger keywords
84 - Author: User information
85 - Keywords: For marketplace discovery
86 - Reference paths for all components
87
884. **Generate supporting documentation**
89 - README.md: Overview and installation instructions
90 - INSTALLATION.md: Step-by-step setup guide
91 - COMPONENTS.md: Detail what each component does
92 - USAGE.md: Examples and common workflows
93
94### Phase 3: Component Validation
95
961. **Validate all files**
97 - Check JSON syntax (plugin.json, hooks.json)
98 - Verify markdown frontmatter in commands
99 - Ensure relative paths (start with `./`)
100 - Confirm no sensitive data (credentials, tokens)
101
1022. **Verify directory structure**
103 - All components at plugin root (not in .claude-plugin/)
104 - Proper nesting (commands/*, agents/*, etc.)
105 - Supporting files organized logically
106
1073. **Test references**
108 - Validate all file paths in hooks.json
109 - Check command and agent paths
110 - Verify output style references
111
112### Phase 4: Distribution Preparation
113
1141. **Create git repository**
115 - Initialize git in plugin directory
116 - Create .gitignore for sensitive files
117 - Make initial commit
118
1192. **Generate marketplace manifest** (optional)
120 - Create `.claude-plugin/marketplace.json` if creating a marketplace
121 - Define plugin entry with version info
122 - Set category and metadata
123
1243. **Create sharing documentation**
125 - Installation instructions for recipients
126 - Quick start guide
127 - Troubleshooting section
128 - Update/maintenance guidelines
129
130### Phase 5: Testing and Finalization
131
1321. **Local testing workflow**
133 - Test marketplace setup locally
134 - Install plugin from local path
135 - Verify all components work
136 - Check command invocation
137 - Confirm hooks trigger properly
138 - Test agent activation
139
1402. **Generate plugin summary**
141 - List all included commands
142 - Document all hooks
143 - Describe output styles
144 - Detail status line configs
145 - List agents/subagents
146
1473. **Create deployment guide**
148 - GitHub setup instructions
149 - Marketplace submission process
150 - Team distribution method
151 - Version management approach
152
153## Examples
154
155### Example 1: Personal Productivity Plugin
156
157**User Request:** "Package my custom commands and hooks into a shareable plugin"
158
159**Skill Actions:**
1601. Discovers existing commands: `/review`, `/commit`, `/doc`, `/test`
1612. Finds hooks configuration for auto-formatting and linting
1623. Creates `my-productivity-plugin/` structure
1634. Generates comprehensive plugin.json
1645. Creates README with installation instructions
1656. Tests locally via dev marketplace
1667. Provides GitHub setup guide
167
168**Output:** Complete, tested plugin ready for team sharing or publication
169
170### Example 2: Team AI Agents Plugin
171
172**User Request:** "Create a plugin from my specialized subagents for code review and testing"
173
174**Skill Actions:**
1751. Identifies custom agents: `security-reviewer`, `test-generator`
1762. Converts to proper subagent format
1773. Creates plugin with bundled agents
1784. Generates agent documentation
1795. Creates example invocation commands
1806. Sets up marketplace manifest for team distribution
181
182**Output:** Plugin with ready-to-use specialized agents
183
184### Example 3: Complete Setup Export
185
186**User Request:** "Export my entire Claude Code setup as a plugin with all my customizations"
187
188**Skill Actions:**
1891. Discovers all commands, hooks, styles, status lines, and agents
1902. Creates comprehensive plugin structure
1913. Organizes components logically
1924. Generates complete documentation
1935. Creates setup.sh for easy installation
1946. Tests all components together
1957. Provides sharing and version management guide
196
197**Output:** Complete, production-ready plugin of entire setup
198
199## Key Features
200
201### Automatic Discovery
202- Scans existing Claude Code directories for customizations
203- Identifies all commands, hooks, output styles, and agents
204- Preserves configuration and functionality
205
206### Smart Organization
207- Proper directory structure for marketplace compatibility
208- Component references in plugin.json
209- Relative path handling
210
211### Comprehensive Documentation
212- README for overview
213- INSTALLATION.md for setup
214- COMPONENTS.md for detailed descriptions
215- USAGE.md with examples
216
217### Built-in Testing
218- Validates all JSON syntax
219- Checks file paths and references
220- Tests local installation
221- Verifies component activation
222
223### Distribution Ready
224- Git initialization
225- .gitignore generation
226- Marketplace manifest (optional)
227- GitHub publishing guide
228- Team distribution instructions
229
230### Version Management
231- Semantic versioning setup
232- Version history tracking
233- Update guidelines
234- Tag recommendations
235
236## Prerequisites
237
238- Claude Code installed and configured
239- Existing custom commands, hooks, or agents (at least some)
240- Git installed (for repository creation)
241- jq or Python (for JSON validation - optional but recommended)
242
243## Supported Component Types
244
245### Slash Commands
246- Custom markdown files with YAML frontmatter
247- Template variables support
248- Argument handling
249
250### Hooks
251- PreToolUse and PostToolUse events
252- SessionStart and SessionStop events
253- Custom shell scripts with `${CLAUDE_PLUGIN_ROOT}` support
254- Filter conditions (tool type, command patterns)
255
256### Output Styles
257- Custom formatting templates
258- Color schemes
259- Rendering preferences
260- Display customizations
261
262### Status Lines
263- Multi-version status line configurations
264- Custom key-value pairs
265- Session metadata
266- Display templates
267
268### Subagents
269- Markdown definitions with YAML frontmatter
270- Custom system prompts
271- Tool restrictions
272- Model selection
273
274## Common Workflows
275
276### Share Personal Setup with Team
2771. Run this skill
2782. Select all personal customizations
2793. Generate plugin
2804. Publish to team marketplace
2815. Team members install once, get all customizations
282
283### Create Framework-Specific Plugin
2841. Create specialized commands for framework
2852. Add framework-aware subagents
2863. Package with hooks for automation
2874. Publish to community marketplace
288
289### Export Project Setup
2901. Gather all project-specific commands and hooks
2912. Include project standards as agents
2923. Create README with project context
2934. Include in project repository as `.claude-plugin/`
294
295### Build Team Plugin Library
2961. Collect best practices as commands
2972. Create specialized agents for common tasks
2983. Add security hooks
2994. Distribute via team marketplace
300
301## Next Steps After Generation
302
3031. **Test locally:**
304 ```bash
305 /plugin marketplace add ./plugin-name
306 /plugin install plugin-name@dev-marketplace
307 /help # Verify commands appear
308 ```
309
3102. **Publish:**
311 - Push to GitHub (for public/team sharing)
312 - Submit to marketplace (for community)
313 - Share locally (for immediate team use)
314
3153. **Maintain:**
316 - Update version in plugin.json
317 - Track changes in COMPONENTS.md
318 - Create git tags for releases
319 - Update README with new features
320
321## Version History
322
323### v1.0.0 (2025-11-10)
324- Initial release
325- Full plugin structure generation
326- Command, hook, agent, output style, and status line support
327- Comprehensive documentation generation
328- Local testing guidance
329- Distribution preparation
330- Marketplace manifest support