implement

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Implement

实施

Steps

步骤

  1. Pin contract. Identify source of truth: spec, issue, conversation. List done criteria. Too vague: ask one question, wait.
  2. Find seam. Read current flow before editing. Reuse helpers, tests, patterns. Broad or risky: explore before changing files.
  3. Build with feedback. Use
    /tdd
    where possible. One vertical slice at a time. Narrowest useful check after each.
  4. Review. Run formatter, lint, typecheck, tests.
    /code-review
    for non-trivial changes. Fix confirmed findings only.
  5. Close out. Summarize changed files and checks. Commit only when asked.
    /git
    rules. PR needed:
    /bitbucket-helper
    .
  1. 锁定契约。 确认事实来源:规范、Issue 或对话。列出完成标准。如果要求过于模糊:只问一个问题,然后等待。
  2. 找到切入点。 编辑前先阅读当前流程。复用辅助函数、测试和既有模式。如果改动范围较大或风险较高:先探索,再修改文件。
  3. 基于反馈构建。 尽可能使用
    /tdd
    。每次完成一个垂直切片。每步之后执行最小且有效的检查。
  4. 审查。 运行 formatter、lint、typecheck 和测试。对于非简单改动,使用
    /code-review
    。只修复已确认的问题。
  5. 收尾。 总结改动文件和检查结果。仅在被要求时提交。遵循
    /git
    规则。需要 PR 时:使用
    /bitbucket-helper
    。

Blocked

阻塞

If context missing, state plan before asking: source of truth, done criteria, seam, callers, passing check, review command, changed files.
如果缺少上下文,先说明计划,再提问:事实来源、完成标准、切入点、调用方、通过检查的方法、审查命令、改动文件。

Output

输出

If blocked, state the
Source of truth
,
Done criteria
,
Seam
,
Callers
,
Build with feedback
(
/tdd
, check/test),
Review
, and
Changed files
before asking a question.
Completion: changed files, checks, risks, blocked follow-up named.
如果被阻塞,请在提问前说明
Source of truth
、
Done criteria
、
Seam
、
Callers
、
Build with feedback
(
/tdd
、检查/测试)、
Review
和
Changed files
。
完成时需说明改动文件、检查结果、风险以及明确列出的阻塞后续事项。