跳到正文
cccskills
免费在 GitHub 公开

test-driven-development

Build features or fix bugs by writing a small test first, checking that it fails for the expected reason, and making the smallest code change needed. Run related tests and review the changes for unintended effects.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Build or fix software with a focused red-green-refactor loop

查看安装方法

适用场景

  • Reproducing a bug with a regression test
  • Defining expected behavior before implementing a feature
  • Checking parser, routing, or UI behavior changes

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

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

When to Use

Use when implementing a feature, fixing a bug, or changing behavior where a regression test can define the expected result. Prefer this workflow for parser, routing, agent-loop, and UI behavior changes.

Procedure

  1. Inspect the relevant code, existing tests, and local conventions before editing.
  2. Write the smallest regression test that demonstrates the requested behavior or reproduces the bug.
  3. Run that test and confirm it fails for the expected reason, not because the test setup is broken.
  4. Make the smallest production change that makes the test pass.
  5. Run the focused test again, then run the surrounding module suite.
  6. Review the diff for unrelated changes, brittle assertions, hidden state, and missing error paths.
  7. Report the tests run and any remaining coverage or environment limits.

Pitfalls

  • Do not write a test that only mirrors the implementation; assert the user-visible contract.
  • Do not weaken an assertion just to make a failing test pass.
  • Do not skip the focused failing-test step when the behavior is observable in a local test.
  • Keep network, filesystem, and model calls deterministic with fakes or fixtures unless the integration itself is under test.

Verification

  • The new regression test fails before the fix and passes after it.
  • The relevant focused suite passes.
  • The broader suite passes or its failure is explained with evidence.
  • The final diff contains the test and the production change needed for the same behavior.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Turn scattered messages, meeting notes, and documents into sourced action lists and status briefs. The skill reconciles updates, separates facts from tentative inferences, and highlights decisions, dependencies, risks, and unanswered questions.

中文简介正在准备中。当前显示英语简介。

  • Build a sourced action list from meeting notes
  • Combine messages and documents into a status brief
  • Assess feasibility using dependencies and blockers
odysseus-dev/odysseus9.4万2026年10月17日 更新

Create a complete first version of a requested file or other deliverable early, then refine it and check its format, required content, location, and usability before reporting the work as finished.

中文简介正在准备中。当前显示英语简介。

  • Creating a report with all required sections
  • Saving a deliverable in a specified location
  • Checking that a generated file opens correctly
odysseus-dev/odysseus9.4万2026年10月17日 更新

Find official documentation for a library, framework, or API and apply it to the task at hand. Check the relevant version, distinguish documented facts from assumptions, and verify code changes with a focused test or concrete command.

中文简介正在准备中。当前显示英语简介。

  • Checking how an API or option works
  • Implementing behavior for a specific version
  • Applying official guidance to an existing project
odysseus-dev/odysseus9.4万2026年10月17日 更新

Extract and verify text, numbers, objects, and sequences from images, documents, and video. Record where each finding appears, check exact labels and values, and build answers whose supporting evidence can be traced back to the input.

中文简介正在准备中。当前显示英语简介。

  • Extracting and checking numbers in documents
  • Tracing video events to timestamps
  • Reading and verifying labels in images
odysseus-dev/odysseus9.4万2026年10月17日 更新

odysseus

免费

Use Codex to manage Odysseus todos, calendars, memory, and documents, and read or draft email. Through its permission-scoped API, the skill also supports reminders and launching, inspecting, or stopping Cookbook model servers.

中文简介正在准备中。当前显示英语简介。

  • Create a timed reminder as a todo
  • Check calendar events and add appointments
  • Read email and prepare an editable reply draft
odysseus-dev/odysseus9.4万2026年10月17日 更新

odysseus

免费

Use Claude Code to manage Odysseus tasks, email, calendar events, stored facts, and documents through a permission-scoped API. You can also start, inspect logs for, and stop Cookbook model servers using the access granted by your token.

中文简介正在准备中。当前显示英语简介。

  • Creating a task with a timed reminder
  • Reading email and preparing a reply draft
  • Saving calendar events, preferences, and documents
odysseus-dev/odysseus9.4万2026年10月17日 更新

查看 odysseus-dev 的全部技能

报告此技能的问题