Let Anthropic's claude-code-setup Recommend Hooks and Skills for a Repo with Almost No Claude Code Config
Описание и применение
Плагин claude‑code‑setup предложил автоматический хук, запускающий связанные тесты Jest после редактирования файлов, что помогает избежать регрессий в расширении Netflix Intro Skipper.
Задача
The netflix‑intro‑skipper Chrome extension had no Claude Code configuration, making it unclear which automations would be useful.
Результат
The plugin produced a concrete hook recommendation that would automatically run related Jest tests after editing source files, addressing the risk of regressions in a large test suite.
Рабочий процесс
- Install Claude Code and the claude‑code‑setup plugin via
/plugin install claude-code-setup@claude-plugins-official - Run the prompt
Analyze this project and recommend Claude Code automations (hooks, skills, MCP servers, subagents, plugins) - Review the output, which lists a recommended PostToolUse hook that runs
npx jest --findRelatedTestsafter file edits
Доказательства
The project has a large test suite, and small changes to a big file like content.js can easily cause regressions. Running npx jest --findRelatedTests <file> after each src/ edit catches problems right away.
After installing, you can confirm that claude-code-setup was added in the Installed tab of /plugins.
- Дата записи: 2026-10-17T04:56:17.767Z