Agent Skills: improve-coverage

Improve test coverage by identifying gaps and generating meaningful tests

UncategorizedID: seabbs/claude-code-config/improve-coverage

Install this agent skill to your local

pnpm dlx add-skill https://github.com/seabbs/claude-code-config/tree/HEAD/skills/improve-coverage

Skill Files

Browse the full folder contents for improve-coverage.

Download Skill

Loading file tree…

skills/improve-coverage/SKILL.md

Skill Metadata

Name
improve-coverage
Description
Improve test coverage by identifying gaps and generating meaningful tests

Improve test coverage for $ARGUMENTS.

Phase 1: Coverage Analysis

  1. Generate coverage report
  2. Identify untested functions, branches, error paths, edge cases

Phase 2: Test Priority

  1. Prioritise by: critical business logic, complex functions, error handling, public APIs

Phase 3: Test Generation

  1. Write tests covering edge cases, error conditions, and property-based tests where appropriate
  2. Follow existing test patterns and conventions

Phase 4: Test Quality

  1. Ensure tests are independent, clearly named, test one thing, and run quickly

Phase 5: Integration

  1. Run full test suite, check coverage improvement, refactor for maintainability

Generate tests that catch bugs, not just increase numbers. Focus on behaviour, not implementation.

Auto-Exit When Standalone

IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.