CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

tdd-red-green-refactor

Enforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js. Use this whenever creating new features, fixing bugs, or migrating logic to ensure high-quality, verifiable implementations.

Quality

74%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/tdd/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

66%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers a crystal-clear TDD sequence with genuine validation checkpoints and a complete runnable Vitest example, but it spends most of its length re-explaining the standard Red-Green-Refactor cycle that Claude already knows. The custom operational rules (no horizontal splurging, backpressure, test integrity) are the real value and would be stronger if the generic TDD tutorial were cut back to make room for concrete details like the actual test-run command.

Suggestions

Cut the re-explanation of what Red-Green-Refactor is (each phase's numbered sub-steps and lines like 'the transition from Red to Green is the Proof of Work') — Claude already knows TDD; keep only the skill-specific constraints in Core Operational Rules.

Add the actual commands for the checkpoints, e.g. 'Red: `npx vitest run` (expect failure)' and 'Green: `npx vitest run` (all pass)', so the validation steps are executable rather than descriptive.

Replace the meta opener 'This skill implements a structural framework for AI-assisted programming...' with a one-line statement of the binding rule, since it adds no actionable guidance.

DimensionReasoningScore

Conciseness

The three-phase cycle re-teaches standard TDD concepts Claude already knows ('Write One Test: Create a single test case... for the next small piece of behavior', 'The transition from Red to Green is the "Proof of Work" for the developer'), and the opener 'This skill implements a structural framework for AI-assisted programming...' is pure padding. This matches 'noticeably verbose; several unnecessary explanations or padded sections' rather than 3, since most of the core explanation is redundant; only the operational rules add non-obvious value.

2 / 5

Actionability

The Example Workflow gives complete, runnable TypeScript/Vitest code for all three phases, and the failure-verification check ('ReferenceError: add is not defined... not a configuration error') is concrete. It stops short of 5 because no test-runner command is ever given — 'Execute & Fail: Run the test' lacks e.g. `npx vitest run math.test.ts` — and the example only covers the trivial happy path.

4 / 5

Workflow Clarity

The sequence Red -> verify-failure-cause -> Green -> all-tests-pass -> Refactor -> rerun-and-revert is explicit, with validation checkpoints at every phase ('It must fail', 'All tests must be Green', 'If they turn Red, revert the change immediately') and a feedback loop for error recovery. This matches the top anchor: clear sequence with explicit validation steps and recovery loops.

5 / 5

Progressive Disclosure

The body (~88 lines) is cleanly sectioned (Three-Phase Cycle, Core Operational Rules, Example Workflow) with no monolithic wall and no buried references, and no bundle files exist to misplace. It scores 4 rather than 5 because it slightly exceeds the under-50-lines simple-skill threshold and the known-concept exposition that could be trimmed or split is inlined in the main flow.

4 / 5

Total

15

/

20

Passed

Description

70%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A solid description with correct third-person voice and an explicit 'Use when' clause covering natural trigger scenarios. Its main weakness is that 'Enforces a disciplined... workflow' tells the reader the methodology's name without listing the concrete actions involved, keeping specificity and completeness below top marks.

Suggestions

Enumerate concrete actions in the what-clause, e.g., 'Write a failing test first, implement the minimal code to pass, then refactor safely. Enforces Red-Green-Refactor (TDD) in TypeScript/Node.js.'

Add natural trigger synonyms such as 'unit tests', 'test-driven development', or 'writing tests first' so the description matches how users actually phrase the request.

DimensionReasoningScore

Specificity

The description names the domain ('Red-Green-Refactor (TDD) workflow in TypeScript/Node.js') and one action ('Enforces... workflow'), but never enumerates the concrete actions the skill performs (e.g., write a failing test, implement minimal code, refactor). It matches the anchor 'names domain and 1-2 concrete actions, but not comprehensive' rather than 4, which requires several specific actions.

3 / 5

Completeness

Both parts are present: what ('Enforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js') and an explicit when ('Use this whenever creating new features, fixing bugs, or migrating logic'). It does not reach 5 because the 'what' is a single abstract claim ('enforces a workflow') rather than concrete trigger-anchored actions, leaving it a step below the anchor-5 example's fully explicit what+when pairing.

4 / 5

Trigger Term Quality

'creating new features, fixing bugs, or migrating logic' plus 'TypeScript/Node.js', 'TDD', and 'Red-Green-Refactor' give good natural keyword coverage users would actually say. It falls short of 5 because common synonyms like 'unit tests', 'test-driven development', 'writing tests first', or file cues like '.test.ts' are missing.

4 / 5

Distinctiveness Conflict Risk

The TDD/TypeScript niche is clear and distinguishable, but the trigger phrases 'creating new features' and 'fixing bugs' are broad and could overlap with general coding/implementation skills. This matches 'mostly distinct; minor overlap risk with closely related skills' rather than 5's 'clear niche with distinct triggers'.

4 / 5

Total

15

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

google-labs-code/stitch-sdk

Path

.agents/skills/tdd/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.