Test Coverage
Fix test coverage for a Flows app to meet the 80% line gate, writing missing tests and refactoring for testability.
- CCM score
- 60 of 100
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full coverage workflow: tooling setup, scope validation, test runs, and writing missing test files
- Includes Vitest and Jest configuration checks, plus templates for hook and service tests with
renderHookand mocks - Enforces the 80% line coverage hard gate, excluding only test files,
vite-env.d.ts, andmain.tsxfrom measurement - Designed for Flows app projects that need to pass coverage approval rather than merely report gaps
Install
$ npx -y skills add cognitedata/builder-skills --skill test-coverage -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Test Coverage Fix
Fix test coverage for $ARGUMENTS (or the whole app if no argument is given). This skill enforces the 80% line coverage hard gate required for Flows app approval by finding AND fixing coverage gaps. Work through every step in order.
Step 1 — Verify test framework and coverage tooling
Check that the project has a working test framework with coverage configured:
# Check for vitest or jest in package.json
grep -E "(vitest|jest)" package.json
# Check for coverage configuration
cat vitest.config.ts 2>/dev/null || cat vitest.config.js 2>/dev/null || cat jest.config.ts 2>/dev/null || cat jest.config.js 2>/dev/null
Verify:
- A test framework (Vitest or Jest) is installed and configured
- The config file has a
coveragesection (e.g.coverage: { provider: 'v8', ... }in vitest.config.ts) - A coverage reporter is configured (at least
textandlcovorjson-summary)
If coverage tooling is not configured, fix it now:
- Install the coverage provider:
pnpm add -D @vitest/coverage-v8
Details
- Repository
- github.com/cognitedata/builder-skills
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the test-coverage skill do for a Flows app?
The test-coverage skill finds and fixes coverage gaps in a Flows app to meet the 80% line coverage hard gate. It configures tooling, writes missing tests, covers untested paths, and refactors code for testability rather than only reporting gaps.
How do I install the test-coverage skill?
Run npx -y skills add cognitedata/builder-skills --skill test-coverage -y in your project. Once installed, the agent can configure Vitest or Jest coverage and write the tests needed to reach 80% line coverage.
Which skills does test-coverage sit alongside in Testing & QA?
Test-coverage is in the Testing & QA category, next to tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. Its focus is the 80% line coverage gate for Flows apps, which the other skills in this category do not center on.
Does test-coverage require a specific test framework?
The skill works with Vitest or Jest and checks for an existing config first. If coverage tooling is missing, it installs @vitest/coverage-v8 and adds a coverage section to vitest.config.ts.
More from cognitedata/builder-skills
All 25- Dependencies Audit1.9K
- Reveal 3d1.9K
- Design1.9K
- Integrate Todo List1.9K
- Correctness And Error Handling1.9K
- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Security1.9K
- Integrate File Viewer1.9K
- Setup Python Tools1.9K
- Graph Viewer1.9K
- Setup Flows Auth1.9K
- Performance1.9K
- Create Client Tool1.9K
- Pull Changes Resolve Conflicts1.9K
- Use Topbar1.9K
- Migrate App To Flows1.7K
- Integrate Fusion Agent1.7K
- Flows Code Review1.6K
- Flows Design Review1.1K
- Flows App Brief1.1K
- Flows External App Submit1.1K
- Skill Creator2.5K
- Code Quality2K
Similar to Test Coverage
More Testing & QAtdd-guidealirezarezvani/claude-skills1.1K installsTest-first development skill that generates tests, mocks, and coverage analysis across Jest, Pytest, JUnit, Vitest, and Mocha.
vitest-testingsecondsky/claude-skills1.3K installsModern Vitest guide for TypeScript and JavaScript tests, covering unit, integration, mocking, and coverage workflows.
coveragealirezarezvani/claude-skills1.7K installsCoverage analysis that maps app surfaces against existing Playwright specs and ranks the gaps by business impact.
tdd-workflowaffaan-m/ecc15.4K installsStrict TDD cycle enforcing RED-GREEN-refactor with 80%+ coverage across unit, integration, and E2E tests.
test-quality-analysissecondsky/claude-skills481 installsPractical review guide that flags test smells such as overmocking, fragile selectors, flaky async code, and weak assertions.
test-gapsruvnet/ruflo755 installsDetects untested code paths and suggests test cases to write next, via CLI or the testgaps worker.