在当前仓库中设置 Husky pre-commit 钩子,集成 lint-staged(Prettier)、类型检查和测试。当用户想要添加 pre-commit 钩子、设置 Husky、配置 lint-staged、或添加提交时的格式化/类型检查/测试时使用。
$npx -y skills add devcxl/mattpocock-skills-zh --skill setup-pre-commitInstalls into the current project.
Run `npx skills use "https://github.com/devcxl/mattpocock-skills-zh" --skill "devcxl/mattpocock-skills-zh/setup-pre-commit"` 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/devcxl/mattpocock-skills-zh" that are relevant to the current task. Run `npx skills add "https://github.com/devcxl/mattpocock-skills-zh"` and select the relevant skills, then follow their instructions.