SkillsReviewed · techygarg

Lattice Test Quality

Lattice Test Quality is a skill for developers using AI assistants to write or review tests, but its strict rules and inconsistent examples need human judgment. It supplies configurable standards for test structure, assertions, isolation, naming and coverage review.

Researched 17 Nov 2026

In short.

Lattice Test Quality is a configurable skill for developers using AI coding assistants, with detailed testing guidance but conflicting rules and a flawed reference example. It combines per-test checklists, anti-pattern detection and class-level behavior coverage review, with optional project standards and language-specific adaptations. The documentation contains a conflict over try/finally and an order-builder example whose listed items do not match its expected total. Nothing was executed; assistant compatibility, enforcement reliability, quality improvements and operating costs are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The source scope is the complete supplied skills/test-quality folder at commit a772470df20aebdbfd9fa32c435901a876a750f0: SKILL.md and references/defaults.md, together with the repository-root LICENSE notice. Other Lattice skills, host integrations, project configuration files and custom standards are outside this scope. The analysis covers the supplied text and its internal consistency. Nothing was installed, loaded or executed; runtime behavior, integration reliability, generated-test quality and operating costs remain unassessed.

The overview

Identity

Test Quality is an instruction-based skill in the techygarg/lattice repository. Its selected folder contains SKILL.md and references/defaults.md. It guides an AI assistant's test-writing and review decisions; the supplied folder does not provide an executable test runner.

The original resource is available at [https://github.com/techygarg/lattice/tree/main/skills/test-quality]. The source snapshot described here is commit a772470df20aebdbfd9fa32c435901a876a750f0.

Assessment

The resource offers a concrete basis for consistent test review: it asks whether assertions catch regressions, mutable state is isolated, names explain behavior and mocks sit at architectural boundaries. Project-specific standards can replace or extend these defaults.

Its usefulness depends on an assistant interpreting the guidance sensibly. Some rules are absolute despite context-dependent testing choices, and the reference examples contain inconsistencies. The documentation establishes the intended process, but supplies no measured evidence that it improves generated tests.

Users

Beginners can use the contrasting examples to understand Arrange-Act-Assert: prepare inputs, perform the operation and check the result. The defaults explain why vague assertions, shared state and hidden dependencies make tests harder to trust.

Experienced developers and teams may find the configurable conventions and class-level coverage review more useful. Teams with established mocking practices or integration-test requirements should adapt the defaults before relying on the skill's blocking rules.

Capabilities

The skill specifies checks for test structure, one behavior per test, precise assertions, isolation, meaningful names, test data, mock boundaries and maintainable test-file organization. It also scans for duplication, implementation-detail assertions, conditional test logic and slow unit tests caused by real I/O.

Its class-level review maps tests to public behaviors, identifies uncovered error paths and flags repeated observable outcomes. The defaults add database, filesystem, clock and network isolation examples, plus guidance on choosing unit, integration and end-to-end tests. These are prescribed review activities, not demonstrated automated capabilities.

Using it

Requirements

Following the complete procedure requires an assistant that can read the skill, its reference document and relevant project files. Class-level review needs the production class or an enumeration of its behaviors. Custom standards require access to the configured project documents.

The selected files specify no supported-host list, minimum model version, runtime dependency or test-framework version. The header says code-forge, refactor-safely and bug-fix load the skill automatically, but those components are outside the supplied folder, so their integration behavior is unknown.

Mechanism

Configuration starts with .lattice/config.yaml in the project root. A paths.test_quality document can replace all defaults with mode: override, or modify them with mode: overlay. Overlay sections replace defaults with exactly matching headings; new sections append. Missing custom documents trigger a notification and fallback to the bundled defaults.

A configured paths.language_idioms document can adapt naming, isolation and data-builder guidance through its Testing Patterns section. The skill then calls for checks after each generated test and a broader review when a class's tests are complete or edited. Full reviews block on uncovered behaviors and error paths unless the user accepts the gaps.

Setup

Preserve the relative layout of SKILL.md and references/defaults.md when making the folder available to an assistant, because the skill refers to ./references/defaults.md. Installation and activation depend on the host; the selected files provide no supported installation command.

Project customization is optional. Configure paths.test_quality for team standards and paths.language_idioms for language-specific testing patterns. An override document must be complete because it becomes the sole standards reference; an overlay retains unmatched default sections.

Example

The defaults illustrate a registration test that both creates a user and rejects a duplicate email. The proposed revision separates those behaviors: one test checks successful creation, while another prepares an existing user and checks duplicate rejection.

This demonstrates the intended distinction between one behavior and one assertion. Several assertions about the same created user are allowed. The example is pseudocode illustrating a review decision; no execution result or framework compatibility is established.

Assessment & evidence

Limitations

The anti-pattern scan rejects try statements inside tests, while the default database-isolation example uses try/finally to guarantee rollback. A team needs to resolve that conflict, for example by documenting an exception or moving cleanup into framework fixtures.

The order-builder example starts with a default item worth 10 and appends items worth 50 and 15, yet expects a total of 65. As written, the listed items sum to 75; clearing the default item would reconcile the example. This is a static reading of the pseudocode, not an executed test result.

The checklists do not establish that tests compile, pass or detect real defects. Coverage decisions also depend on complete project context and the assistant's judgment.

Reasoning

The strongest rationale for using this skill is consistency: specific assertions, visible setup and isolated state give reviewers concrete questions to ask about each test. Its examples make those questions accessible without requiring one programming language.

The class-level review adds a useful distinction between well-written individual tests and coverage of a class's contract. However, a behavior inventory can omit requirements, and checklist compliance cannot prove correctness. These are limits of the approach, rather than measured failure rates.

Alternatives

A lighter option is to use references/defaults.md directly as a human review guide. That provides the principles and examples without adopting SKILL.md's mandatory pauses and class-level blocking procedure.

Teams with existing standards can use an overlay for targeted changes or an override for full control. No competing skills, tools or host integrations are documented in the supplied material, so comparative accuracy, speed and cost are unknown.

Evidence

The primary sources are the skill instructions at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/skills/test-quality/SKILL.md] and the bundled examples at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/skills/test-quality/references/defaults.md]. The root LICENSE supplies the permission terms.

These files establish the documented rules, configuration behavior and illustrative examples. They contain no execution logs, benchmarks or measured outcomes. The other Lattice skills named as automatic callers are outside this source scope.

Access & freshness

Costs

The MIT notice grants software permissions free of charge. That does not establish the cost of using an AI assistant to apply the skill.

No assistant pricing, model usage, token consumption or operating-cost measurements are supplied. Any subscription or API charges depend on the host chosen, so total operating cost is unknown.

Rights

The repository's captured MIT License names Rahul Garg as the 2026 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The software is supplied without warranty, with a liability disclaimer. Copies of the skill and its reference document should retain the applicable license notice. The license is available at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/LICENSE].

Freshness

The supplied snapshot identifies commit a772470df20aebdbfd9fa32c435901a876a750f0 and capture time 2026-11-17T06:12:27.583Z. The main-branch resource address may change independently of these fixed source files.

The selected documents provide no release version or dated change history. Later fixes, update cadence and compatibility with subsequent host changes are unknown.

Actions

Before adopting the skill, confirm how the intended assistant loads it and resolves referenced files. Resolve the try/finally conflict and correct the seeded-item builder example in any local adaptation. Preserve the MIT notice when copying or redistributing the files.

Start with a small class whose behaviors and error paths are known. Compare the assistant's review with those requirements, then run the project's normal tests separately. Judge adoption by the quality of the findings and resulting tests; no such trial or outcome is established here.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/test-quality/SKILL.mdselected · checked 2026-11-17
skills/test-quality/references/defaults.mdselected · checked 2026-11-17