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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
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. Use when this capability is needed.4---56# Plugin Setup Creator78**Version:** 1.0.09**Last Updated:** 2025-11-101011## Purpose1213This skill helps you create a complete, shareable Claude Code plugin that packages your personal setup including:14- Custom slash commands15- Event hooks and automation scripts16- Output style configurations17- Status line templates18- Specialized subagents/AI assistants19- Comprehensive plugin manifest and documentation2021The generated plugin can be immediately shared with team members or published to community marketplaces.2223## Instructions2425### Phase 1: Discovery and Assessment26271. **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)?34352. **Verify existing configurations**36 - Check `~/.claude/commands/` for custom slash commands37 - Check `~/.claude/hooks/` for hook configurations38 - Check `~/.claude/output-styles/` for output style definitions39 - Check `~/.claude/status-lines/` for status line configs40 - Check `~/.claude/agents/` for subagent definitions41 - Review `.claude/settings.json` for project-level configurations42433. **Assess plugin metadata needs**44 - Plugin name (kebab-case, max 64 chars)45 - Description and purpose46 - Author information47 - License48 - Target audience and use cases4950### Phase 2: Plugin Structure Creation51521. **Create plugin directory structure**53 ```54 plugin-name/55 ├── .claude-plugin/56 │ └── plugin.json57 ├── commands/58 │ └── [custom commands]59 ├── agents/60 │ └── [subagent definitions]61 ├── hooks/62 │ ├── hooks.json63 │ └── scripts/64 ├── output-styles/65 │ └── [style configs]66 ├── status-lines/67 │ └── [status line configs]68 ├── README.md69 ├── LICENSE70 └── INSTALLATION.md71 ```72732. **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/`79803. **Create central plugin.json manifest**81 - Name: Use provided plugin name82 - Version: Start with 1.0.083 - Description: Clear explanation with trigger keywords84 - Author: User information85 - Keywords: For marketplace discovery86 - Reference paths for all components87884. **Generate supporting documentation**89 - README.md: Overview and installation instructions90 - INSTALLATION.md: Step-by-step setup guide91 - COMPONENTS.md: Detail what each component does92 - USAGE.md: Examples and common workflows9394### Phase 3: Component Validation95961. **Validate all files**97 - Check JSON syntax (plugin.json, hooks.json)98 - Verify markdown frontmatter in commands99 - Ensure relative paths (start with `./`)100 - Confirm no sensitive data (credentials, tokens)1011022. **Verify directory structure**103 - All components at plugin root (not in .claude-plugin/)104 - Proper nesting (commands/*, agents/*, etc.)105 - Supporting files organized logically1061073. **Test references**108 - Validate all file paths in hooks.json109 - Check command and agent paths110 - Verify output style references111112### Phase 4: Distribution Preparation1131141. **Create git repository**115 - Initialize git in plugin directory116 - Create .gitignore for sensitive files117 - Make initial commit1181192. **Generate marketplace manifest** (optional)120 - Create `.claude-plugin/marketplace.json` if creating a marketplace121 - Define plugin entry with version info122 - Set category and metadata1231243. **Create sharing documentation**125 - Installation instructions for recipients126 - Quick start guide127 - Troubleshooting section128 - Update/maintenance guidelines129130### Phase 5: Testing and Finalization1311321. **Local testing workflow**133 - Test marketplace setup locally134 - Install plugin from local path135 - Verify all components work136 - Check command invocation137 - Confirm hooks trigger properly138 - Test agent activation1391402. **Generate plugin summary**141 - List all included commands142 - Document all hooks143 - Describe output styles144 - Detail status line configs145 - List agents/subagents1461473. **Create deployment guide**148 - GitHub setup instructions149 - Marketplace submission process150 - Team distribution method151 - Version management approach152153## Examples154155### Example 1: Personal Productivity Plugin156157**User Request:** "Package my custom commands and hooks into a shareable plugin"158159**Skill Actions:**1601. Discovers existing commands: `/review`, `/commit`, `/doc`, `/test`1612. Finds hooks configuration for auto-formatting and linting1623. Creates `my-productivity-plugin/` structure1634. Generates comprehensive plugin.json1645. Creates README with installation instructions1656. Tests locally via dev marketplace1667. Provides GitHub setup guide167168**Output:** Complete, tested plugin ready for team sharing or publication169170### Example 2: Team AI Agents Plugin171172**User Request:** "Create a plugin from my specialized subagents for code review and testing"173174**Skill Actions:**1751. Identifies custom agents: `security-reviewer`, `test-generator`1762. Converts to proper subagent format1773. Creates plugin with bundled agents1784. Generates agent documentation1795. Creates example invocation commands1806. Sets up marketplace manifest for team distribution181182**Output:** Plugin with ready-to-use specialized agents183184### Example 3: Complete Setup Export185186**User Request:** "Export my entire Claude Code setup as a plugin with all my customizations"187188**Skill Actions:**1891. Discovers all commands, hooks, styles, status lines, and agents1902. Creates comprehensive plugin structure1913. Organizes components logically1924. Generates complete documentation1935. Creates setup.sh for easy installation1946. Tests all components together1957. Provides sharing and version management guide196197**Output:** Complete, production-ready plugin of entire setup198199## Key Features200201### Automatic Discovery202- Scans existing Claude Code directories for customizations203- Identifies all commands, hooks, output styles, and agents204- Preserves configuration and functionality205206### Smart Organization207- Proper directory structure for marketplace compatibility208- Component references in plugin.json209- Relative path handling210211### Comprehensive Documentation212- README for overview213- INSTALLATION.md for setup214- COMPONENTS.md for detailed descriptions215- USAGE.md with examples216217### Built-in Testing218- Validates all JSON syntax219- Checks file paths and references220- Tests local installation221- Verifies component activation222223### Distribution Ready224- Git initialization225- .gitignore generation226- Marketplace manifest (optional)227- GitHub publishing guide228- Team distribution instructions229230### Version Management231- Semantic versioning setup232- Version history tracking233- Update guidelines234- Tag recommendations235236## Prerequisites237238- Claude Code installed and configured239- 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)242243## Supported Component Types244245### Slash Commands246- Custom markdown files with YAML frontmatter247- Template variables support248- Argument handling249250### Hooks251- PreToolUse and PostToolUse events252- SessionStart and SessionStop events253- Custom shell scripts with `${CLAUDE_PLUGIN_ROOT}` support254- Filter conditions (tool type, command patterns)255256### Output Styles257- Custom formatting templates258- Color schemes259- Rendering preferences260- Display customizations261262### Status Lines263- Multi-version status line configurations264- Custom key-value pairs265- Session metadata266- Display templates267268### Subagents269- Markdown definitions with YAML frontmatter270- Custom system prompts271- Tool restrictions272- Model selection273274## Common Workflows275276### Share Personal Setup with Team2771. Run this skill2782. Select all personal customizations2793. Generate plugin2804. Publish to team marketplace2815. Team members install once, get all customizations282283### Create Framework-Specific Plugin2841. Create specialized commands for framework2852. Add framework-aware subagents2863. Package with hooks for automation2874. Publish to community marketplace288289### Export Project Setup2901. Gather all project-specific commands and hooks2912. Include project standards as agents2923. Create README with project context2934. Include in project repository as `.claude-plugin/`294295### Build Team Plugin Library2961. Collect best practices as commands2972. Create specialized agents for common tasks2983. Add security hooks2994. Distribute via team marketplace300301## Next Steps After Generation3023031. **Test locally:**304 ```bash305 /plugin marketplace add ./plugin-name306 /plugin install plugin-name@dev-marketplace307 /help # Verify commands appear308 ```3093102. **Publish:**311 - Push to GitHub (for public/team sharing)312 - Submit to marketplace (for community)313 - Share locally (for immediate team use)3143153. **Maintain:**316 - Update version in plugin.json317 - Track changes in COMPONENTS.md318 - Create git tags for releases319 - Update README with new features320321## Version History322323### v1.0.0 (2025-11-10)324- Initial release325- Full plugin structure generation326- Command, hook, agent, output style, and status line support327- Comprehensive documentation generation328- Local testing guidance329- Distribution preparation330- Marketplace manifest support331332---333> Converted and distributed by [TomeVault](https://tomevault.io/claim/blueman82) — claim your Tome and manage your conversions.334<!-- tomevault:4.0:skill_md:2026-04-11 -->