[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2D80389S5EBK6GYDXJKTW":3,"skill-same:01M6C2D80389S5EBK6GYDXJKTW":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6C2D80389S5EBK6GYDXJKTW","test-coverage",null,"Analyze test coverage reports, identify gaps by priority, and recommend test improvements with trend tracking","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Ftest-coverage\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"test coverage","coverage","test","check","gaps","recommend","with","gap","trend","reports","tracking","find","quality","analyze","first","risk","test coverage check","help","run","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: test-coverage\nplatforms: [all]\ndescription: Analyze test coverage reports, identify gaps by priority, and recommend test improvements with trend tracking\ntriggers:\n  - \"help check quality\"\n  - \"find the highest-risk quality gap first\"\n  - \"run a focused quality or test coverage check\"\n  - \"test coverage\"\n\n---\n\n# test-coverage\n\nAnalyze test coverage, identify gaps, and recommend test improvements.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"lcov\" \u002F \"istanbul\" \u002F \"c8\" → coverage tool-specific queries\n- \"coverage holes\" in testing context → gap analysis\n- \"what's not tested\" → coverage gap discovery\n\n## Purpose\n\nThis skill provides comprehensive test coverage analysis by:\n- Parsing coverage reports from multiple formats\n- Identifying coverage gaps by priority\n- Mapping coverage to requirements\n- Recommending test additions\n- Tracking coverage trends over time\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Locates coverage data**:\n   - Find coverage reports (lcov, cobertura, istanbul, etc.)\n   - Identify test directories and conventions\n   - Load historical coverage data\n\n2. **Analyzes coverage metrics**:\n   - Line coverage percentage\n   - Branch coverage percentage\n   - Function coverage percentage\n   - File-level breakdown\n\n3. **Identifies critical gaps**:\n   - Untested critical paths\n   - Low-coverage high-change files\n   - Untested public APIs\n   - Missing edge case coverage\n\n4. **Maps to requirements**:\n   - Cross-reference with traceability data\n   - Identify untested requirements\n   - Flag coverage by priority\n\n5. **Generates recommendations**:\n   - Prioritized list of tests to add\n   - Estimated effort per test\n   - Coverage improvement projection\n\n6. **Tracks trends**:\n   - Coverage over time\n   - Coverage by component\n   - Impact of recent changes\n\n## Coverage Metrics\n\n### Line Coverage\n\n```yaml\nline_coverage:\n  description: Percentage of code lines executed by tests\n  calculation: (lines_executed \u002F total_lines) * 100\n  targets:\n    excellent: \">= 90%\"\n    good: \">= 80%\"\n    acceptable: \">= 70%\"\n    poor: \"\u003C 70%\"\n```\n\n### Branch Coverage\n\n```yaml\nbranch_coverage:\n  description: Percentage of decision branches executed\n  calculation: (branches_taken \u002F total_branches) * 100\n  targets:\n    excellent: \">= 85%\"\n    good: \">= 75%\"\n    acceptable: \">= 65%\"\n    poor: \"\u003C 65%\"\n  importance: Critical for logic paths\n```\n\n### Function Coverage\n\n```yaml\nfunction_coverage:\n  description: Percentage of functions called by tests\n  calculation: (functions_called \u002F total_functions) * 100\n  targets:\n    excellent: \">= 95%\"\n    good: \">= 90%\"\n    acceptable: \">= 80%\"\n    poor: \"\u003C 80%\"\n```\n\n### Statement Coverage\n\n```yaml\nstatement_coverage:\n  description: Percentage of statements executed\n  calculation: (statements_executed \u002F total_statements) * 100\n  note: Similar to line coverage but counts multi-statement lines\n```\n\n## Coverage Report Format\n\n```markdown\n# Test Coverage Analysis Report\n\n**Date**: 2025-12-08\n**Project**: User Service\n**Analyzer**: test-coverage skill\n\n## Executive Summary\n\n| Metric | Current | Target | Status |\n|--------|---------|--------|--------|\n| Line Coverage | 78.5% | 80% | ⚠️ Below Target |\n| Branch Coverage | 72.3% | 75% | ⚠️ Below Target |\n| Function Coverage | 91.2% | 90% | ✅ Meets Target |\n| Files with 0% | 3 | 0 | ❌ Action Required |\n\n**Overall Assessment**: Coverage below targets in 2 of 4 metrics. Focus on branch coverage and untested files.\n\n## Coverage by Component\n\n| Component | Lines | Branches | Functions | Trend |\n|-----------|-------|----------|-----------|-------|\n| src\u002Fauth\u002F | 92% | 88% | 100% | ↑ +2% |\n| src\u002Fuser\u002F | 85% | 78% | 95% | → 0% |\n| src\u002Fapi\u002F | 76% | 68% | 88% | ↓ -3% |\n| src\u002Futils\u002F | 65% | 55% | 82% | → 0% |\n| src\u002Fdb\u002F | 58% | 45% | 75% | ↓ -5% |\n\n## Critical Gaps\n\n### Priority 1: Untested Files\n\nFiles with 0% coverage that require immediate attention:\n\n| File | Lines | Risk | Action |\n|------|-------|------|--------|\n| src\u002Fdb\u002Fmigrations.ts | 145 | High | Add migration tests |\n| src\u002Fapi\u002Fwebhooks.ts | 89 | High | Add webhook handler tests |\n| src\u002Futils\u002Fretry.ts | 42 | Medium | Add retry logic tests |\n\n### Priority 2: Low-Coverage Critical Paths\n\nBusiness-critical code with insufficient coverage:\n\n| File | Current | Target | Gap | Critical Path |\n|------|---------|--------|-----|---------------|\n| src\u002Fauth\u002Foauth.ts | 55% | 90% | 35% | User authentication |\n| src\u002Fapi\u002Fpayments.ts | 62% | 90% | 28% | Payment processing |\n| src\u002Fuser\u002Fpermissions.ts | 68% | 85% | 17% | Authorization |\n\n### Priority 3: Branch Coverage Gaps\n\nFiles with low branch coverage (complex logic undertested):\n\n| File | Branch % | Uncovered Branches | Example |\n|------|----------|-------------------|---------|\n| src\u002Fapi\u002Frouter.ts | 45% | 12 | Error handling paths |\n| src\u002Futils\u002Fvalidator.ts | 52% | 8 | Edge case validations |\n| src\u002Fdb\u002Fquery-builder.ts | 48% | 15 | Query variations |\n\n## Uncovered Code Analysis\n\n### src\u002Fauth\u002Foauth.ts (55% line coverage)\n\n```\nLines not covered:\n- 45-67: Token refresh error handling\n- 89-112: OAuth provider fallback logic\n- 134-145: Session invalidation edge cases\n\nRecommended tests:\n1. Test token refresh with expired token\n2. Test provider unavailable fallback\n3. Test concurrent session invalidation\n```\n\n### src\u002Fapi\u002Fpayments.ts (62% line coverage)\n\n```\nLines not covered:\n- 78-95: Payment retry logic\n- 123-140: Refund edge cases\n- 167-180: Currency conversion errors\n\nRecommended tests:\n1. Test payment retry with transient failure\n2. Test partial refund scenarios\n3. Test invalid currency handling\n```\n\n## Requirements Coverage\n\nCross-reference with traceability data:\n\n| Requirement | Test Coverage | Status |\n|-------------|---------------|--------|\n| UC-001: User Login | 95% | ✅ Covered |\n| UC-002: User Registration | 88% | ✅ Covered |\n| UC-003: Password Reset | 45% | ⚠️ Partial |\n| UC-004: OAuth Login | 55% | ⚠️ Partial |\n| REQ-001: Input Validation | 78% | ⚠️ Partial |\n| NFR-001: Performance | 30% | ❌ Insufficient |\n\n## Test Recommendations\n\n### High Priority (This Sprint)\n\n| # | Test to Add | File | Est. Effort | Coverage Gain |\n|---|-------------|------|-------------|---------------|\n| 1 | OAuth token refresh tests | oauth.test.ts | 2h | +15% |\n| 2 | Payment retry scenarios | payments.test.ts | 3h | +12% |\n| 3 | Migration execution tests | migrations.test.ts | 4h | +100% (new) |\n| 4 | Webhook handler tests | webhooks.test.ts | 2h | +100% (new) |\n\n### Medium Priority (Next Sprint)\n\n| # | Test to Add | File | Est. Effort | Coverage Gain |\n|---|-------------|------|-------------|---------------|\n| 5 | Permission edge cases | permissions.test.ts | 2h | +8% |\n| 6 | Router error paths | router.test.ts | 3h | +20% branch |\n| 7 | Validation edge cases | validator.test.ts | 2h | +15% branch |\n\n### Projected Impact\n\nIf all high-priority tests added:\n- Line coverage: 78.5% → 85.2% (+6.7%)\n- Branch coverage: 72.3% → 79.1% (+6.8%)\n- Untested files: 3 → 1\n\n## Coverage Trends\n\n### Last 30 Days\n\n```\nWeek 1: 82.1% ──────────────────────────\nWeek 2: 80.5% ────────────────────────\nWeek 3: 79.2% ──────────────────────\nWeek 4: 78.5% ─────────────────────\n                    ↓ Declining trend\n```\n\n### By Sprint\n\n| Sprint | Coverage | Change | Notes |\n|--------|----------|--------|-------|\n| Sprint 10 | 82.1% | - | Baseline |\n| Sprint 11 | 80.5% | -1.6% | New auth module |\n| Sprint 12 | 79.2% | -1.3% | Payment integration |\n| Sprint 13 | 78.5% | -0.7% | API expansion |\n\n**Trend Analysis**: Coverage declining due to new feature velocity without proportional test additions. Recommend test-first approach for new features.\n\n## Action Plan\n\n### Immediate (This Week)\n- [ ] Add OAuth token refresh tests\n- [ ] Add payment retry tests\n- [ ] Set up coverage gates in CI (minimum 80%)\n\n### Short-term (This Sprint)\n- [ ] Create migration test suite\n- [ ] Create webhook test suite\n- [ ] Address UC-003 and UC-004 coverage gaps\n\n### Ongoing\n- [ ] Require tests with new feature PRs\n- [ ] Weekly coverage review in standup\n- [ ] Quarterly coverage target adjustment\n\n## Configuration\n\nCoverage thresholds for CI gates:\n\n```yaml\ncoverage_gates:\n  global:\n    lines: 80\n    branches: 75\n    functions: 90\n    statements: 80\n\n  per_file:\n    lines: 70\n    branches: 65\n\n  new_code:\n    lines: 90\n    branches: 85\n```\n```\n\n## Usage Examples\n\n### Full Coverage Analysis\n\n```\nUser: \"Analyze test coverage\"\n\nSkill executes:\n1. Locate coverage reports\n2. Parse metrics\n3. Identify gaps\n4. Generate recommendations\n\nOutput:\n\"Test Coverage Analysis Complete\n\nOverall: 78.5% line, 72.3% branch\n\nStatus: ⚠️ Below targets\n\nCritical Findings:\n- 3 files with 0% coverage\n- 2 critical paths undertested\n- Branch coverage declining\n\nTop Recommendations:\n1. Add OAuth tests (+15% gain, 2h effort)\n2. Add payment retry tests (+12% gain, 3h effort)\n3. Add migration tests (new coverage, 4h effort)\n\nReport: .aiwg\u002Ftesting\u002Fcoverage-analysis.md\"\n```\n\n### Find Untested Code\n\n```\nUser: \"What's not tested in auth module?\"\n\nSkill analyzes:\n- src\u002Fauth\u002F directory\n- Identifies untested paths\n\nOutput:\n\"Auth Module Coverage: 92% lines, 88% branches\n\nUntested Code:\n\n1. oauth.ts (lines 45-67)\n   - Token refresh error handling\n   - Test: expired token scenario\n\n2. oauth.ts (lines 89-112)\n   - Provider fallback logic\n   - Test: provider timeout scenario\n\n3. session.ts (lines 134-145)\n   - Session invalidation edge cases\n   - Test: concurrent invalidation\n\nRecommended Test Additions:\n- 3 test cases\n- Estimated: 3 hours\n- Expected gain: +8% coverage\"\n```\n\n### Coverage Trend\n\n```\nUser: \"Coverage report over time\"\n\nSkill returns:\n\"Coverage Trend (Last 4 Sprints):\n\nSprint 10: 82.1% ██████████████████████\nSprint 11: 80.5% █████████████████████\nSprint 12: 79.2% ████████████████████\nSprint 13: 78.5% ███████████████████\n                 ↓ Declining (-3.6%)\n\nCause: New feature velocity outpacing test additions\n\nRecommendation:\n- Enforce 90% coverage on new code\n- Add test task to feature tickets\n- Schedule 'test debt' sprint\"\n```\n\n## Integration\n\nThis skill uses:\n- `traceability-check`: Map coverage to requirements\n- `project-awareness`: Identify test conventions\n- `artifact-metadata`: Track coverage reports\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: test-architect\n    focus: Coverage analysis and strategy\n\n  implementation:\n    agent: test-engineer\n    focus: Test recommendations and implementation\n\n  review:\n    agent: code-reviewer\n    focus: Coverage quality assessment\n```\n\n## Configuration\n\n### Coverage Tool Detection\n\n```yaml\ncoverage_tools:\n  javascript:\n    - istanbul\u002Fnyc: coverage\u002Flcov.info\n    - jest: coverage\u002Fcoverage-final.json\n    - c8: coverage\u002Flcov.info\n\n  python:\n    - coverage.py: .coverage, coverage.xml\n    - pytest-cov: coverage.xml\n\n  java:\n    - jacoco: target\u002Fsite\u002Fjacoco\u002Fjacoco.xml\n    - cobertura: target\u002Fsite\u002Fcobertura\u002Fcoverage.xml\n\n  go:\n    - go test: coverage.out\n```\n\n### Priority Calculation\n\n```yaml\npriority_factors:\n  critical_path:\n    weight: 3\n    paths: [auth, payments, permissions]\n\n  recent_changes:\n    weight: 2\n    lookback: 30 days\n\n  complexity:\n    weight: 1.5\n    metric: cyclomatic_complexity\n\n  bug_history:\n    weight: 2\n    source: issue_tracker\n```\n\n## Output Locations\n\n- Coverage reports: `.aiwg\u002Ftesting\u002Fcoverage\u002F`\n- Analysis reports: `.aiwg\u002Ftesting\u002Fcoverage-analysis.md`\n- Trends: `.aiwg\u002Ftesting\u002Fcoverage-trends.json`\n- Recommendations: `.aiwg\u002Ftesting\u002Fcoverage-recommendations.md`\n\n## References\n\n- Test strategy: .aiwg\u002Ftesting\u002Ftest-strategy.md\n- Traceability matrix: .aiwg\u002Freports\u002Ftraceability-matrix.csv\n- Coverage templates: agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Ftest\u002Ftest-evaluation-summary-template.md\n","# test-coverage\n\nAnalyze test coverage, identify gaps, and recommend test improvements.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"lcov\" \u002F \"istanbul\" \u002F \"c8\" → coverage tool-specific queries\n- \"coverage holes\" in testing context → gap analysis\n- \"what's not tested\" → coverage gap discovery\n\n## Purpose\n\nThis skill provides comprehensive test coverage analysis by:\n- Parsing coverage reports from multiple formats\n- Identifying coverage gaps by priority\n- Mapping coverage to requirements\n- Recommending test additions\n- Tracking coverage trends over time\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Locates coverage data**:\n   - Find coverage reports (lcov, cobertura, istanbul, etc.)\n   - Identify test directories and conventions\n   - Load historical coverage data\n\n2. **Analyzes coverage metrics**:\n   - Line coverage percentage\n   - Branch coverage percentage\n   - Function coverage percentage\n   - File-level breakdown\n\n3. **Identifies critical gaps**:\n   - Untested critical paths\n   - Low-coverage high-change files\n   - Untested public APIs\n   - Missing edge case coverage\n\n4. **Maps to requirements**:\n   - Cross-reference with traceability data\n   - Identify untested requirements\n   - Flag coverage by priority\n\n5. **Generates recommendations**:\n   - Prioritized list of tests to add\n   - Estimated effort per test\n   - Coverage improvement projection\n\n6. **Tracks trends**:\n   - Coverage over time\n   - Coverage by component\n   - Impact of recent changes\n\n## Coverage Metrics\n\n### Line Coverage\n\n```yaml\nline_coverage:\n  description: Percentage of code lines executed by tests\n  calculation: (lines_executed \u002F total_lines) * 100\n  targets:\n    excellent: \">= 90%\"\n    good: \">= 80%\"\n    acceptable: \">= 70%\"\n    poor: \"\u003C 70%\"\n```\n\n### Branch Coverage\n\n```yaml\nbranch_coverage:\n  description: Percentage of decision branches executed\n  calculation: (branches_taken \u002F total_branches) * 100\n  targets:\n    excellent: \">= 85%\"\n    good: \">= 75%\"\n    acceptable: \">= 65%\"\n    poor: \"\u003C 65%\"\n  importance: Critical for logic paths\n```\n\n### Function Coverage\n\n```yaml\nfunction_coverage:\n  description: Percentage of functions called by tests\n  calculation: (functions_called \u002F total_functions) * 100\n  targets:\n    excellent: \">= 95%\"\n    good: \">= 90%\"\n    acceptable: \">= 80%\"\n    poor: \"\u003C 80%\"\n```\n\n### Statement Coverage\n\n```yaml\nstatement_coverage:\n  description: Percentage of statements executed\n  calculation: (statements_executed \u002F total_statements) * 100\n  note: Similar to line coverage but counts multi-statement lines\n```\n\n## Coverage Report Format\n\n```markdown\n# Test Coverage Analysis Report\n\n**Date**: 2025-12-08\n**Project**: User Service\n**Analyzer**: test-coverage skill\n\n## Executive Summary\n\n| Metric | Current | Target | Status |\n|--------|---------|--------|--------|\n| Line Coverage | 78.5% | 80% | ⚠️ Below Target |\n| Branch Coverage | 72.3% | 75% | ⚠️ Below Target |\n| Function Coverage | 91.2% | 90% | ✅ Meets Target |\n| Files with 0% | 3 | 0 | ❌ Action Required |\n\n**Overall Assessment**: Coverage below targets in 2 of 4 metrics. Focus on branch coverage and untested files.\n\n## Coverage by Component\n\n| Component | Lines | Branches | Functions | Trend |\n|-----------|-------|----------|-----------|-------|\n| src\u002Fauth\u002F | 92% | 88% | 100% | ↑ +2% |\n| src\u002Fuser\u002F | 85% | 78% | 95% | → 0% |\n| src\u002Fapi\u002F | 76% | 68% | 88% | ↓ -3% |\n| src\u002Futils\u002F | 65% | 55% | 82% | → 0% |\n| src\u002Fdb\u002F | 58% | 45% | 75% | ↓ -5% |\n\n## Critical Gaps\n\n### Priority 1: Untested Files\n\nFiles with 0% coverage that require immediate attention:\n\n| File | Lines | Risk | Action |\n|------|-------|------|--------|\n| src\u002Fdb\u002Fmigrations.ts | 145 | High | Add migration tests |\n| src\u002Fapi\u002Fwebhooks.ts | 89 | High | Add webhook handler tests |\n| src\u002Futils\u002Fretry.ts | 42 | Medium | Add retry logic tests |\n\n### Priority 2: Low-Coverage Critical Paths\n\nBusiness-critical code with insufficient coverage:\n\n| File | Current | Target | Gap | Critical Path |\n|------|---------|--------|-----|---------------|\n| src\u002Fauth\u002Foauth.ts | 55% | 90% | 35% | User authentication |\n| src\u002Fapi\u002Fpayments.ts | 62% | 90% | 28% | Payment processing |\n| src\u002Fuser\u002Fpermissions.ts | 68% | 85% | 17% | Authorization |\n\n### Priority 3: Branch Coverage Gaps\n\nFiles with low branch coverage (complex logic undertested):\n\n| File | Branch % | Uncovered Branches | Example |\n|------|----------|-------------------|---------|\n| src\u002Fapi\u002Frouter.ts | 45% | 12 | Error handling paths |\n| src\u002Futils\u002Fvalidator.ts | 52% | 8 | Edge case validations |\n| src\u002Fdb\u002Fquery-builder.ts | 48% | 15 | Query variations |\n\n## Uncovered Code Analysis\n\n### src\u002Fauth\u002Foauth.ts (55% line coverage)\n\n```\nLines not covered:\n- 45-67: Token refresh error handling\n- 89-112: OAuth provider fallback logic\n- 134-145: Session invalidation edge cases\n\nRecommended tests:\n1. Test token refresh with expired token\n2. Test provider unavailable fallback\n3. Test concurrent session invalidation\n```\n\n### src\u002Fapi\u002Fpayments.ts (62% line coverage)\n\n```\nLines not covered:\n- 78-95: Payment retry logic\n- 123-140: Refund edge cases\n- 167-180: Currency conversion errors\n\nRecommended tests:\n1. Test payment retry with transient failure\n2. Test partial refund scenarios\n3. Test invalid currency handling\n```\n\n## Requirements Coverage\n\nCross-reference with traceability data:\n\n| Requirement | Test Coverage | Status |\n|-------------|---------------|--------|\n| UC-001: User Login | 95% | ✅ Covered |\n| UC-002: User Registration | 88% | ✅ Covered |\n| UC-003: Password Reset | 45% | ⚠️ Partial |\n| UC-004: OAuth Login | 55% | ⚠️ Partial |\n| REQ-001: Input Validation | 78% | ⚠️ Partial |\n| NFR-001: Performance | 30% | ❌ Insufficient |\n\n## Test Recommendations\n\n### High Priority (This Sprint)\n\n| # | Test to Add | File | Est. Effort | Coverage Gain |\n|---|-------------|------|-------------|---------------|\n| 1 | OAuth token refresh tests | oauth.test.ts | 2h | +15% |\n| 2 | Payment retry scenarios | payments.test.ts | 3h | +12% |\n| 3 | Migration execution tests | migrations.test.ts | 4h | +100% (new) |\n| 4 | Webhook handler tests | webhooks.test.ts | 2h | +100% (new) |\n\n### Medium Priority (Next Sprint)\n\n| # | Test to Add | File | Est. Effort | Coverage Gain |\n|---|-------------|------|-------------|---------------|\n| 5 | Permission edge cases | permissions.test.ts | 2h | +8% |\n| 6 | Router error paths | router.test.ts | 3h | +20% branch |\n| 7 | Validation edge cases | validator.test.ts | 2h | +15% branch |\n\n### Projected Impact\n\nIf all high-priority tests added:\n- Line coverage: 78.5% → 85.2% (+6.7%)\n- Branch coverage: 72.3% → 79.1% (+6.8%)\n- Untested files: 3 → 1\n\n## Coverage Trends\n\n### Last 30 Days\n\n```\nWeek 1: 82.1% ──────────────────────────\nWeek 2: 80.5% ────────────────────────\nWeek 3: 79.2% ──────────────────────\nWeek 4: 78.5% ─────────────────────\n                    ↓ Declining trend\n```\n\n### By Sprint\n\n| Sprint | Coverage | Change | Notes |\n|--------|----------|--------|-------|\n| Sprint 10 | 82.1% | - | Baseline |\n| Sprint 11 | 80.5% | -1.6% | New auth module |\n| Sprint 12 | 79.2% | -1.3% | Payment integration |\n| Sprint 13 | 78.5% | -0.7% | API expansion |\n\n**Trend Analysis**: Coverage declining due to new feature velocity without proportional test additions. Recommend test-first approach for new features.\n\n## Action Plan\n\n### Immediate (This Week)\n- [ ] Add OAuth token refresh tests\n- [ ] Add payment retry tests\n- [ ] Set up coverage gates in CI (minimum 80%)\n\n### Short-term (This Sprint)\n- [ ] Create migration test suite\n- [ ] Create webhook test suite\n- [ ] Address UC-003 and UC-004 coverage gaps\n\n### Ongoing\n- [ ] Require tests with new feature PRs\n- [ ] Weekly coverage review in standup\n- [ ] Quarterly coverage target adjustment\n\n## Configuration\n\nCoverage thresholds for CI gates:\n\n```yaml\ncoverage_gates:\n  global:\n    lines: 80\n    branches: 75\n    functions: 90\n    statements: 80\n\n  per_file:\n    lines: 70\n    branches: 65\n\n  new_code:\n    lines: 90\n    branches: 85\n```\n```\n\n## Usage Examples\n\n### Full Coverage Analysis\n\n```\nUser: \"Analyze test coverage\"\n\nSkill executes:\n1. Locate coverage reports\n2. Parse metrics\n3. Identify gaps\n4. Generate recommendations\n\nOutput:\n\"Test Coverage Analysis Complete\n\nOverall: 78.5% line, 72.3% branch\n\nStatus: ⚠️ Below targets\n\nCritical Findings:\n- 3 files with 0% coverage\n- 2 critical paths undertested\n- Branch coverage declining\n\nTop Recommendations:\n1. Add OAuth tests (+15% gain, 2h effort)\n2. Add payment retry tests (+12% gain, 3h effort)\n3. Add migration tests (new coverage, 4h effort)\n\nReport: .aiwg\u002Ftesting\u002Fcoverage-analysis.md\"\n```\n\n### Find Untested Code\n\n```\nUser: \"What's not tested in auth module?\"\n\nSkill analyzes:\n- src\u002Fauth\u002F directory\n- Identifies untested paths\n\nOutput:\n\"Auth Module Coverage: 92% lines, 88% branches\n\nUntested Code:\n\n1. oauth.ts (lines 45-67)\n   - Token refresh error handling\n   - Test: expired token scenario\n\n2. oauth.ts (lines 89-112)\n   - Provider fallback logic\n   - Test: provider timeout scenario\n\n3. session.ts (lines 134-145)\n   - Session invalidation edge cases\n   - Test: concurrent invalidation\n\nRecommended Test Additions:\n- 3 test cases\n- Estimated: 3 hours\n- Expected gain: +8% coverage\"\n```\n\n### Coverage Trend\n\n```\nUser: \"Coverage report over time\"\n\nSkill returns:\n\"Coverage Trend (Last 4 Sprints):\n\nSprint 10: 82.1% ██████████████████████\nSprint 11: 80.5% █████████████████████\nSprint 12: 79.2% ████████████████████\nSprint 13: 78.5% ███████████████████\n                 ↓ Declining (-3.6%)\n\nCause: New feature velocity outpacing test additions\n\nRecommendation:\n- Enforce 90% coverage on new code\n- Add test task to feature tickets\n- Schedule 'test debt' sprint\"\n```\n\n## Integration\n\nThis skill uses:\n- `traceability-check`: Map coverage to requirements\n- `project-awareness`: Identify test conventions\n- `artifact-metadata`: Track coverage reports\n\n## Agent Orchestration\n\n```yaml\nagents:\n  analysis:\n    agent: test-architect\n    focus: Coverage analysis and strategy\n\n  implementation:\n    agent: test-engineer\n    focus: Test recommendations and implementation\n\n  review:\n    agent: code-reviewer\n    focus: Coverage quality assessment\n```\n\n## Configuration\n\n### Coverage Tool Detection\n\n```yaml\ncoverage_tools:\n  javascript:\n    - istanbul\u002Fnyc: coverage\u002Flcov.info\n    - jest: coverage\u002Fcoverage-final.json\n    - c8: coverage\u002Flcov.info\n\n  python:\n    - coverage.py: .coverage, coverage.xml\n    - pytest-cov: coverage.xml\n\n  java:\n    - jacoco: target\u002Fsite\u002Fjacoco\u002Fjacoco.xml\n    - cobertura: target\u002Fsite\u002Fcobertura\u002Fcoverage.xml\n\n  go:\n    - go test: coverage.out\n```\n\n### Priority Calculation\n\n```yaml\npriority_factors:\n  critical_path:\n    weight: 3\n    paths: [auth, payments, permissions]\n\n  recent_changes:\n    weight: 2\n    lookback: 30 days\n\n  complexity:\n    weight: 1.5\n    metric: cyclomatic_complexity\n\n  bug_history:\n    weight: 2\n    source: issue_tracker\n```\n\n## Output Locations\n\n- Coverage reports: `.aiwg\u002Ftesting\u002Fcoverage\u002F`\n- Analysis reports: `.aiwg\u002Ftesting\u002Fcoverage-analysis.md`\n- Trends: `.aiwg\u002Ftesting\u002Fcoverage-trends.json`\n- Recommendations: `.aiwg\u002Ftesting\u002Fcoverage-recommendations.md`\n\n## References\n\n- Test strategy: .aiwg\u002Ftesting\u002Ftest-strategy.md\n- Traceability matrix: .aiwg\u002Freports\u002Ftraceability-matrix.csv\n- Coverage templates: agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Ftest\u002Ftest-evaluation-summary-template.md\n",{"name":5,"triggers":51,"namespace":55,"platforms":56,"description":7},[52,53,54,27],"help check quality","find the highest-risk quality gap first","run a focused quality or test coverage check","aiwg",[57],"all","main","a602706fc62ff1cfcb18001358ac39647b08acf5","agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Ftest-coverage",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add jmagly\u002Faiwg --skill test-coverage",{"tool":74,"command":75},"bunx","bunx skills add jmagly\u002Faiwg --skill test-coverage",{"tool":77,"command":78},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill test-coverage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Ftest-coverage\u002FSKILL.md",true,[],[83,91,96,124,148,154],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":92,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":90},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":103,"publishedAt":46},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[102],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":134,"publishedAt":46},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[130,133],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[135,136,137,138,139,140,109,141,115,122,117,142,105,143,119,144,145,123,146,147],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":149,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":153,"publishedAt":46},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[152],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[104,105,106,121,122,123,116,120,112,108,109,110,111,113,114,115,107,117,118,119],{"skillNo":155,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":160,"publishedAt":46},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[158,159],{"categoryNo":131,"categoryName":132,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[135,136,147,146,139,145,144,119,138,140,109,141,115,137,117,142,105,123,122,143]]