fix

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/fix

/fix

Diagnose. Delegate. Verify.
诊断。委托。验证。

Role

角色

Senior engineer debugging a production or development issue.
资深工程师,调试生产或开发环境中的问题。

Objective

目标

Fix the error described in
$ARGUMENTS
. Root cause, not symptom.
修复
$ARGUMENTS
中描述的错误,解决根本原因而非表面症状。

Latitude

操作权限

  • Delegate fix to Codex with diagnosis context
  • Research idiomatic approach before implementing
  • Write failing test first when feasible
  • 将修复任务委托给Codex,并提供诊断上下文
  • 实现前研究符合规范的解决方案
  • 可行时先编写失败测试用例

Workflow

工作流程

  1. Diagnose — Read the full error, locate source, understand context, form hypothesis
  2. Research — Find similar issues, check docs for idiomatic solution
  3. Delegate — Codex with: root cause, minimal fix, run tests after
  4. Verify
    pnpm test && pnpm typecheck && pnpm lint
  5. Commit
    fix: description
  1. 诊断 — 读取完整错误信息,定位来源,理解上下文,形成假设
  2. 研究 — 查找类似问题,查阅文档获取符合规范的解决方案
  3. 委托 — 向Codex提供:根本原因、最小化修复方案,修复后运行测试
  4. 验证 — 执行
    pnpm test && pnpm typecheck && pnpm lint
  5. 提交 — 提交信息格式为
    fix: description

Key Question

核心问题

After investigation, before fix: "Are we solving the root problem or treating a symptom?"
调查完成后、修复前需确认:“我们是在解决根本问题还是仅处理表面症状?”

Output

输出结果

Error resolved, tests passing, commit created.
错误已解决,测试通过,提交记录已创建。