一键导入
project-maintain-test-coverage
Maintain nils-cli test coverage from coverage evidence while prioritizing high-value behavioral tests and stale-test cleanup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Maintain nils-cli test coverage from coverage evidence while prioritizing high-value behavioral tests and stale-test cleanup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bump CLI versions, tag a release, and bump the homebrew-tap formula end-to-end.
Run the full nils-cli CI/parity checks from DEVELOPMENT.md.
Fix a dependabot bump PR whose CI fails because THIRD_PARTY_LICENSES.md / THIRD_PARTY_NOTICES.md drifted, then wait for CI green and merge.
Find and implement high-value test/stability/shared-foundation refactors across crates, then deliver through the current GitHub PR workflow.
Plan and implement new CLI crates by following repository standards for parity, JSON contracts, and publish readiness.
Publish one, many, or all workspace crates to crates.io through GitHub workflow dispatch with run reporting.
| name | project-maintain-test-coverage |
| description | Maintain nils-cli test coverage from coverage evidence while prioritizing high-value behavioral tests and stale-test cleanup. |
Prereqs:
nils-cli git work tree.DEVELOPMENT.md for Rust tooling and coverage prerequisites,
especially cargo-nextest and cargo-llvm-cov.target/coverage/lcov.info, target/coverage/coverage-summary.md, CI
coverage artifacts, or a freshly generated local coverage run.Inputs:
Outputs:
semantic-commit, $deliver-github-pr, and forge-cli pr deliver unless the
user explicitly requested local-only maintenance.Failure modes:
.agents/skills/project-maintain-test-coverage/scripts/coverage-hotspots.shUse the helper to rank file-level LCOV hotspots from existing evidence:
.agents/skills/project-maintain-test-coverage/scripts/coverage-hotspots.sh \
--lcov target/coverage/lcov.info \
--limit 20
The helper is read-only. It does not run tests, generate coverage, or change repository files.
target/coverage/lcov.info already exists, summarize it:
bash scripts/ci/coverage-summary.sh target/coverage/lcov.info.NILS_CLI_TEST_RUNNER=nextest \
bash scripts/ci/nils-cli-checks-entrypoint.sh --with-coverage
cargo llvm-cov report --html --output-dir target/coverage.pretty_assertions::{assert_eq, assert_ne} when
comparing structured or multi-line output.$issue-follow-up.$issue-follow-up for every coverage run; use it only for a
clear bug or unresolved follow-up.cargo nextest run -p <crate> <test-filter>
cargo test -p <crate> <test-filter>
NILS_CLI_TEST_RUNNER=nextest \
bash scripts/ci/nils-cli-checks-entrypoint.sh --with-coverage
main when the active checkout has unrelated dirty
state.semantic-commit; direct git commit is not the delivery path.agent-runtime pr-body render. Put the coverage
artifact path, hotspot summary, focused test commands, local-fast result, and
any explicit coverage run in ## Test plan.$deliver-github-pr / forge-cli pr deliver against main.
Wait for required checks and the required pre-merge review gate unless the
user explicitly requested --no-merge.main;main checked out; detach
the worktree at HEAD or remove the worktree after confirming no local
changes remain.This skill guides coverage-maintenance work only. It does not lower the 85%
coverage gate, edit CI thresholds, broaden snapshots for percentage-only gains,
or require follow-up issues when no clear bug or unresolved work exists. PR
delivery is limited to the coverage-maintenance changes this workflow created.
If hotspot extraction needs to become a stable repository command, first
extract that deterministic behavior into released nils-cli tooling and keep
this skill as the orchestration layer.