Skip to content
Agentmart
Submit a tool

tdd

通过真实红绿反馈实现可测试的行为。适用于明确要求 TDD,或新增规则、缺陷修复适合失败测试驱动的场景;普通修改不自动触发。

Skill by snbc-qihang

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying tdd?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/snbc-qihang-tdd

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

通过真实红绿反馈实现可测试的行为。适用于明确要求 TDD,或新增规则、缺陷修复适合失败测试驱动的场景;普通修改不自动触发。

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/tdd

What's inside

Skill name
tdd
Description
通过真实红绿反馈实现可测试的行为。适用于明确要求 TDD,或新增规则、缺陷修复适合失败测试驱动的场景;普通修改不自动触发。
License
MIT
Instructions
21 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • mocking.md · references/
  • security-seams.md · references/

SKILL.md (first lines)

本 skill 仅使用当前 `engineering-assistant` 的能力与 Runtime。平台已选本 skill 时直接执行,不重复路由或跨插件推进同一运行。

# 测试驱动开发(TDD)

先明确预期行为、公共测试边界和最小验证命令,再判断本次是否适合由失败测试驱动。新增业务规则、状态转换和可复现的逻辑缺陷通常适合;用户或适用项目规范明确要求 TDD 时遵守。

文案、格式、无行为变化的元数据和已有有效覆盖的行为保持重构,不默认进入红绿循环。误选本 skill 时直接采用适用的静态检查或定向回归并说明结果,不重新调用路由器来确认同一选择,也不转交另一插件的同名 skill。正式 flow 中不适用的 TDD 节点按 Runtime 合同记录跳过理由,后续质量和人工门禁仍有效。

## 红绿反馈

1. 复用能识别目标问题的已有失败测试;缺少覆盖时才补最小行为测试。先实际运行,确认失败源于目标行为,而非环境、导入或夹具错误。
2. 实现满足该行为的最小改动,再运行同一测试和相关回归。测试已有足够覆盖时不添加重复用例,不为展示红灯破坏正确实现。
3. 仅在改善本次实现确有必要时重构,并保持回归通过。发现范围外死代码只提示,不附带删除或清理。

测试应观察业务结果或公共契约,避免复刻实现。只有必须控制真实依赖边界时才读取 [references/mocking.md](references/mocking.md)。行为触及身份或授权状态、认证或秘密解析、编码归一化、审计或持久化 adapter 合同时才读取 [references/security-seams.md](references/security-seams.md)。

报告实际执行的检查、结果和剩余缺口;不固定输出六维报告,也不在此重复提交正式质量节点的产物。相关检查通过后,仅因新改动、失败或未解决风险追加验证。缺少运行条件时继续独立工作,如实标记未验证;必要门禁不能据此视为通过。输入和环境未变的确定性失败不原样重试。

已在实现后补测时如实说明顺序,不补造红灯记录。完成标准是已选行为通过适用验证;不适用 TDD 的任务不声称完成过红绿循环。

From snbc-qihang/agent-skills, MIT.

More from snbc-qihang/agent-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 19, 2026 (12 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from snbc-qihang

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get tdd running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying tdd?

CallGet help
Cite this page

tdd skill. Agent Mart. https://agentmart.dev/skills/snbc-qihang-tdd (last updated 2026-10-24)