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 with passing tests and clean code.
$ARGUMENTS以通过测试且代码简洁的方式实现。
$ARGUMENTSLatitude
权限范围
- Delegate to Codex by default
- Keep for yourself only: trivial (<10 lines) with deep context already loaded
- When in doubt, delegate
- 默认情况下委托给Codex
- 仅自行处理:内容琐碎(少于10行)且已加载深度上下文的任务
- 存疑时,优先委托
Workflow
工作流程
- Understand — Read issue/spec, find existing patterns to follow
- Prepare — Clear Codex prompt with pattern references and quality gates
- Delegate — Codex at high reasoning
- Validate —
git diff --stat && pnpm typecheck && pnpm lint && pnpm test - Commit —
feat: description
- 理解 — 阅读需求/规格说明,寻找可遵循的现有模式
- 准备 — 编写包含模式参考和质量标准的清晰Codex提示词
- 委托 — 让Codex进行高维度推理
- 验证 — 执行
git diff --stat && pnpm typecheck && pnpm lint && pnpm test - 提交 — 使用格式提交
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.
已修改的文件、通过的测试、已创建的提交。