inceptyon-labs/tenet-skills/tenet-testing

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Audits test coverage, critical-path tests, flaky markers, and missing test categories.

Install

npx vskill@latest install inceptyon-labs/tenet-skills/tenet-testing

SKILL.md

The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-testing.

Tenet Testing — Test Coverage & Quality Auditor

"Untested code is broken code you haven't noticed yet."

Evaluates the health of a project's test suite across six axes: coverage percentage, mutation testing evidence, test-to-source file ratio, critical-path test presence, flaky test markers, and missing test categories. Consumes coverage and mutation reports from the toolchain when available and falls back to structural analysis when not.

Purpose

Test coverage percentages alone are misleading — a project can have 90% coverage while missing tests for authentication, payment processing, and data mutations. This skill evaluates not just how much is tested, but whether the right things are tested, whether the tests themselves are healthy (no committed .only or .skip), and whether the test strategy covers all necessary categories (unit, integration, E2E).

Calibration — read first

Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).

A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.

Language Support Matrix

yaml
support:
native: [javascript, typescript, python, go, java, ruby, rust, c#, kotlin, swift]
heuristic: [all others]
note: "Native support means the skill understands the test framework conventions (file naming, test runner config, assertion patterns). Heuristic support falls back to generic file-pattern matching."

Framework Recognition

LanguageTest Frameworks Recognized
JavaScript/TypeScriptJest, Vitest, Mocha, AVA, Tap, Node test runner, Playwright, Cypress, Testing Library
Pythonpytest, unittest, nose2, Robot Framework
Gotesting package, testify, gomega, ginkgo
JavaJUnit 4/5, TestNG, Mockito, AssertJ, Cucumber
RubyRSpec, Minitest, Cucumber
Rustbuilt-in #[test], #[cfg(test)]
C#xUnit, NUnit, MSTest
KotlinJUnit 5, Kotest, MockK
SwiftXCTest, Quick/Nimble

Toolchain Inputs

Primary: .healthcheck/toolchain/coverage.json

If the toolchain produced a coverage report (parsed from lcov, cobertura, or Go cover), consume it:

json
{
"tool": "coverage",
"format": "lcov",
"source_path": "coverage/lcov.info",
"summary": {
"lines_total": 4820,
"lines_covered": 3614,
"line_coverage_pct": 74.98,
"branches_total": 1240,
"branches_covered": 812,
"branch_coverage_pct": 65.48,
"functions_total": 380,
"functions_covered": 312,
"function_coverage_pct": 82.10
},
"per_file": [ ... ]
}

If this file does not exist, the skill attempts to locate coverage reports directly:

bash
# Search for coverage reports in common locations
find . -maxdepth 4 \( \
-name "lcov.info" -o \
-name "cobertura.xml" -o \
-name "coverage.xml" -o \
-name "jacoco.xml" -o \
-name "coverage.json" -o \
-name "cover.out" -o \
-name ".coverage" -o \
-name "coverage-final.json" \
\) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null

If no coverage report exists at all, log that coverage data is unavailable and use structural analysis only. Do NOT set coverage-related findings to critical just because no report exists — the absence of a coverage report is itself a finding.

Secondary: .healthcheck/toolchain/mutation-testing.json

If the toolchain discovered mutation testing output from Muter, Stryker, PIT, mutmut, Infection, or another supported provider, consume it as a test-quality signal:

json
{
"tool": "mutation-testing",
"provider": "muter",
"source_path": ".healthcheck/mutation/muter.json",
"scope": "changed_files",
"summary": {
"mutation_score_pct": 74.2,
"mutants_total": 132,
"mutants_killed": 98,
"mutants_survived": 28,
"mutants_timed_out": 6,
"mutants_equivalent": 0
},
"survivors_by_file": [
{ "file": "Sources/App/AuthService.swift", "survived": 8, "total": 21 }
]
}

Mutation testing is report ingestion only. This skill does not run Muter or any mutation engine; those runs belong in the target project's CI/local tooling because they are slow, language-specific, and often require simulator or build-system setup.

Tertiary: .healthcheck/toolchain/language-census.json

Used to determine the primary language and calibrate framework expectations.

Configuration

Read .healthcheck.toml and apply optional mutation settings:

toml
[testing.mutation]
# off | informational | bonus
mode = "informational"
minimum_score = 70
excellent_score = 85
bonus_points = 2
scope = "changed_files"
report_paths = [
".healthcheck/mutation/mutation-testing.json",
".healthcheck/mutation/muter.json",
"mutation-report.json"
]

Modes:

  • off — ignore mutation testing reports entirely.
  • informational — Phase 1 behavior. Parse and display mutation results, emit actionable info findings for weak surviving mutants, but do not alter the testing score.
  • bonus — Phase 2 behavior. If a recent valid mutation report exists and mutation_score_pct >= minimum_score, add bonus_points to the testing score after normal finding deductions, capped at 100. Missing mutation data and low mutation scores never subtract points.

Procedure

Step 0: Detect Test Framework and Configuration

Identify the project's test infrastructure:

bash
# JavaScript/TypeScript
[ -f jest.config.js ] || [ -f jest.config.ts ] || [ -f jest.config.mjs ] && echo "jest"
[ -f vitest.config.js ] || [ -f vitest.config.ts ] && echo "vitest"
[ -f .mocharc.yml ] || [ -f .mocharc.json ] || [ -f .mocharc.js ] && echo "mocha"
[ -f cypress.config.js ] || [ -f cypress.config.ts ] && echo "cypress"
[ -f playwright.config.js ] || [ -f playwright.config.ts ] && echo "playwright"
grep -q '"test"' package.json 2>/dev/null && echo "npm-test-script"
# Python
[ -f pytest.ini ] || [ -f pyproject.toml ] && grep -q "pytest" pyproject.toml 2>/dev/null && echo "pytest"
[ -f setup.cfg ] && grep -q "tool:pytest" setup.cfg 2>/dev/null && echo "pytest"
[ -f tox.ini ] && echo "tox"
# Go
# Go uses built-in testing — check for _test.go files
git ls-files | grep -q '_test\.go$' && echo "go-test"
# Java
[ -f pom.xml ] && grep -q "junit" pom.xml 2>/dev/null && echo "junit"
[ -f build.gradle ] || [ -f build.gradle.kts ] && echo "gradle-test"
# Ruby
[ -f .rspec ] || [ -d spec ] && echo "rspec"

Record detected frameworks in metrics.

Step 1: Parse Coverage Data

If .healthcheck/toolchain/coverage.json exists, read it directly.

If not, attempt to parse coverage reports found on disk:

lcov format:

bash
# Extract summary from lcov.info
grep -E '^(LF|LH|BRF|BRH):' coverage/lcov.info | awk -F: '{
if ($1 == "LF") lines_total += $2
if ($1 == "LH") lines_covered += $2
if ($1 == "BRF") branches_total += $2
if ($1 == "BRH") branches_covered += $2
}'

Cobertura XML format:

bash
# Extract line-rate and branch-rate attributes from the root element
grep -oP '(line|branch)-rate="[0-9.]+"' coverage.xml

Go cover.out format:

bash
go tool cover -func=cover.out | tail -1

Coverage findings:

Coverage LevelSeverity
No coverage report existsmajor (one finding: "No test coverage data available")
Line coverage < 30%major
Line coverage 30-50%minor
Line coverage 50-70%info (acceptable but improvable)
Line coverage 70-90%no finding (healthy)
Line coverage > 90%no finding (excellent)
Branch coverage < 40% when line coverage > 70%minor (tests hit lines but miss branches)

Per-file coverage analysis (if per-file data available):

  • Files with 0% coverage in src/ (non-test, non-config) → minor per file (cap at 10 findings)
  • Critical-path files with < 50% coverage → major (see Step 3 for critical-path detection)
Step 1b: Parse Mutation Testing Data

If [testing.mutation].mode = "off", skip this step.

Read .healthcheck/toolchain/mutation-testing.json if present. If it does not exist, search the configured report_paths and common report names:

bash
find . -maxdepth 5 \( \
-name "mutation-testing.json" -o \
-name "mutation-report.json" -o \
-name "muter.json" -o \
-name "muter-output.json" -o \
-name "stryker.json" -o \
-name "pitest.xml" \
\) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null

Normalize recognized reports into these metrics:

  • mutation_available
  • mutation_provider
  • mutation_report_path
  • mutation_scope
  • mutation_score_pct
  • mutation_rating
  • mutation_mutants_total
  • mutation_mutants_killed
  • mutation_mutants_survived
  • mutation_mutants_timed_out
  • mutation_mutants_equivalent
  • mutation_worst_files
  • mutation_scoring_mode
  • mutation_bonus_applied

These exact mutation_* keys drive the dashboard's Mutation Testing panel. Do not emit only legacy placeholders such as mutation_testing_configured or mutations_applied without also filling the standardized fields above.

Rating bands:

Mutation ScoreRating
>= excellent_scoreexcellent
>= minimum_scoregood
50 - (minimum_score - 0.01)weak
< 50poor

Findings:

  • No mutation report found in informational or bonus mode → optional info finding: "Mutation testing is not configured". This is actionable, but do not emit it if the project has no meaningful test suite yet; the no-tests findings already cover the larger problem.
  • Mutation report exists with surviving mutants → info finding: "Surviving mutants indicate weak assertions". Include the worst files and survivor counts.
  • Mutation report is stale, malformed, or missing totals → info finding: "Mutation testing report cannot be trusted".

Do not emit minor, major, or critical findings for mutation score in Phase 1 or Phase 2. Mutation data is an informational signal plus an opt-in confidence bonus only.

Step 2: Compute Test-to-Source File Ratio

Count test files and source files:

bash
# Test file patterns per language
# JS/TS: *.test.ts, *.spec.ts, *.test.js, *.spec.js, __tests__/**
# Python: test_*.py, *_test.py, tests/**/*.py
# Go: *_test.go
# Java: *Test.java, *Tests.java, *Spec.java (in src/test/)
# Ruby: *_spec.rb (in spec/), *_test.rb (in test/)
# Rust: #[cfg(test)] modules, tests/ directory
# C#: *Tests.cs, *Test.cs (in *.Tests project)
TEST_FILES=$(git ls-files | grep -c -E \
'\.(test|spec)\.(ts|tsx|js|jsx|mjs)$|__tests__/.*\.(ts|tsx|js|jsx)$|test_.*\.py$|.*_test\.py$|tests/.*\.py$|_test\.go$|Test\.java$|Tests\.java$|_spec\.rb$|_test\.rb$|Tests?\.cs$' \
2>/dev/null || echo 0)
SOURCE_FILES=$(git ls-files | grep -c -E \
'\.(ts|tsx|js|jsx|py|go|java|rb|rs|cs)$' \
2>/dev/null || echo 0)
# Exclude test files from source count
SOURCE_FILES=$((SOURCE_FILES - TEST_FILES))

Compute ratio: test_files / source_files

RatioSeverity
0 (no test files at all)critical
Entire app/package directory (>10 source files) with zero test filescritical per directory — in monorepos, each app layer without any tests is its own critical finding
< 0.1 (fewer than 1 test file per 10 source files)critical (near-zero coverage)
0.1 - 0.2major
0.2 - 0.5minor
0.5 - 1.0no finding (healthy)
> 1.0no finding (thorough)
Step 3: Check for Critical-Path Tests

Identify critical-path modules and verify they have corresponding test files:

Critical-path detection heuristics:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-testing/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-testing)

Something wrong with this skill or its page? Tell us.