AgentSkillsCN

test-coverage-checker

当设计、审查或修改后端 API 端点、数据模型、校验规则以及 API 文档时,可选用此技能。

SKILL.md
--- frontmatter
name: test-coverage-checker
description: >
  Measure, visualize, and automate test coverage reporting for Python, Java, and React projects. Use when asked to check, report, or improve test coverage, or automate coverage workflows.
version: 1

Purpose

Provide actionable commands, scripts, and guidance for measuring and visualizing test coverage in Python, Java, and React codebases. Support automation and CI/CD integration for coverage reporting.

Process

  1. Parse request: Identify language, project type, and coverage needs
  2. Recommend tools: Select coverage tools (coverage.py, Jacoco, Istanbul, etc.)
  3. Provide commands: Output terminal and HTML coverage commands
  4. Visualize: Guide user to open and interpret coverage reports
  5. Automate: Suggest scripts and CI/CD workflows for coverage

Output Format


name: test-coverage-checker description: Measure, visualize, and automate test coverage reporting for Python, Java, and React projects.

Test Coverage Checker Skill

The agent can assist with the following tasks:

Coverage Measurement

  • Measure test coverage for Python, Java, and React projects
  • Recommend and install coverage tools
  • Output commands for terminal and HTML coverage reports

Visualization

  • Guide user to open and interpret HTML coverage reports
  • Highlight untested code paths

Automation

  • Generate scripts for coverage reporting
  • Suggest CI/CD workflow snippets for coverage automation

Example Usage

  • "Check test coverage for my Python module."
  • "Show me the HTML coverage report for my React app."
  • "Add a GitHub Actions workflow for Java coverage."

References

Language Specifications

Detailed coverage instructions for each supported language are provided in the references directory: