CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

tdd-workflow

Test-driven development workflow: write a failing test first, watch it fail, implement the smallest change to green, then refactor with 80%+ coverage across unit, integration, and E2E tests. Use when writing a new feature, fixing a bug, refactoring, or when told to write failing tests first.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

70%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's core strength is its workflow: an unambiguous 9-step TDD pipeline with explicit RED/GREEN gates, a precise definition of valid RED evidence, git checkpoint rules, and a plan-safety checklist. It is weakened by generic testing-knowledge padding (Best Practices, Common Mistakes, Success Metrics) and by inlining ~200 lines of testing patterns and mocking recipes that belong in reference files for a skill this long.

Suggestions

Move the Testing Patterns (unit/Bun/integration/E2E), Mocking External Services, and Test File Organization sections into a references/ file (e.g. references/testing-patterns.md) and keep one-line pointers in SKILL.md, cutting the main file to a lean workflow overview.

Delete or drastically compress the "Best Practices", "Common Testing Mistakes to Avoid", and "Success Metrics" sections — they restate standard testing knowledge (arrange-act-assert, semantic selectors, test isolation) Claude already knows.

Replace placeholder test skeletons ("// Test implementation", the assertion-free "handles database errors gracefully" case) with complete executable examples or drop them in favor of the already-complete patterns.

DimensionReasoningScore

Conciseness

The core workflow (Steps 0-8, plan handoff safety, RED-gate definition, runner matrix) is dense and specific, but sections like "Best Practices" ("One Assert Per Test", "Arrange-Act-Assert"), "Common Testing Mistakes to Avoid" (brittle selectors, test isolation), and "Success Metrics" restate standard testing knowledge Claude already knows. This matches "mostly efficient but includes some unnecessary explanation or could be tightened" — not 2 because the majority is project-specific concrete guidance rather than generic concept explanation.

3 / 5

Actionability

Highly concrete throughout: runner command matrix, "bun test --coverage", checkpoint commit message formats, and a full evidence-report template with a markdown table. Not 5 because several illustrative code blocks are placeholder skeletons ("// Test implementation", the "handles database errors gracefully" test has no assertions) rather than copy-paste ready; not 3 because the commands and patterns are executable, not pseudocode, and the <test>/<coverage> placeholders are explicitly resolved in Step 0.

4 / 5

Workflow Clarity

Steps 0-8 are explicitly sequenced with validation at every stage: the RED gate defines valid runtime vs compile-time RED and excludes "unrelated syntax errors, broken test setup, missing dependencies"; "Do not edit production code until this RED state is confirmed"; "Only after a valid GREEN result may you proceed to refactor"; plus the plan safety checklist and checkpoint-branch verification. Matches the top anchor: clear sequence, explicit validation, feedback loops, and checklists.

5 / 5

Progressive Disclosure

No bundle files exist (no references/, scripts/, or assets/), so everything lives in a 594-line monolithic SKILL.md. Section headers and internal anchors (#bun-native-test-pattern, #step-0) give it real structure, but reference-style content that clearly belongs in separate files is inlined: Testing Patterns (unit/integration/E2E code), Mocking External Services, and Test File Organization would be natural reference files. Not 2 because structure is good, not a wall of text; not 4 because inlining all patterns in a ~600-line file is more than a minor organization gap.

3 / 5

Total

15

/

20

Passed

Description

88%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.

The description is strong: it enumerates the complete TDD cycle concretely and pairs it with an explicit, multi-trigger 'Use when' clause in third person. Its only weaknesses are slightly incomplete natural-keyword coverage (no "add tests" / "test coverage" variants) and trigger breadth around "fixing a bug" and "refactoring" that could collide with non-TDD development skills.

DimensionReasoningScore

Specificity

Quotes: "write a failing test first, watch it fail, implement the smallest change to green, then refactor with 80%+ coverage across unit, integration, and E2E tests" — multiple specific concrete actions covering the entire TDD cycle comprehensively, matching the top anchor. Not 4: the action list is comprehensive (RED, fail observation, minimal implementation, GREEN, refactor, coverage threshold, three test tiers), not minor gaps.

5 / 5

Completeness

Explicitly answers both: what ("write a failing test first, watch it fail, implement the smallest change to green, then refactor with 80%+ coverage") and when ("Use when writing a new feature, fixing a bug, refactoring, or when told to write failing tests first"). Not 4: the 'when' clause is explicit with multiple concrete trigger phrases, not merely implied or generic.

5 / 5

Trigger Term Quality

Quotes: "Use when writing a new feature, fixing a bug, refactoring, or when told to write failing tests first" — good coverage of natural user phrases. Not 5: common variations like "add tests", "test coverage", "unit tests", or "test-first" are missing; not 3: several natural phrases users would actually say are present, not just domain jargon.

4 / 5

Distinctiveness Conflict Risk

"Test-driven development workflow" carves a clear niche with a distinguishing trigger ("when told to write failing tests first"), but "fixing a bug" and "refactoring" are broad triggers that overlap with general development and refactoring skills. Not 5 due to that overlap risk; not 3 because the TDD framing is specific and unlikely to fire for unrelated domains.

4 / 5

Total

18

/

20

Passed

Validation

81%

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

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (595 lines); consider splitting into references/ and linking

Warning

metadata_version

'metadata.version' is missing

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

13

/

16

Passed

Repository

affaan-m/ECC

Path

skills/tdd-workflow/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.