tdd-dev-cycle

tdd-dev-cycle is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 38 tokens per session (643 once invoked), scanned A, original, Apache-2.0.

A test-driven development workflow, meaning developers write automated tests for expected behavior before implementing the code. It defines stages for analysis, testing, development, verification, commits, and repeated fixes.

In plain words
What is it for?
Use it to select backlog tasks, clarify requirements, write acceptance tests, implement changes, run tests, record progress in Git commits, and retry fixes within the defined limit.
Why use it?
It gives an agent a clear development loop for turning requirements into tested code and stopping to ask for help after repeated verification failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to select backlog tasks, clarify requirements, write acceptance tests, implement changes, run tests, record progress in Git commits, and retry fixes within the defined limit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/tdd-dev-cycle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cafe3310/public-agent-skills --skill tdd-dev-cycle
Clone the repo
git clone --depth 1 https://github.com/cafe3310/public-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd-dev-cycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/tdd-dev-cycle/github.svg)](https://agentmods.dev/skills/cafe3310/public-agent-skills/tdd-dev-cycle)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/tdd-dev-cycle"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/tdd-dev-cycle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd-dev-cycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/tdd-dev-cycle"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/tdd-dev-cycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00643
Opus 5 $0.00019 $0.00321
Sonnet 5 $0.00008 $0.00129
Haiku 4.5 $0.00004 $0.00064

Measured 9d ago against content hash 1828d4f5cc2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tdd-dev-cycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills_archived/tdd-dev-cycle/SKILL.md · 46 lines

What it actually says

TDD (测试驱动开发) 主干工作循环

本 Skill 定义了标准的 TDD 开发与验证循环。

适用场景

如果项目章程没有定义具体的工作流,助手默认遵循以下 TDD 主干工作循环。

流程详情

  1. 智能调度

    • 优先处理 backlog 中 priority: high 的任务。
    • 在选定了任务后,将其从 docs/backlog/ 移动到 docs/requirements/ 并更新状态为 开发中,然后开始分析。
  2. 规划与澄清 (TDD)

    • a. 分析需求: 如果模糊则提问,并更新需求文档。
    • b. 解决冲突: 如果需求和项目级别章程冲突,则提问澄清如何处理。一般来说要更新章程中的设计。
    • c. 定义验收标准: 优先编写自动化测试用例。
    • d. COMMIT 1: git commit -m "完成需求 {文件名} 的分析与测试用例,即将开发"
  3. 开发

    • 根据测试用例进行编码实现。
  4. 开发完成 -> COMMIT

    • COMMIT 2: git commit -m "完成需求 {文件名} 的开发,即将验证"
  5. 验证与带熔断的修复循环

    • a. 运行自动化测试
    • b. 成功:
      • COMMIT 5: git commit -m "需求 {文件名} 的开发和验证已经全部完成!"
      • 报告完成并循环。
    • c. 失败 (第 N 次):
      • COMMIT 3: git commit -m "验证需求 {文件名} 时遇到问题 {问题描述} (第 N 次尝试),即将修复"
      • 熔断检查: 若 N > 3 次,则触发熔断,停止,并向用户求助。
      • 修复: 分析日志,定位原因,编写修复代码。
      • COMMIT 4: git commit -m "验证需求 {文件名} ,成功解决了问题 {问题描述} (第 N 次尝试)"
      • 返回步骤 5a 重新验证。

循环直至所有 backlog 任务完成、用户打断、指令变更或达到熔断条件。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 46 lines · 38 tokens per session scan A 1828d4f5cc2d

Subscribe to this mod's changes

tdd-dev-cycle is a skill published in the GitHub repository cafe3310/public-agent-skills (253 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 643 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.