SkillsReviewed · mxyhi

TDD skill from ok-skills

TDD is an AI coding assistant skill for developers who want to write tests before code, but it requires agreement on test boundaries and puts refactoring in a separate review stage. It favors tests of observable behavior, independent expected results and one failing test followed by one minimal implementation at a time.

Researched 17 Nov 2026

In short.

TDD is a skill for developers using an AI coding assistant to write tests before implementation, but it requires agreed test boundaries and separate guidance for refactoring. It explains how to test public behavior, avoid assertions that repeat the implementation and mock external dependencies without mocking internal collaborators. The folder supplies instructions, examples and assistant display metadata; it does not establish compatibility with a particular host or demonstrate improvements in software quality.

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

Coverage includes the complete selected tdd folder at commit 3ae9eb922f9db7b66a5327529afd550d78d60fb0: SKILL.md, tests.md, mocking.md and agents/openai.yaml, plus the repository-level LICENSE outside the folder. Other repository content, the referenced codebase-design and code-review skills, and project-specific glossaries and architecture records are outside this evidence. No installation, assistant invocation, code execution or test execution was performed; compatibility and practical outcomes remain unassessed.

The overview

Identity

The resource is the tdd skill folder in mxyhi/ok-skills. Its main file declares the name tdd and describes use for features, bug fixes and integration tests developed through tests first. The assistant metadata gives it the display name TDD.

The selected source is [https://github.com/mxyhi/ok-skills/tree/main/tdd]. The documented snapshot contains SKILL.md, tests.md, mocking.md and agents/openai.yaml, with the repository-level LICENSE alongside the selected scope.

Assessment

This is a useful fit when a developer wants an assistant to make small changes through tests of externally visible behavior. Its strongest detail is the distinction between a meaningful test and one that merely checks internal calls or repeats the implementation's calculation.

Its usefulness depends on the chosen test boundaries and the assistant following the instructions. The files provide no evaluation results showing fewer defects, faster development or more reliable tests.

Users

The intended users are developers directing a coding assistant through feature work, bug fixes or integration testing. Beginners get concrete examples of observable behavior and independent expected values. Experienced developers get explicit rules about public interfaces, internal coupling, dependency injection and external mocks.

The approach requires developer participation before tests are written: the skill asks the user to confirm the interfaces under test and understand what each boundary catches and misses.

Capabilities

The skill guides an assistant to test public behavior, use expected results from an independent source and implement only enough code to satisfy the current failing test. It warns against private-method tests, internal call-count assertions, database inspection that bypasses the public interface and writing a whole batch of tests before implementation.

Its mocking guidance limits substitutes to system boundaries such as external APIs, time and randomness, with qualified allowances for databases and filesystems. It recommends passing dependencies into functions and exposing specific operations rather than a generic fetch interface.

Using it

Requirements

Use as an assistant skill requires a host that can load the instructions and make the companion files available. Applying the development cycle also requires project code and a way to execute its tests. Supported hosts, model versions, operating systems and test frameworks are not specified. The TypeScript examples do not establish a language requirement.

The instructions ask the assistant to read a project's GLOSSARY.md when present and respect relevant architecture decision records. They refer interface-design questions to a separate codebase-design skill and refactoring to code-review; neither referenced skill is included in this folder.

Mechanism

The skill calls a public testing boundary a seam: an interface through which behavior can be observed without inspecting internals. Before writing a test, the assistant is instructed to propose the seams, explain what each catches and misses, and obtain user confirmation.

Each implementation cycle then covers one seam, one failing test and one minimal implementation. Red means the test fails before the behavior is implemented; green means the implementation satisfies it. The skill rejects writing all tests first and explicitly moves refactoring into a separate review stage.

Setup

The supplied files contain no installation command or host-specific loading procedure. Preparation would involve making the tdd folder available through the chosen assistant's supported skill mechanism while preserving the relative paths to tests.md and mocking.md. The YAML file supplies display metadata, not a test runner or installation configuration.

Before applying the rules, identify the project's test command, agree the public interfaces to cover and establish how the separate review stage will work. Successful loading and execution in any particular assistant environment remain unassessed.

Example

The tests.md example gives calculateTotal two items priced at 10 and 5 and expects 15. It contrasts this with calculating the expected result through the same reduction used by the implementation. The literal 15 is an independently worked result, so the assertion can disagree with faulty code.

Applied to the documented cycle, the developer would first agree that calculateTotal is the public boundary, then add the failing example and implement enough behavior to satisfy it. This is an illustrative sequence; the supplied example has no execution result.

Assessment & evidence

Limitations

These are written instructions and examples, with no included test runner or enforcement mechanism. They do not establish that an assistant will follow the rules, that its tests will be sensitive to defects or that the selected boundaries cover a whole application.

There is a wording mismatch: the assistant metadata describes red-green-refactor, while SKILL.md explicitly excludes refactoring from the implementation loop. Developers expecting refactoring within every cycle need to resolve that difference and supply the separate review guidance.

Reasoning

The recommendations have a clear rationale: assertions made through public interfaces can remain valid when internals change, while independently derived expected values avoid reproducing the same mistake in both code and test. Passing external dependencies into functions also makes boundary substitutes easier to provide.

These are design arguments rather than measured outcomes. Restricting tests to agreed boundaries concentrates effort, but behavior outside those boundaries can remain unchecked. Likewise, a mocked external service cannot by itself establish that a real integration works.

Alternatives

The supplied material does not compare competing TDD skills or testing tools. A developer could use the same documents manually as a test-review checklist instead of loading them into an assistant; that is a suggested use of the material, not an evaluated alternative product.

The named codebase-design and code-review skills are presented as complements for interface design and refactoring. Their contents, availability and suitability are unknown from this folder.

Evidence

The source snapshot is commit 3ae9eb922f9db7b66a5327529afd550d78d60fb0. The main instructions are available at [https://raw.githubusercontent.com/mxyhi/ok-skills/3ae9eb922f9db7b66a5327529afd550d78d60fb0/tdd/SKILL.md]. The supplied manifest covers all four selected folder files and the repository LICENSE, with aggregate content checksum 1964433bfa2d60e9130f799228b53de79481fb42b2d29274bd22937d2b49c67d.

The evidence consists of instructions, illustrative code, display metadata and license text. It contains no execution logs, benchmark results, compatibility matrix or completed project outcomes.

Access & freshness

Costs

The repository's Apache License 2.0 grants no-charge, royalty-free rights under its terms. This establishes licensing permissions, not the total expense of using the skill.

The files give no assistant subscription prices, model usage charges, test infrastructure costs or time estimates. Operating cost is unknown and depends on the chosen assistant and project environment.

Rights

The repository-level LICENSE contains Apache License 2.0, which permits reproduction, modification and redistribution subject to its conditions. Redistribution requires a copy of the license, prominent notices in modified files, retention of applicable source notices and preservation of relevant NOTICE attribution if such a file accompanies the work.

The license does not grant general trademark rights and disclaims warranties. No separate NOTICE file appears in the supplied manifest. The license source is [https://raw.githubusercontent.com/mxyhi/ok-skills/3ae9eb922f9db7b66a5327529afd550d78d60fb0/LICENSE].

Freshness

The supplied snapshot was captured on 2026-11-17 at 04:04:24.303 UTC and is tied to commit 3ae9eb922f9db7b66a5327529afd550d78d60fb0. The main-branch address may change independently of that snapshot.

The files do not establish a release version, last substantive update date or maintenance schedule. Changes after the captured commit are unknown.

Actions

Consider this skill when you want an assistant to work through small changes with tests of public behavior and are willing to agree the testing scope. Before use, confirm how your assistant loads the folder and decide where refactoring belongs in your project workflow.

For an initial application, choose a small feature or bug fix with an observable result and an independently known expected value. Check that the test fails for the intended reason before implementation and passes afterward. Whether the skill produces useful tests in your environment remains unassessed.

Evidence for this report

LICENSEnotice · checked 2026-11-17
tdd/SKILL.mdselected · checked 2026-11-17
tdd/agents/openai.yamlselected · checked 2026-11-17
tdd/mocking.mdselected · checked 2026-11-17
tdd/tests.mdselected · checked 2026-11-17