Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Let Anthropic's claude-code-setup Recommend Hooks and Skills for a Repo with Almost No Claude Code Config

说明与用途

claude‑code‑setup 插件建议在编辑源文件后自动运行相关 Jest 测试的 PostToolUse 钩子,降低 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 --findRelatedTests after 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