analyzing-test-coverage
について
このスキルは、コードカバレッジメトリクスを分析して未テストのコードを特定し、包括的なカバレッジレポートを生成します。「カバレッジを分析」や「コードカバレッジレポート」といったトリガーワードで起動され、カバレッジのギャップを指摘することで開発者のコード品質向上を支援します。nycやcoverage.pyなどのツールを用いてテストスイートを実行し、カバレッジデータを収集し、実践的なレポートを生成します。
クイックインストール
Claude Code
推奨/plugin add https://github.com/jeremylongshore/claude-code-plugins-plusgit clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/analyzing-test-coverageこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Overview
This skill enables Claude to analyze code coverage metrics, pinpoint areas of untested code, and generate detailed reports. It helps you identify gaps in your test suite and ensure comprehensive code coverage.
How It Works
- Coverage Data Collection: Claude executes the project's test suite with coverage tracking enabled (e.g., using
nyc,coverage.py, or JaCoCo). - Report Generation: The plugin parses the coverage data and generates a detailed report, including metrics for line, branch, function, and statement coverage.
- Uncovered Code Identification: Claude highlights specific lines or blocks of code that are not covered by any tests.
When to Use This Skill
This skill activates when you need to:
- Analyze the overall code coverage of your project.
- Identify specific areas of code that lack test coverage.
- Generate a detailed report of code coverage metrics.
- Enforce minimum code coverage thresholds.
Examples
Example 1: Analyzing Project Coverage
User request: "Analyze code coverage for the entire project"
The skill will:
- Execute the project's test suite with coverage tracking.
- Generate a comprehensive coverage report, showing line, branch, and function coverage.
Example 2: Identifying Untested Code
User request: "Show me the untested code in the src/utils.js file"
The skill will:
- Analyze the coverage data for
src/utils.js. - Highlight the lines of code in
src/utils.jsthat are not covered by any tests.
Best Practices
- Configuration: Ensure your project has a properly configured coverage tool (e.g.,
nycin package.json). - Thresholds: Define minimum coverage thresholds to enforce code quality standards.
- Report Review: Regularly review coverage reports to identify and address coverage gaps.
Integration
This skill can be integrated with other testing and CI/CD tools to automate coverage analysis and reporting. For example, it can be used in conjunction with a linting plugin to identify both code style issues and coverage gaps.
GitHub リポジトリ
関連スキル
content-collections
メタThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
evaluating-llms-harness
テストThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
cloudflare-cron-triggers
テストThis skill provides comprehensive knowledge for implementing Cloudflare Cron Triggers to schedule Workers using cron expressions. It covers setting up periodic tasks, maintenance jobs, and automated workflows while handling common issues like invalid cron expressions and timezone problems. Developers can use it for configuring scheduled handlers, testing cron triggers, and integrating with Workflows and Green Compute.
