一键导入
improve-coverage
Install and use uncov to find low-coverage files from Vitest/Istanbul output, prioritize tests, and wire coverage checks into JS/TS projects
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install and use uncov to find low-coverage files from Vitest/Istanbul output, prioritize tests, and wire coverage checks into JS/TS projects
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use dfm to initialize dotfile backups, track files safely, sync private repositories, and review AI-suggested dotfile improvements
Work on llbbl/esm, a PHP enum-state-machine library, with its local quality gates and API constraints
Integrate llbbl/enum-state-machine into a PHP project with enum states, attribute transitions, guards, hooks, and validation
Use grepwrite gw to find matches, preview code rewrites, apply transactional edits with snapshots, and undo safely
Integrate logan-logger into TypeScript apps with correct runtime imports, environment config, safe metadata, and validation
Use pkglock to switch package-lock.json between local npm registries and the public registry, and install safeguards against committing local URLs
| name | improve-coverage |
| version | 0.1.0 |
| description | Install and use uncov to find low-coverage files from Vitest/Istanbul output, prioritize tests, and wire coverage checks into JS/TS projects |
| allowed-tools | Bash, Read, Grep, Glob, Edit, MultiEdit, Write |
Use this skill when the user wants to add uncov to a JavaScript or TypeScript project, inspect low coverage files, improve test coverage, or make coverage checks CI-friendly.
Examples:
uncov reads Vitest/Istanbul coverage/coverage-summary.json and reports files at or below a configurable line coverage threshold.
Use it when the target project:
If the project does not use Vitest, first confirm whether its coverage tool can emit coverage-summary.json.
Prefer the project’s package manager. Detect it from lockfiles and existing scripts.
Global install options:
pnpm add -g @llbbl/uncov
npm install -g @llbbl/uncov
bun add -g @llbbl/uncov
For one-off use, prefer the package runner already used by the project:
pnpm dlx @llbbl/uncov --help
npx @llbbl/uncov --help
bunx @llbbl/uncov --help
If the user wants the standalone binary, use the installer from llbbl/uncov:
curl -fsSL https://raw.githubusercontent.com/llbbl/uncov/main/install.sh | bash
package.json, lockfiles, test scripts, and vitest.config.*.uncov init --dry-run
uncov init
uncov check
pnpm test:coverage
uncov
Adapt pnpm test:coverage to the project’s package manager and scripts.
Use a threshold that matches the question:
uncov --threshold 0
uncov --threshold 10
uncov --threshold 50
Use JSON when ranking or scripting:
uncov --threshold 50 --json
Use --fail only when the user wants enforcement:
uncov --threshold 20 --fail
Exit code 1 means low-coverage files were found with --fail. Exit code 2 means missing coverage output or a setup/config error.
When improving coverage:
uncov.config.json only for durable project policy.Example config:
{
"threshold": 20,
"exclude": ["**/*.test.ts", "**/index.ts"],
"failOnLow": false,
"coveragePath": "coverage/coverage-summary.json"
}
For advisory reporting, keep failOnLow false and publish the JSON/text output in logs.
For enforcement:
uncov --threshold 20 --fail
Introduce enforcement gradually. A useful pattern is:
uncov results.