From lattice
Enforces test quality principles including AAA structure, one behavior per test, assertion quality, isolation, naming, and data management when generating or reviewing test code.
npx claudepluginhub techygarg/lattice --plugin latticeThis skill uses the workspace's default tool permissions.
Skill support project custom. Order:
Provides 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 framework-agnostic testing principles including test behavior over implementation, integration test preference, AAA pattern, and mocking boundaries. For writing, reviewing, or debugging tests.
Share bugs, ideas, or general feedback.
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.Defaults ship w/ skill. Work out-of-box. Override only when team have different standards.
STOP after gen each test. Check ALL before continue. If fail, fix. If ambiguous (see Ambiguity Signals), flag -- show options & reasoning.
After checklist, scan these. If find, fix before present.
Multiple valid outcomes. Present options, not choose silent.
Test purpose: describe behavior & fail when behavior break. Every choice serve this. Hard read, brittle refactor, slow run = not fulfill contract.
Bad test cost negative. Flaky train team ignore. Brittle slow dev. Pass when behavior broke = false confidence. Principles ensure tests assets, not liabilities.
Skill govern HOW write tests -- structure, isolation, asserts, naming. WHAT test driven by code implement & domain rules.
See ./references/defaults.md for AAA structure examples, assertion patterns, isolation techniques, naming conventions, test data builder patterns, and pyramid distribution guidance.