Advisory diagnostic that detects when a Claude Code plugin ships files not needed at runtime — build-only source, dependency trees, dev-only dirs, regenerable build caches — and recommends the existing CPV lean-separation. Use when the user asks 'is my plugin too big', 'what files ship', 'reduce install size', 'lean the plugin', 'diagnose plugin architecture', 'unneeded files shipped', or wants to know which paths bloat an install. Read-only: it diagnoses and points at the separate strip-dev / ${CLAUDE_PLUGIN_DATA} step; it NEVER moves or deletes anything. Used dynamically via cpv-the-skills-menu; loaded by cpv-plugin-diagnoser-agent agent.
$npx -y skills add emasoft/claude-plugins-validation --skill cpv-diagnose-plugin-architectureInstalls into the current project.
Run `npx skills use "https://github.com/emasoft/claude-plugins-validation" --skill "emasoft/claude-plugins-validation/cpv-diagnose-plugin-architecture"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/emasoft/claude-plugins-validation" that are relevant to the current task. Run `npx skills add "https://github.com/emasoft/claude-plugins-validation"` and select the relevant skills, then follow their instructions.