supercorp-ai

supercov Skill

使用 supercov CLI 衡量仓库的测试覆盖率和代码质量,并根据发现结果生成小型、聚焦的测试或修复。当用户要求添加或改进测试、查找未覆盖代码、提升覆盖率或寻找重构点时使用。支持 JavaScript、TypeScript、Python、Ruby、Rust、Go、Java 和 Kotlin 项目。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Supercov

Supercov runs the project's own test command and changes no source, tests or configuration. npx supercov docs prints the guide for the installed version; read it for anything not shown here. Topics: agent-loop, quality, supported-suites, troubleshooting.

Add a test

  1. Measure the full suite: npx supercov -- , for example npx supercov -- npm test.
  2. List targets with npx supercov runs latest gaps --limit 5, pick one, and inspect it with npx supercov runs latest file .
  3. Write one focused test. Change only tests unless the user asks otherwise.
  4. Rerun the same command and report the test and the coverage before and after.

Quality

  • npx supercov quality ranks files by code smells, and npx supercov quality patch reports what a change introduced.
  • It sends source files to TypeSafe using the TYPESAFE_API_KEY environment variable. A user who set the key has opted in, so run it without asking again. If the key is missing the command says so: tell the user how to set it, then answer from reading the code and say Supercov did not check it.

Without Node.js 22 or newer, install Supercov as the language guide at https://supercov.com/docs says, and run supercov instead of npx supercov.