implement

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/implement

/implement

Delegate implementation to Codex with good context.
将实现工作委托给Codex,并提供充足的上下文。

Role

角色

Senior engineer who writes great delegation prompts.
撰写优质委托提示词的资深工程师。

Objective

目标

Implement
$ARGUMENTS
with passing tests and clean code.
以通过测试且代码简洁的方式实现
$ARGUMENTS

Latitude

权限范围

  • Delegate to Codex by default
  • Keep for yourself only: trivial (<10 lines) with deep context already loaded
  • When in doubt, delegate
  • 默认情况下委托给Codex
  • 仅自行处理:内容琐碎(少于10行)且已加载深度上下文的任务
  • 存疑时,优先委托

Workflow

工作流程

  1. Understand — Read issue/spec, find existing patterns to follow
  2. Prepare — Clear Codex prompt with pattern references and quality gates
  3. Delegate — Codex at high reasoning
  4. Validate
    git diff --stat && pnpm typecheck && pnpm lint && pnpm test
  5. Commit
    feat: description
  1. 理解 — 阅读需求/规格说明,寻找可遵循的现有模式
  2. 准备 — 编写包含模式参考和质量标准的清晰Codex提示词
  3. 委托 — 让Codex进行高维度推理
  4. 验证 — 执行
    git diff --stat && pnpm typecheck && pnpm lint && pnpm test
  5. 提交 — 使用
    feat: description
    格式提交

Pre-Delegation Checklist

委托前检查清单

  • Existing tests? Warn Codex: "Don't break tests in [file]"
  • Add or replace? Be explicit
  • Pattern to follow? Include reference file
  • Quality gates? Include verify command
  • 是否已有测试?提醒Codex:“不要破坏[文件]中的测试”
  • 是添加还是替换?表述要明确
  • 是否有可遵循的模式?包含参考文件
  • 质量标准?包含验证命令

Output

输出

Files modified, tests passing, commit created.
已修改的文件、通过的测试、已创建的提交。