From quality-tooling
Analyzes historical blocking and critical bugs from Jira, determines what test coverage exists today with deep test inspection and confidence scoring, and generates standalone HTML reports. Use when assessing test gaps for a repository, analyzing bug coverage quality, or generating coverage reports from Jira data.
How this skill is triggered — by the user, by Claude, or both
Slash command
/quality-tooling:historical-bug-coverageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyzes historical blocking and critical bugs from Jira, determines what test coverage exists today, and generates a comprehensive HTML report with deep test analysis and confidence scoring.
Analyzes historical blocking and critical bugs from Jira, determines what test coverage exists today, and generates a comprehensive HTML report with deep test analysis and confidence scoring.
Deep Test Analysis - Reads test files and extracts actual assertions to understand what tests validate
Confidence Scoring - 0-100% match quality scores for each bug-test mapping
Coverage Criteria - 80%+ confidence required for COVERED status
Test File Visibility - Shows exactly which test covers each bug
Granular Test Levels - Unit, Mock, Component, Integration, E2E (Upstream/Downstream), Contract
Team Feedback Loop - Export mappings for validation and continuous improvement
/historical-bug-coverage --jql "JQL_QUERY" --repo REPO_PATH [options]
# Analyze critical bugs for a component
/historical-bug-coverage \
--jql "project = MYPROJECT AND component = 'Dashboard' AND priority in (Blocker, Critical)" \
--repo /path/to/my-repo
# Include external test repository
/historical-bug-coverage \
--jql "project = MYPROJECT AND component = 'Model Registry'" \
--repo /path/to/model-registry \
--external-tests /path/to/e2e-tests/model_registry
# Filter by time range
/historical-bug-coverage \
--jql "project = MYPROJECT AND priority = Critical AND created >= -90d" \
--repo /path/to/my-repo
# Multiple bug categories
/historical-bug-coverage \
--jql "project = MYPROJECT AND (labels = upgrade-issue OR labels = fips)" \
--repo /path/to/my-repo
Deep Test Analysis - Reads matched test files, extracts assertions, and calculates 0-100% confidence scores based on entity matches and scenario validation.
Strict Coverage Thresholds:
Test Level Classification - Assigns earliest feasible level: Unit → Mock → Component → Integration → E2E → Contract
Auto-Categorization - Detects upgrade, platform-specific (ARM/Power/s390x), FIPS, performance, security, and disconnected environment issues
Generates standalone HTML report with:
HTML report includes coverage mappings that teams can validate. Future: export to JSON for systematic review and continuous learning.
openpyxl (only for compare_analyses.py Excel export feature)Set up environment variables:
# Create .env file in your home directory or project root
cat > ~/.env <<EOF
JIRA_SERVER=https://yourcompany.atlassian.net
[email protected]
JIRA_TOKEN=your-api-token
EOF
# Or specify custom location
export JIRA_ENV_FILE=/path/to/your/.env
Environment variable priority:
$JIRA_ENV_FILE (if set)$(pwd)/.env (current directory)$HOME/.env (home directory)$HOME/.claude/.env (Claude config directory)--external-tests| Option | Description | Required |
|---|---|---|
--jql | JQL query string | Yes (or --filter) |
--filter | Saved Jira filter ID | Yes (or --jql) |
--repo | Target repository path | Yes |
--external-tests | External test repository path | No |
--output | Output HTML file path | No (auto-generated) |
# Critical bugs in last 90 days
project = MYPROJECT AND priority = Critical AND created >= -90d
# Specific categories
project = MYPROJECT AND labels in (upgrade-issue, fips, arm, disconnected)
Auto-generated in current directory as {repo-name}-bug-coverage.html
85%+ accuracy for COVERED bugs, <10% false positives, actionable test gap identification.
Typical: ~10-15% COVERED, ~10-15% PARTIAL, ~70-75% GAP, ~1-5% NOT TESTABLE. Test files visible for all matches with confidence scores for prioritization.
For detailed implementation guidance:
Report issues at: https://github.com/anthropics/claude-code/issues
npx claudepluginhub ikredhat/skills-registry --plugin quality-toolingCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.