Agent Skills › rustfs/rustfs › test-coverage-improver

test-coverage-improver

GitHub

分析覆盖率报告,识别高风险未覆盖区域,并针对性地提出测试改进方案。适用于需要基于数据驱动的测试优先级规划场景。

.agents/skills/test-coverage-improver/SKILL.md rustfs/rustfs

Trigger Scenarios

请求分析覆盖率报告 要求提升测试覆盖率

Install

npx skills add rustfs/rustfs --skill test-coverage-improver -g -y
More Options

Non-standard path

npx skills add https://github.com/rustfs/rustfs/tree/main/.agents/skills/test-coverage-improver -g -y

Use without installing

npx skills use rustfs/rustfs@test-coverage-improver

指定 Agent (Claude Code)

npx skills add rustfs/rustfs --skill test-coverage-improver -a claude-code -g -y

安装 repo 全部 skill

npx skills add rustfs/rustfs --all -g -y

预览 repo 内 skill

npx skills add rustfs/rustfs --list

SKILL.md

Frontmatter
{
    "name": "test-coverage-improver",
    "description": "Analyze a supplied coverage report or perform an explicitly requested RustFS coverage assessment, rank uncovered risks, and propose focused tests. Do not trigger for ordinary implementation verification, a single regression test, documentation wording, or release preparation without a coverage request."
}

Test Coverage Improver

Use this skill when you need a prioritized, risk-aware plan to improve tests from coverage results.

Usage assumptions

  • Focus scope is either changed lines/files, a module, or the whole repository.
  • Reuse a supplied coverage artifact when its revision, scope, and format match.
  • If required context is missing, call out assumptions explicitly before proposing work.

Workflow

  1. Define scope and baseline

    • Derive the revision and scope from the request, diff, or supplied report.
    • Default to the affected files/module; whole-workspace coverage requires that scope in the request. Ask only if a wrong scope would change the result.
  2. Obtain coverage evidence

    • First inspect a matching existing artifact; do not regenerate it merely because this skill was selected.
    • If measurement is needed, read the Coverage section of the testing guide, check disk space/tool availability, and select package/test-scoped cargo llvm-cov using the repository's nextest configuration. make coverage measures the whole workspace (excluding E2E) and is only for that requested scope.
    • Collect only metrics the report supports. Missing branch/changed-line coverage is unknown, not zero.
    • If measurement cannot run, continue with code-based test proposals and mark measured coverage unverified; do not invent a coverage percentage.
  3. Rank highest-risk gaps

    • Prioritize changed code, branch coverage gaps, and low-confidence boundaries.
    • Apply the risk rubric in coverage-prioritization.md.
    • Report up to 5–8 evidenced gaps; do not pad a small scope.
    • For each gap, capture: file, lines, uncovered branches, and estimated risk score.
  4. Propose high-impact tests

    • For each gap, name the behavior and regression, distinguishing assertions, relevant normal/edge/failure cases, necessary setup, and estimated effort.
    • Include only scenarios and setup that apply; reuse shared fixture details.
  5. Close with validation plan

    • State which gaps remain after proposals.
    • Give a scoped verification command and behavior-based acceptance criterion; use a coverage threshold only when the task or repository requires one.
    • List assumptions or blockers (environment, fixtures, flaky dependencies).

Report

Summarize the supported metrics, then combine each ranked gap with its proposed test and validation. Include source lines only when supplied or inspected; mark missing metrics or locations as unknown. Do not duplicate gaps and tests in separate templates or fill empty categories for an otherwise small report.

Version History

  • 1880b42 Current 2026-09-23 05:26

    优化范围定义逻辑,移除旧的多语言快照生成步骤,强调复用现有覆盖率数据及显式声明假设。

  • 0d129ec 2026-08-20 14:32

Same Skill Collection

.agents/skills/adversarial-validation/SKILL.md
.agents/skills/arch-checks/SKILL.md
.agents/skills/code-change-verification/SKILL.md
.agents/skills/issue-triage/SKILL.md
.agents/skills/plugin-contract-guard/SKILL.md
.agents/skills/pr-creation-checker/SKILL.md
.agents/skills/pr-review/SKILL.md
.agents/skills/rust-code-quality/SKILL.md
.agents/skills/rustfs-logging-governance/SKILL.md
.agents/skills/rustfs-release-publish/SKILL.md
.agents/skills/rustfs-release-version-bump/SKILL.md
.agents/skills/security-advisory-lessons/SKILL.md
.agents/skills/tier-debug/SKILL.md
.mimocode/skills/issue-triage/SKILL.md
.mimocode/skills/pr-review/SKILL.md

Metadata

Files
0
Version
5f4d5e8
Hash
0ba32135
Indexed
2026-08-20 14:32

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-30 08:34
浙ICP备14020137号-1