Add a new hook entry to hooks/hooks.json in an existing plugin (idempotent — skips duplicate entries; cross-platform-aware). Use when adding a new event-handler that must run identically on Linux/macOS/Windows. Used dynamically via cpv-the-skills-menu (TRDD-478d9687).
$npx -y skills add emasoft/claude-plugins-validation --skill cpv-add-hookInstalls into the current project.
Run `npx skills use "https://github.com/emasoft/claude-plugins-validation" --skill "emasoft/claude-plugins-validation/cpv-add-hook"` 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.