跳到正文
cccskills
免费在 GitHub 公开

tdd-cycle

Run complete TDD red-green-refactor cycle for a test

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md1.5 KB
  • references/workflow.md1.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

TDD cycle

Read the complete workflow for task-file conventions. Repository paths are relative to the repository root. The canonical quality gate and coordinator responsibilities in .agnostic-ai/AGNOSTIC_AI.md apply.

Use .tasks/YYYY-MM-DD-slug.md for features, refactors, or multi-test work; skip it for small fixes or a single test. Choose the next smallest test from the acceptance scenario or task inventory and study matching existing tests.

  1. RED: Write Arrange-Act-Assert, run ./bashunit <test-path>, and verify failure proves the requested behavior is missing, rather than a syntax or setup error. Record the red bar and logbook entry when using a task file.
  2. GREEN: Implement only what this test requires. Run the focused test and require a pass. Check off the inventory entry and record the result.
  3. REFACTOR: Improve naming, structure, or duplication without changing behavior. Keep affected focused tests green; preserve other workers' changes. Record meaningful refactoring notes.
  4. Repeat until the acceptance scenario is complete. The main session runs the full quality gate once after the whole change set, before committing. Delegates run only assigned targeted checks.

Never skip the demonstrated RED or add speculative behavior during GREEN. Keep the task inventory and logbook current when a task file is used.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add new assertion function with comprehensive tests following TDD

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

Analyze test coverage and identify untested code paths

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

commit

免费

Stage and commit changes using conventional commits format

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

fix-test

免费

Debug and fix failing tests systematically

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

gh-issue

免费

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

中文简介正在准备中。当前显示原文说明。

TypedDevs/bashunit4372026年10月21日 更新

查看 TypedDevs 的全部技能

报告此技能的问题