Skip to content
Back to skills

Tdd

ASecurity

TDD 分级策略 — E 阶段

  • 188 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 9, 2026
development

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 5, 2026

npx -y skills add WenJunDuan/Rlues --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tdd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-tdd/badge)](https://www.skillsdirectory.com/skills/wenjunduan-tdd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdd
description: TDD 分级策略 — E 阶段
context: main
---

## 分级

| Path | 策略 | 覆盖率 |
|:---|:---|:---|
| A | 改了什么手动验证 | 不强制 |
| B | 关键路径写测试, 边界场景 | ≥60% 变更代码 |
| C+ | 先写测试再实现, 全 TDD | ≥80% |

## 流程 (Path B+)

1. 从 plan.md 提取当前任务的验收标准
2. 先写测试 (或至少测试桩)
3. 实现代码
4. 运行测试, 失败→修复→再跑 (最多 3 轮)
5. 3 轮仍失败 → 标记"需要人工介入", cunzhi 通知

## 降级
测试框架不存在 → 先 `npm install` 安装, 或用断言脚本替代。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.