·husky-test-coverage
</>

husky-test-coverage

shipshitdev/library

设置或验证 Husky git 挂钩,以确保 Node.js/TypeScript 项目的所有测试都运行且覆盖率保持在 80% 以上(可配置)。当用户想要通过预提交挂钩强制执行测试覆盖率、验证现有的 Husky/测试设置或为 Jest、Vitest 或 Mocha 测试运行程序配置覆盖率阈值时,应该使用此技能。

44安装·0热度·@shipshitdev

安装

$npx skills add https://github.com/shipshitdev/library --skill husky-test-coverage

SKILL.md

Set up or verify Husky git hooks to ensure tests run and coverage thresholds are enforced on every commit.

| fullstack-workspace-init | Automatically invoked after scaffolding to set up 80% coverage threshold | | linter-formatter-init | Both configure Husky; this skill focuses on test coverage, linter-formatter-init focuses on linting/formatting | | testing-expert | Uses testing patterns and coverage targets from testing-expert skill |

When using fullstack-workspace-init to scaffold a new project, this skill is automatically applied with:

设置或验证 Husky git 挂钩,以确保 Node.js/TypeScript 项目的所有测试都运行且覆盖率保持在 80% 以上(可配置)。当用户想要通过预提交挂钩强制执行测试覆盖率、验证现有的 Husky/测试设置或为 Jest、Vitest 或 Mocha 测试运行程序配置覆盖率阈值时,应该使用此技能。 来源:shipshitdev/library。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/shipshitdev/library --skill husky-test-coverage
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 husky-test-coverage?

设置或验证 Husky git 挂钩,以确保 Node.js/TypeScript 项目的所有测试都运行且覆盖率保持在 80% 以上(可配置)。当用户想要通过预提交挂钩强制执行测试覆盖率、验证现有的 Husky/测试设置或为 Jest、Vitest 或 Mocha 测试运行程序配置覆盖率阈值时,应该使用此技能。 来源:shipshitdev/library。

如何安装 husky-test-coverage?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/shipshitdev/library --skill husky-test-coverage 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/shipshitdev/library