coverage-analyzer
БесплатноБез исполняемых скриптовНе проверенAdvanced coverage analysis with actionable insights. Use to identify coverage gaps, suggest specific tests, track coverage trends, and highlight critical…
от aiskillstore★ 509 звёзд на GitHubОб этом скилле
Coverage Analyzer
⚠️ MANDATORY: Read Project Documentation First
BEFORE starting coverage analysis, you MUST read and understand the following project documentation:
Core Project Documentation
- README.md - Project overview, features, and getting started
- AI_DOCS/project-context.md - Tech stack, architecture, development workflow
- AI_DOCS/code-conventions.md - Code style, formatting, best practices
- AI_DOCS/tdd-workflow.md - TDD process, testing standards, coverage requirements
Session Context (if available)
- .ai-context/ACTIVE_TASKS.md - Current tasks and priorities
- .ai-context/CONVENTIONS.md - Project-specific conventions
- .ai-context/RECENT_DECISIONS.md - Recent architectural decisions
- .ai-context/LAST_SESSION_SUMMARY.md - Previous session summary
Additional AI Documentation
- AI_DOCS/ai-tools.md - Session management workflow
- AI_DOCS/ai-skills.md - Other specialized skills/agents available
Why This Matters
- Coverage Requirements: Understand project-specific coverage thresholds (80%+ minimum)
- Testing Patterns: Follow established testing conventions when suggesting tests
- Code Context: Understand module structure and dependencies
- Recent Changes: Be aware of recent test additions or coverage improvements
After reading these files, proceed with your coverage analysis task below.
Overview
Provide advanced test coverage analysis with actionable insights for improving coverage to meet the 80%+ requirement.
When to Use
- After running
make coverageto understand gaps - Before completing a feature (ensure adequate coverage)
- When coverage is below 80% target
- To identify critical uncovered code paths
- For tracking coverage trends over time
What This Skill Provides
✅ Detailed Coverage Analysis
- Current coverage percentage
- Uncovered lines by file
- Missing branches
✅ Actionable Recommendations
- Specific tests to write
- Code locations needing tests
- Priority of coverage gaps
✅ Coverage Gaps Identification
- Critical uncovered paths (error handling)
- Edge cases not tested
- Integration points missing tests
✅ Test Suggestions
- Concrete test code recommendations
- Parametrized test suggestions
- Fixture recommendations
✅ Trend Tracking
- Coverage history over time
- Improvement/regression detection
- Progress toward 80%+ goal
Usage Examples
Analyze Current Coverage
# Generate detailed coverage analysis
analyze test coverage
Output: Comprehensive report with gaps and recommendations
Find Critical Gaps
# Focus on critical uncovered code
show critical coverage gaps
Output: High-priority uncovered code (error handling, security, edge cases)
Get Test Suggestions
# Get specific test recommendations
suggest tests for uncovered code in src/python_modern_template/validators.py
Output: Concrete test cases to add
Track Coverage Trends
# See coverage over time
show coverage trend for last month
Output: Graph showing coverage changes
Step-by-Step Analysis Process
Step 1: Run Coverage
# Generate coverage report
make coverage
This creates:
- Terminal output with overall percentage
- HTML report in
htmlcov/ .coveragedata file
Step 2: Parse Coverage Data
Read coverage data from multiple sources:
# Read terminal output for overall stats
# Read htmlcov/index.html for detailed breakdown
# Parse .coverage file for line-by-line data
Step 3: Identify Uncovered Lines
For each source file:
- List uncovered line numbers
- Group by type (functions, error handling, edge cases)
- Prioritize by criticality
Step 4: Analyze Context
For each uncovered section:
- Read surrounding code
- Understand what the code does
- Identify why it's not covered
- Determine appropriate test type
Step 5: Generate Recommendations
Create specific test suggestions:
- Test function name
- Test scenario
- Example test code
- Parameters to test
Step 6: Calculate Priority
CRITICAL - Must cover immediately:
- Error handling paths
- Security-related code
- Data validation
- Authorization checks
HIGH - Should cover soon:
- Edge cases
- Boundary conditions
- Integration points
- Public API functions
MEDIUM - Good to cover:
- Internal helper functions
- Logging statements
- Configuration parsing
LOW - Optional:
- Debug code
- Development-only paths
- Deprecated functions
Analysis Report Format
# Test Coverage Analysis
## Executive Summary
**Current Coverage:** 75.3%
**Target:** 80%+
**Gap:** 4.7% (23 uncovered lines)
**Status:** ⚠️ Below target
**Breakdown:**
- src/python_modern_template/: 73.2% (18 uncovered lines)
- tests/: 100% (fully covered)
---
## Critical Gaps (MUST FIX)
### 1. Error Handling in validators.py ⚠️ CRITICAL
**File:** src/python_modern_template/validators.py
**Lines:** 45-52
Установить coverage-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coverage-analyzer?
Advanced coverage analysis with actionable insights. Use to identify coverage gaps, suggest specific tests, track coverage trends, and highlight critical uncovered code. Essential for reaching 80%+ coverage target.
Как установить скилл coverage-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coverage-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic