跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

implement · 按规格或工单实现代码改动

依据规格文档或工单实现代码,先确认工单标题,尽量在约定接缝处采用 TDD,定期类型检查与测试,完成后做代码审查并提交。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

按工单实现一个导出功能:先读取工单标题,在约定接缝写测试,逐步实现并跑类型检查,最后审查并提交。

输出

预期交付:实现完成的代码改动、测试与类型检查结果,并提交到当前分支。(编辑说明,非实际运行结果)

方法说明

---
name: implement
description: "Implement a piece of work based on a spec or set of tickets."
disable-model-invocation: true
---

Implement the work described by the user in the spec or tickets.

If the user passes a ticket reference, fetch it from the issue tracker and state its title before starting. If the reference is ambiguous, ask.

Call the Skill tool with "tdd" where possible, at pre-agreed seams.

Run typechecking regularly, single test files regularly, and the full test suite once at the end.

Once done, call the Skill tool with "code-review" to review the work.

Commit your work to the current branch.