Meta-framework for building Claude Code plugins, agents, commands, and skills
The Domain Plugin Builder is a universal toolkit for creating production-ready Claude Code plugins. It works across ALL codebases and marketplaces, enabling rapid development of domain-specific tools and AI agents.
- Universal Plugin Builder - Create complete plugins with one command
- Cross-Repository Support - Works in ANY codebase, not tied to a specific marketplace
- Component Builders - Individual commands for agents, slash commands, and skills
- Production-Ready - Automatic validation, testing, and Git integration
- Template-Based - Comprehensive templates for all component types
- Best Practices - Built-in validation ensures standards compliance
See the comprehensive INSTALLATION.md guide for detailed setup instructions.
Quick install:
cd ~/.claude/plugins/marketplaces
git clone https://github.com/vanman2024/domain-plugin-builder.gitMigrating from ai-dev-marketplace? See MIGRATION.md for migration steps and benefits.
# Create a complete plugin from scratch
/domain-plugin-builder:plugin-create my-awesome-plugin
# Or build individual components
/domain-plugin-builder:slash-commands-create my-command "Description"
/domain-plugin-builder:agents-create my-agent "Description" "Bash, Read, Write"
/domain-plugin-builder:skills-create my-skill "Description"The domain-plugin-builder works from ANY project directory!
All framework docs and scripts use absolute paths starting with ~/:
~/.claude/
βββ docs/
β βββ frameworks/
β βββ claude/ # Architectural concepts (skills vs agents vs commands)
β β βββ component-decision-framework.md
β β βββ agent-skills-architecture.md
β βββ plugins/ # Plugin structure reference
β βββ claude-code-plugin-structure.md
β βββ plugin-marketplaces.md
β βββ tech-stack-marketplaces.md
βββ plugins/marketplaces/domain-plugin-builder/
βββ plugins/domain-plugin-builder/
βββ commands/ # Slash commands
βββ agents/ # Specialized agents
βββ skills/
βββ build-assistant/
βββ scripts/ # Validation & helper scripts
βββ templates/ # Component templates
β Build plugins in ANY project:
- Recruitment app β
/recruitment-app/β - Marketing site β
/marketing-site/β - Internal tools β
/internal-tools/β - ANY directory β Works!
β Slash commands reference docs portably:
@~/.claude/docs/frameworks/claude/component-decision-framework.md
@~/.claude/plugins/marketplaces/domain-plugin-builder/plugins/domain-plugin-builder/skills/build-assistant/templates/...β Scripts work from anywhere:
# Run from ANY directory:
bash ~/.claude/plugins/marketplaces/domain-plugin-builder/plugins/domain-plugin-builder/skills/build-assistant/scripts/validate-plugin.shβ Portable across users and machines:
- Uses
~/not/home/username/ - Uses
$HOMEin scripts - No hardcoded paths
| Command | Description |
|---|---|
/domain-plugin-builder:plugin-create |
Build complete plugin with all components |
/domain-plugin-builder:slash-commands-create |
Create new slash command with proper structure |
/domain-plugin-builder:agents-create |
Generate specialized agent with tool configuration |
/domain-plugin-builder:skills-create |
Build skill with scripts, templates, and examples |
/domain-plugin-builder:build-plugin |
Top-level orchestrator with validation and Git integration |
| Agent | Purpose |
|---|---|
plugin-validator |
Comprehensive plugin compliance checking |
skills-builder |
Complex skill creation with proper structure |
| Skill | Description |
|---|---|
build-assistant |
Templates, scripts, and validation tools for plugin building |
The Domain Plugin Builder follows a clean separation of concerns:
domain-plugin-builder/
βββ plugins/domain-plugin-builder/
β βββ commands/ # Slash commands for building
β β βββ plugin-create.md
β β βββ slash-commands-create.md
β β βββ agents-create.md
β β βββ skills-create.md
β β βββ build-plugin.md
β βββ agents/ # Specialized builder agents
β β βββ plugin-validator.md
β β βββ skills-builder.md
β βββ skills/ # Templates and tools
β β βββ build-assistant/
β β βββ templates/ # Component templates
β β βββ scripts/ # Validation and utility scripts
β β βββ examples/ # Example implementations
β βββ docs/ # Framework documentation
β βββ frameworks/
β βββ sdks/
βββ .claude-plugin/
βββ marketplace.json
Build plugins for Python/TypeScript SDKs:
/domain-plugin-builder:plugin-create fastmcp
# Creates complete FastMCP plugin with SDK-specific commandsCreate framework-specific tooling:
/domain-plugin-builder:plugin-create nextjs-frontend
# Builds Next.js-specific commands and agentsBuild specialized plugins for your domain:
/domain-plugin-builder:plugin-create deployment-automation
# Creates custom deployment tooling- Project-Agnostic - Never hardcode frameworks, always detect
- Validation-First - All components validated before commit
- Git Integration - Automatic commit and push workflow
- Template-Based - Consistent structure across all components
- Cross-Repository - Works in ANY codebase
Commands (4 patterns):
- Pattern 1: Simple (no agents)
- Pattern 2: Single Agent
- Pattern 3: Sequential (multiple slash commands)
- Pattern 4: Parallel (multiple agents)
Agents:
- Specialized AI capabilities with tool access
- WebFetch-based documentation loading
- Under 300 lines for optimal performance
Skills:
- Scripts, templates, and examples
- Reusable across plugins
- Comprehensive validation
# Add a command to an existing plugin
/domain-plugin-builder:slash-commands-create deploy "Deploy to production" --plugin=deployment
# Add an agent
/domain-plugin-builder:agents-create code-analyzer "Analyze code quality" "Bash, Read, Grep, Glob"
# Add a skill
/domain-plugin-builder:skills-create api-testing "API testing utilities"All components are automatically validated:
# Validation happens automatically during creation
# Manual validation available:
bash ~/.claude/plugins/marketplaces/domain-plugin-builder/plugins/domain-plugin-builder/skills/build-assistant/scripts/validate-plugin.sh plugins/your-pluginUnlike marketplace-specific plugins, the Domain Plugin Builder is installed globally and can build plugins for any marketplace:
~/.claude/plugins/marketplaces/
βββ ai-dev-marketplace/ # Your AI plugins
βββ dev-lifecycle-marketplace/ # Your lifecycle plugins
βββ mcp-servers-marketplace/ # Your MCP plugins
βββ domain-plugin-builder/ # Builder toolkit (works everywhere)
Key advantage: Install once, use everywhere!
The Domain Plugin Builder is designed to be extended:
- Add new templates to
skills/build-assistant/templates/ - Create new validation scripts in
skills/build-assistant/scripts/ - Add framework documentation to
docs/frameworks/ - Contribute SDK patterns to
docs/sdks/
MIT License - see LICENSE for details
Built with Claude Code following best practices from extensive plugin development experience.
Questions? Check out the comprehensive documentation in /docs or examine the example templates in /skills/build-assistant/templates.
Want to build plugins for your domain? This framework makes it easy to create professional, production-ready tooling for any SDK, framework, or custom use case.