Pular para o conteúdo
Kitbay
Skill

test-audit

MITAtualizado em 11 de nov. de 2026394.329Estrelas no GitHub

A maintainer skill in the OpenClaw repository for writing, changing, reviewing and bulk-auditing tests.

O que a skill ensina

A maintainer skill in the OpenClaw repository for writing, changing, reviewing and bulk-auditing tests. Every new or changed test must answer four questions: what behaviour it protects, which realistic regression would break it, why existing tests miss that, and whether it depends on a hook with no production caller. Regression tests must fail before the fix and pass after it, and one test at the owning layer covers a bug. A list of rejected patterns includes self-comparisons, assertions on implementation details, duplicated contracts, expected values produced by the code under test and mocks that supply the behaviour being checked. Audits delete low-value tests together with test-only production code, and report what proof remains.

O que faz

  • Gate new tests with four questions
  • Reject low-value test patterns
  • Remove test-only production seams
  • Report retained contracts after an audit