From lattice
Enforces test quality principles including Arrange-Act-Assert structure, single behavior per test, and meaningful naming when writing or reviewing test code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:test-qualityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill support project custom. Order:
Skill support project custom. Order:
.lattice/config.yaml in repo rootpaths.test_quality for custom doc pathmode:
mode: override (or no mode): Custom doc take full control. Use instead default. Must be complete -- is only reference.mode: overlay: Read ./references/defaults.md first, then apply custom doc on top. Custom sections replace match sections (by heading). New sections add after../references/defaults.mdpaths.language_idioms exist in config, read "Testing Patterns" section and adapt §5 (Test Naming), §4 (Test Isolation), §6 (Test Data Builders) to language test framework idioms. Language idioms take precedence over pseudocode defaults.STOP after gen each test. Check ALL before continue. If fail, fix. If ambiguous (see Ambiguity Signals), flag -- show options & reasoning.
Project-specific checks: if loaded doc contains a validation checklist section, apply those after base checklist.
After checklist, scan these. If find, fix before present.
Fire when: (1) completing all tests for a class — new or existing. (2) adding or editing any test in an existing class.
STOP before present. Per-test checks verify individual quality. This review verifies the test suite covers the class contract.
deleteUser has 1 test (happy path only) — does it have error cases?"Run steps 3–5 only, scoped to the changed test:
Multiple valid outcomes. Present options, not choose silent.
Treat test files like production classes:
Refactoring opportunities to surface proactively:
See ./references/defaults.md for AAA structure examples, assertion patterns, isolation techniques, naming conventions, test data builder patterns, and pyramid distribution guidance.
npx claudepluginhub techygarg/lattice --plugin latticeProvides a checklist for writing and reviewing tests: naming tests/files, designing data/fixtures/mocks, choosing assertions. Use for unit/integration/E2E tests.
Guides effective test writing with AAA structure, testing pyramid, mock boundaries. Debugs flaky/brittle tests, chooses unit/integration/E2E boundaries.
Provides stack-agnostic testing strategies, the testing pyramid, test design heuristics, and patterns for fixing flaky tests and applying TDD.