CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

test-driven-development

在实现任何功能或修复 bug 时使用,在编写实现代码之前

Quality

61%

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 ./skills/test-driven-development/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

77%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 is an unusually actionable TDD skill: executable examples with expected output, an enforced verify-red/verify-green workflow with error-recovery loops, and anti-rationalization tables. Its two weaknesses are systematic repetition of the same rule across four sections and a broken reference — the linked writing-good-tests.md is missing from the bundle entirely.

Suggestions

Create the missing writing-good-tests.md (or remove the link at line 213) — the body directs the reader to a file that does not exist in the bundle.

Consolidate the repeated rule statements: 铁律, 最终规则, 危险信号, and 验证清单 all restate 'no production code without a failing test'; merge 危险信号 into 常见借口 (they overlap heavily) and trim concept explanations Claude already knows (sunk cost, manual vs automated testing).

DimensionReasoningScore

Conciseness

The core cycle guidance is tight, but the no-implementation-without-failing-test rule is restated across 铁律, 最终规则, 危险信号, and 验证清单; the 常见借口 table re-explains concepts Claude already knows (sunk cost, manual vs automated testing); and the 13-item 危险信号 list largely duplicates 常见借口. Mostly efficient but several sections could be merged or trimmed — anchor 3, not 4, because the duplication is systematic rather than a few stray sentences.

3 / 5

Actionability

Fully executable throughout: Good/Bad TypeScript test and implementation pairs, exact commands ("npm test path/to/test.test.ts"), a complete worked bug-fix example with expected FAIL/PASS output, a good-test traits table, and a concrete troubleshooting table. Copy-paste ready and covering the common cases — matches anchor 5; the guidance leaves nothing abstract.

5 / 5

Workflow Clarity

The red-green-refactor sequence has mandatory explicit verification checkpoints ("必须执行。绝不跳过"), decision branches for wrong-kind-of-failure (test errors vs fails, test passes vs suite fails) forming feedback loops, a cycle diagram, and a completion checklist — matching anchor 5 (clear sequence, explicit validation, error-recovery loops, checklist). Not 4 because validation is not merely present but enforced at every step with recovery instructions.

5 / 5

Progressive Disclosure

The single external reference is clearly signaled ("阅读 [writing-good-tests.md](writing-good-tests.md)" with a bullet summary of its contents), but that file does not exist in the bundle — no references/ directory is present, so the link is broken. Structure itself is good (well-organized sections, ~315 lines), but the dangling reference plus inline excuse-table content that could live in a separate file lands at anchor 3 rather than 4.

3 / 5

Total

16

/

20

Passed

Description

32%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 provides a clear, well-phrased trigger ('when') but omits any statement of what the skill actually does, and its scope — any feature or bug fix — is so broad it would compete with nearly every development skill. It reads as half a description. Adding a capability clause (e.g. writing failing tests first, red-green-refactor) and TDD-specific trigger words would fix both gaps at once.

Suggestions

Add a 'what' clause describing the skill's actual capability, e.g. "写失败测试,再写最少实现代码使其通过(红-绿-重构循环)" before the 'when' clause.

Include the skill's domain trigger terms — test / tests / TDD / write tests first / 重构 — so users who mention testing naturally surface this skill.

Narrow or justify the extremely broad trigger scope ('any feature, any bug fix'); as written it overlaps with virtually every development-related skill.

DimensionReasoningScore

Specificity

The description ("在实现任何功能或修复 bug 时使用,在编写实现代码之前") names trigger situations ("实现任何功能", "修复 bug") but states no concrete action the skill performs — it never says what it does. It falls between anchor 1 (no concrete actions, pure abstraction) and anchor 2 (domain named, actions minimal/generic): the domain is named but the action side is entirely absent.

2 / 5

Completeness

It has an explicit and well-timed 'when' ("在实现任何功能或修复 bug 时使用,在编写实现代码之前") but no 'what' whatsoever — the TDD process (write failing tests first, red-green-refactor) is never described. This matches anchor 2 exactly ('only when is present without what', e.g. "Use when working with documents"). Not 3 because the what is missing entirely, not merely weakly implied.

2 / 5

Trigger Term Quality

"修复 bug" and "实现功能" are natural phrases users say, giving some relevant keywords. However the terms a user would most naturally associate with this skill — test, tests, TDD, write tests first, refactor — are completely missing, matching anchor 3 (some relevant keywords but missing common variations or synonyms). Not 4 because the core vocabulary of the skill's domain is absent, not just a few synonyms.

3 / 5

Distinctiveness Conflict Risk

"任何功能" (any feature) and "修复 bug" would make this trigger on virtually all development work, creating high overlap risk with any coding or debugging skill — matching anchor 2 (very broad; high overlap risk with many similar skills). Not 1 only because it is at least scoped to feature/bug-fix development rather than documents and code alike.

2 / 5

Total

9

/

20

Passed

Validation

75%

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

Validation — 12 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

metadata_field

'metadata' should map string keys to string values

Warning

frontmatter_unknown_keys

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

Warning

relative_links

Relative link issues: 1 possibly missing (writing-good-tests.md)

Warning

Total

12

/

16

Passed

Repository

jnMetaCode/superpowers-zh

Path

skills/test-driven-development/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.