Skip to content

vanman2024/domain-plugin-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Domain Plugin Builder

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.

🌟 Features

  • 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

πŸš€ Quick Start

Installation

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.git

Migrating from ai-dev-marketplace? See MIGRATION.md for migration steps and benefits.

Build Your First Plugin

# 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"

🌍 Portable Architecture

The domain-plugin-builder works from ANY project directory!

Global Resources

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

Why This Matters

βœ… 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 $HOME in scripts
  • No hardcoded paths

πŸ“¦ What's Included

Slash Commands

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

Agents

Agent Purpose
plugin-validator Comprehensive plugin compliance checking
skills-builder Complex skill creation with proper structure

Skills

Skill Description
build-assistant Templates, scripts, and validation tools for plugin building

πŸ—οΈ Architecture

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

🎯 Use Cases

SDK Plugin Development

Build plugins for Python/TypeScript SDKs:

/domain-plugin-builder:plugin-create fastmcp
# Creates complete FastMCP plugin with SDK-specific commands

Framework Integration

Create framework-specific tooling:

/domain-plugin-builder:plugin-create nextjs-frontend
# Builds Next.js-specific commands and agents

Custom Domain Tools

Build specialized plugins for your domain:

/domain-plugin-builder:plugin-create deployment-automation
# Creates custom deployment tooling

πŸ“š Documentation

Core Principles

  1. Project-Agnostic - Never hardcode frameworks, always detect
  2. Validation-First - All components validated before commit
  3. Git Integration - Automatic commit and push workflow
  4. Template-Based - Consistent structure across all components
  5. Cross-Repository - Works in ANY codebase

Component Patterns

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

πŸ”§ Development

Building New Components

# 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"

Validation

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-plugin

🌐 Cross-Repository Usage

Unlike 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!

🀝 Contributing

The Domain Plugin Builder is designed to be extended:

  1. Add new templates to skills/build-assistant/templates/
  2. Create new validation scripts in skills/build-assistant/scripts/
  3. Add framework documentation to docs/frameworks/
  4. Contribute SDK patterns to docs/sdks/

πŸ“ License

MIT License - see LICENSE for details

πŸ™ Acknowledgments

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.

About

Meta-framework for building Claude Code plugins - works across all codebases and marketplaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •