SkillsReviewed · dzhng

write-tests

write-tests is a skill for developers and coding assistants improving software tests, but it supplies guidance rather than runnable tests. It emphasizes observable behavior, one-test-at-a-time development, controlled mocks and deliberate verification that regression tests detect the intended fault.

Researched 17 Nov 2026

In short.

write-tests is a skill for developers and coding assistants writing software tests, but applying it requires a project-specific test runner and isolated environment. It favors system-level regression coverage, observable outcomes and verified failure before accepting a passing test. Its practical checklists cover configuration dependencies, stochastic results, visual checks and protecting a developer's desktop and personal state. No installation or tests were executed, so compatibility, effectiveness and operating costs remain unassessed.

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

The selected scope is skills/implement/write-tests in dzhng/skills at revision c363ed386ec75756d6cbd0a3d0d9e8d4427f3a5a. The supplied manifest marks this scope complete and lists one selected file, SKILL.md. The repository-root LICENSE is included as a related notice outside that folder. The linked audit-tests skill and all other repository content are excluded. Installation, assistant behavior, test execution, compatibility, runtime and effectiveness were not assessed.

The overview

Identity

write-tests is an instruction-based assistant skill in dzhng/skills at skills/implement/write-tests/SKILL.md. Its stated uses include adding tests, writing regression coverage, fixing brittle or flaky tests, reviewing test changes and investigating failures after behavior-preserving changes.

The original repository location is [https://github.com/dzhng/skills/tree/main/skills/implement/write-tests]. The assessed source is pinned to commit c363ed386ec75756d6cbd0a3d0d9e8d4427f3a5a.

Assessment

The strongest fit is a project where tests fail after harmless refactors or pass despite broken application behavior. The skill gives concrete ways to examine that problem: assert public outcomes, isolate changing configuration and confirm that a regression test fails when the original defect is reintroduced.

Its guidance is specific enough to use as a test-review checklist. It does not establish that following the checklist reduces defects, maintenance effort or flakiness; no execution results or comparative measurements are provided.

Users

Developers maintaining application tests and teams directing coding assistants are the primary audience. Experienced developers get detailed rules for mock boundaries, experimental controls, production-like harness wiring and regression verification.

Beginners get a clear principle: test what users or other systems can observe. They will still need help choosing a framework, writing fixtures and operating a runner because the skill provides no framework-specific tutorial.

Capabilities

The instructions cover assertions on return values, exit codes, persisted data, HTTP responses and rendered output. They favor end-to-end or system-level regression tests while allowing isolated unit tests for specific, complex business logic when faster feedback materially helps development.

Other guidance addresses configuration seams, minimal scenarios, canonical values in normalization tests, distributions for noisy outcomes, visual checks and controlled comparisons. Desktop-related rules call for offscreen capture, scratch state and cleanup of processes and temporary files.

Using it

Requirements

Practical use requires an assistant that can consume the instructions, or a developer applying them manually. The project must supply its own test framework, runner, expected behavior and appropriate fixtures. Automated application also needs access to the relevant code and test commands.

No supported assistant list, model version, operating-system requirement or dependency versions are specified. The skill links to a separate audit-tests skill for coverage decisions; that linked file is outside the available source.

Mechanism

The proposed loop handles one test at a time: define the expected behavior, observe a failure against unfixed code, make the implementation pass and then choose the next test. Focused runs support iteration, with exit-code checks and a full-suite run before handoff.

For regression coverage, the skill requires deliberately restoring the relevant fault, confirming failure for the expected reason, restoring the fix and confirming success. It also asks developers to verify that the code actually changed during this exercise. These are instructions for an assistant to follow; the file supplies no enforcement mechanism.

Setup

Obtain the pinned SKILL.md and use the target assistant's documented method for loading local skills or instructions. This source supplies no installation command or host-specific registration procedure, so exact placement and activation remain unknown.

Before applying the workflow, identify a focused test command, the full-suite command and scratch locations for affected state. The relative link to skills/review/audit-tests/SKILL.md requires that separate file if its additional coverage guidance is wanted.

Example

For illustration, suppose a contact API promises to trim and lowercase email addresses and store duplicates only once. A test following this skill could submit two differently formatted copies, then inspect the stored result and assert both one record and the canonical address alice@example.com.

If the defect was missing normalization, temporarily remove that behavior in an isolated development copy and check that the canonical-value assertion fails. Restore it and check for success. This is a hypothetical application of the guidance; no such test was executed.

Assessment & evidence

Limitations

The skill provides no runnable harness, framework integration or worked test implementation. It recommends distributions for noisy behavior but specifies no general sample-size rule, statistical method or acceptance threshold.

Several rules require contextual judgment. Removing type-shape tests assumes the relevant guarantee is enforced by the compiler; external data may still need runtime validation. Removing copy assertions may be inappropriate when exact text is part of a product contract. Widening noisy thresholds also needs a justified tolerance to avoid concealing regressions. These are limitations inferred from applying the rules, not measured failures.

Assistant adherence, installation compatibility and effects on reliability or development speed remain unassessed.

Reasoning

The central rationale is that externally observable assertions can survive internal rewrites, while assertions tied to internal calls or live configuration may fail without a behavioral defect. The normalization guidance illustrates the reverse problem: a correct record count can conceal an incorrect stored value.

Confirming an expected failure provides stronger evidence about a regression test's sensitivity than a passing run alone. It still does not establish complete coverage or overall application correctness. The document's goal of tests failing only for broken behavior should be understood as a design objective.

Alternatives

For specific, complex business logic, the skill itself offers isolated unit testing as an alternative when fast feedback materially helps. Developers can also apply its review checklist manually, without loading it into an assistant.

For deciding where coverage belongs or which existing tests can be removed, the document points to audit-tests. Its contents were not provided, so its quality and requirements are unknown. The source supplies no comparison with competing skills or testing frameworks.

Evidence

The available material comprises the complete selected SKILL.md and the repository-root LICENSE. The pinned skill source is [https://raw.githubusercontent.com/dzhng/skills/c363ed386ec75756d6cbd0a3d0d9e8d4427f3a5a/skills/implement/write-tests/SKILL.md]. Its recorded SHA-256 is 895031a147731b993e366f64a680e516c2884a0213746c5b95e3e601818664f7.

These files establish the written guidance and redistribution terms. They do not establish successful installation, assistant compliance, working tests, performance improvements or compatibility with a particular project. Nothing was executed.

Access & freshness

Costs

No price, subscription requirement, token budget or expected execution cost is stated. Assistant usage, CI infrastructure, visual tooling and test runtime depend on the chosen environment; their costs are unknown. The source provides no measurements of time saved or additional test-running effort.

Rights

The repository-root notice is the MIT License and names David Zhang as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The notice also disclaims warranties and limits liability. It is available at [https://raw.githubusercontent.com/dzhng/skills/c363ed386ec75756d6cbd0a3d0d9e8d4427f3a5a/LICENSE]. Redistribution of the captured skill should retain this notice.

Freshness

The source snapshot was captured on 17 November 2026 at 04:21:33.376 UTC and identifies commit c363ed386ec75756d6cbd0a3d0d9e8d4427f3a5a. The findings apply to that snapshot.

The commit date, maintenance cadence and changes after this revision are unknown. The 2026 copyright notice does not establish when the skill was last updated.

Actions

To evaluate fit, first confirm how your assistant loads skills and identify one regression with a clear expected outcome. Apply the guidance in an isolated development environment, using scratch state for anything the tests write.

Check that the resulting test fails for the intended defect, passes after restoration and works with the surrounding suite. Review any proposed assertion deletion or threshold change against the actual product contract. This would establish project-specific evidence that the supplied text alone cannot provide.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/implement/write-tests/SKILL.mdselected · checked 2026-11-17