Command Palette

Search for a command to run...

Назад к скиллам
скилл № 79295

Audit

Read-only: find tests that cannot fail (assertion-free, tautological, vacuous, mock-only, dead asserts, snapshot-only, change detectors, retry-masking…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Audit

Purpose

A test that cannot fail is a false coverage claim: it reports green whatever the code does. This skill runs a deterministic script detector over the suite. It does not execute tests or judge membership; it reports every test the rules catch, with a coverage denominator.

A second layer reads the runner config: a suite whose runner swallows a failure cannot fail whatever its bodies assert, so the detector reports that shape under the same rule ids, gate and findings file, with its own denominator of configs enumerated. It reads the Playwright config and, for rule-flaky-passes-suite alone, the retry settings of pytest (pytest-rerunfailures), Vitest and Jest.

Boundaries, each an incumbent this skill does not duplicate:

  • mutation-testing:audit proves dynamically that tests miss change: it executes mutants, costs real runtime, and judges survivors. This skill is the cheap static complement: AST-level detection of tests that cannot fail by construction.
  • check-discriminating-test-skips.sh (this marketplace repo's own CI gate) owns the fourth can't-fail shape, a skip vacating the only discriminating assertion of a case group, for bash *.test.sh. That rule is absent here: this skill owns assertions in those files, and its bash-harness findings are advisory (never gating --check without --strict).
  • The repair queue is out of scope: findings propose an assertion (repair, not pruning: deleting a useless test removes the false claim and the coverage together); applying repairs belongs to the remediation skills.

Rules

Rule ids are the qualified detector-findings form; thresholds are fixed per rule, and every finding states the fired condition in the run's own values.

Rule id Detects Tier Confidence Gates --check Gates --check --strict
testing/audit/rule-zero-assertion a runnable test body with no assertion token IMPORTANT high yes yes
testing/audit/rule-recomputed-expectation an equality whose actual and expected sides are the identical expression; a deliberate determinism check f(x) == f(x) still fires and is marked cant-fail-ok: determinism contract IMPORTANT high yes yes
testing/audit/rule-mock-only-oracle a mock-constructing test whose every assertion is a mock-interaction assertion IMPORTANT omitted no yes
testing/audit/rule-flaky-passes-suite a runner set to retry a failing test with nothing that fails the run on a retry-earned pass, so a test passing on a retry leaves the run green: a Playwright config with retries and failOnFlakyTests absent or literal false; a pytest config with --reruns, --force-reruns or reruns and no --fail-on-flaky in addopts; a Vitest config with retry (or retry.count) under a test key; a Jest jest.retryTimes(n) call. A literal 0 never fires IMPORTANT omitted no yes
testing/audit/rule-only-not-forbidden a Playwright config with forbidOnly absent or literal false, so a committed test.only shrinks the suite to one test IMPORTANT omitted no yes
testing/audit/rule-inert-assertion an assertion that never evaluates: an unawaited async matcher, a Python tuple assert or mock attribute, a bare .Should();, a constant C# oracle (Assert.True(true), Assert.NotNull(typeof(T)), or Equal, NotEqual or Same on two typeof operands, which can also be a constant fail), a bats run nothing checks IMPORTANT high yes yes
testing/audit/rule-constant-restatement a constant, or a literal the test bound, compared to a literal with no call before it SUGGESTION omitted report-only report-only
testing/audit/rule-source-text-read a tracked non-test source file read by a static path and searched as text SUGGESTION omitted report-only report-only
testing/audit/rule-conditional-assertion every assertion inside an if, a catch or a loop over a computed result, with no else and no length check; in C#, a bare return; before every assertion (one inside a catch ... when (...) guard is left alone) IMPORTANT omitted yes yes
testing/audit/rule-recomputed-derived an expected value rebuilt from the call's own arguments with an operator or aggregate (reduce, sum(, a + b); a property test (a marker such as fc.assert(, @given( or Prop.ForAll in its body or its decorator or attribute stack) and Playwright are exempt, while an example test in the same file is still judged SUGGESTION omitted report-only report-only
testing/audit/rule-snapshot-only every assertion is a snapshot call ("snapshot is the only oracle: review it as code"); an image comparison never counts SUGGESTION omitted report-only report-only
`testing/audit/rule-
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • adapters/bash-bats.yaml
  • adapters/bash-harness.yaml
  • adapters/cs-mstest.yaml
  • adapters/cs-nunit.yaml
  • adapters/cs-xunit.yaml
  • adapters/go-testing.yaml
  • adapters/js-jest.yaml
  • adapters/js-node-test.yaml
  • adapters/js-playwright.yaml
  • adapters/js-vitest.yaml
  • adapters/pwsh-pester.yaml
  • adapters/py-pytest.yaml
  • adapters/py-unittest.yaml
  • evals/.editorconfig
  • evals/judge-calibration/.editorconfig
  • evals/judge-calibration/calibration.md
  • evals/judge-calibration/cases/adv-1/cart.test.ts.fixture
  • evals/judge-calibration/cases/adv-2/test_cart.py.fixture
  • evals/judge-calibration/cases/adv-3/InvoiceTests.cs.fixture
  • evals/judge-calibration/cases/adv-4/add_test.go.fixture
  • evals/judge-calibration/cases/adv-5/Total.Tests.ps1.fixture
  • evals/judge-calibration/cases/adv-6/post.test.ts.fixture
  • evals/judge-calibration/cases/adv-7/retry.test.sh.fixture
  • evals/judge-calibration/cases/adv-8/cart.test.mjs.fixture
  • evals/judge-calibration/cases/seed-g10/weather.test.ts.fixture
  • evals/judge-calibration/cases/seed-g10/weather.ts.fixture
  • evals/judge-calibration/cases/seed-g7/user-service.test.ts.fixture
  • evals/judge-calibration/cases/seed-g7/user-service.ts.fixture
  • evals/judge-calibration/cases/seed-m2/quote.test.ts.fixture
  • evals/judge-calibration/cases/seed-m2/quote.ts.fixture
  • evals/judge-calibration/cases/seed-m2/tax.ts.fixture
  • evals/judge-calibration/cases/seed-m3/cart.test.ts.fixture
  • evals/judge-calibration/cases/seed-m3/cart.ts.fixture
  • evals/judge-calibration/cases/seed-m5/job-queue.test.ts.fixture
  • evals/judge-calibration/cases/seed-m5/job-queue.ts.fixture
  • evals/judge-calibration/cases/seed-m6/checkout.test.ts.fixture
  • evals/judge-calibration/cases/seed-m7/create-user.test.ts.fixture
  • evals/judge-calibration/cases/seed-s3/receipt.test.ts.fixture
  • evals/judge-calibration/cases/seed-s3/receipt.ts.fixture
  • evals/judge-calibration/cases/seed-s5/config.test.ts.fixture

FAQ

Что делает скилл Audit?

Read-only: find tests that cannot fail (assertion-free, tautological, vacuous, mock-only, dead asserts, snapshot-only, change detectors, retry-masking configs, test.only). JS/TS, Python, C#, Bash, PowerShell, Go. Use when: 'find tests that prove nothing', 'audit test quality', can't-fail CI gate (--check, --strict), or --persist-findings. Load it to judge any test, even a pasted one.

Как установить скилл Audit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Audit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Audit с