This skill should be used when the user asks to "validate a plugin", "optimize plugin", "check plugin quality", "review plugin structure", or mentions plugin optimization and validation tasks.
Validates and optimizes plugin structure through automated testing, agent-based fixes, and comprehensive reporting.
/plugin marketplace add fradser/dotclaude/plugin install plugin-optimizer@frad-dotclaude<plugin-path>optimize-plugin/Execute plugin validation and optimization workflow. Target: $ARGUMENTS
Template Compliance: Components MUST conform to templates in ${CLAUDE_PLUGIN_ROOT}/examples/. See references/template-validation.md for complete requirements (instruction-type/knowledge-type skills, agents).
Tool Patterns: See references/tool-patterns.md for invocation styles. Key: Skill/AskUserQuestion/TaskCreate require explicit "Use [tool] tool" phrasing.
Use TaskCreate tool to track all four phases before starting work.
Goal: Validate structure and detect issues. Orchestrator MUST NOT apply fixes.
Actions:
realpath and verify existence.claude-plugin/plugin.json exists${CLAUDE_PLUGIN_ROOT}/examples/ templatespython3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-plugin.py "$TARGET"Goal: Launch agent to apply ALL fixes. Orchestrator does NOT make fixes directly.
Condition: Skip this phase if Phase 1 found no issues (proceed directly to Phase 4).
Actions:
plugin-optimizer:plugin-optimizer agent with the following prompt content:
.claude-plugin/plugin.json after fixes (patch: fixes/optimizations, minor: new components, major: breaking changes)Goal: Re-run validation to verify fixes.
Condition: Only execute if Phase 2 applied fixes.
Actions:
Goal: Deliver comprehensive optimization report and updated documentation to user.
Actions:
./references/workflow-phases.md for detailed steps and ./references/report-template.md for format