Overview
Specialized agents for developing, testing, and maintaining Claude Code plugins with quality enforcement hooks.
Overview
This plugin provides tools and best practices for creating high-quality Claude Code plugins. It includes comprehensive guidance on plugin architecture, agent/skill/hook development, validation workflows, and marketplace integration.
Agents
plugin-developer
The plugin-developer agent specializes in developing, maintaining, and
improving Claude Code plugins.
Use when:
- Creating new Claude Code plugins
- Adding features to existing plugins
- Fixing plugin issues or bugs
- Improving plugin documentation
- Validating plugin structure and quality
- Integrating plugins with the marketplace
Capabilities:
- Plugin architecture and structure guidance
- Agent, skill, and hook development
- Frontmatter validation and best practices
- Quality enforcement (claude plugin validate, markdownlint)
- Testing and validation workflows
- Marketplace integration support
- Documentation standards
Quality Enforcement Hooks
This plugin includes automatic quality enforcement hooks that run before completion:
ensure-plugin-quality
Runs before main agent completion to ensure:
claude plugin validatepasses (0 errors, 0 warnings)- markdownlint validation passes with auto-fix
- All quality checks are satisfied before work is marked complete
ensure-subagent-plugin-quality
Runs before subagent completion with the same quality checks as the main hook.
CRITICAL: These hooks will prevent completion if validation fails. All errors must be fixed before work can be marked as done.
Usage
Creating a New Plugin
# Use the plugin-developer agent
@plugin-developer Create a new plugin called "my-plugin"
The agent will guide you through:
- Setting up the directory structure
- Creating plugin.json with proper metadata
- Developing agents, skills, or hooks
- Writing comprehensive documentation
- Running validation checks
- Registering in the marketplace
Improving Existing Plugins
# Use the agent to enhance a plugin
@plugin-developer Add a new agent to the "my-plugin" plugin for feature X
Validating Plugin Quality
# Run quality checks manually
@plugin-developer Validate the plugin structure and run all linters
Quality Standards
All plugins developed with this agent must meet these standards:
Claude Plugin Validation
Run claude plugin validate <path> to check:
# Validate current directory
claude plugin validate .
# Validate a specific plugin
claude plugin validate /path/to/plugin
Checks:
- Valid YAML frontmatter in all agents/skills
- All required frontmatter fields present
- Proper JSON syntax in configuration files
- Hook configurations match implementation files
Markdownlint Validation
- All markdown files follow linting rules
- Consistent formatting and structure
- Proper heading hierarchy
- No trailing whitespace or broken links
Documentation Standards
- Comprehensive README.md
- Clear agent descriptions with use cases
- Examples and usage guidance
- Proper version management
Plugin Structure
A well-structured plugin created with this agent includes:
plugin-name/
āāā .claude-plugin/
ā āāā plugin.json # Plugin metadata
āāā agents/ # Specialized agents
ā āāā agent-name.md
āāā skills/ # Reusable skills (optional)
ā āāā skill-name.md
āāā hooks/ # Lifecycle hooks (optional)
ā āāā hooks.json
ā āāā hook-name.md
āāā README.md # Documentation
Best Practices
The plugin-developer agent enforces these best practices:
- Single Responsibility: Each agent/skill does one thing well
- Clear Documentation: Every component is well-documented
- Quality Validation: All code passes linting checks
- Consistent Naming: Kebab-case for all identifiers
- Proper Frontmatter: Valid YAML with all required fields
- Comprehensive Testing: Manual testing before release
- Semantic Versioning: Proper version management
Examples
Creating a Plugin for TDD
@plugin-developer Create a plugin for Test-Driven Development with an \
agent that guides TDD workflow
Adding Quality Hooks
@plugin-developer Add quality enforcement hooks to ensure tests pass before completion
Documenting an Existing Plugin
@plugin-developer Improve the README and documentation for the "my-plugin" plugin
Development Workflow
- Plan: Define plugin scope, agents, and features
- Create: Set up structure and write components
- Document: Write comprehensive README and descriptions
- Validate: Run
claude plugin validateand markdownlint - Test: Manually verify all functionality
- Register: Add to marketplace.json
- Iterate: Improve based on usage and feedback
Resources
- Claude Code documentation
claude plugin validate- Built-in plugin structure validation- markdownlint - Markdown linting
- YAML specification for frontmatter
- Semantic versioning guidelines