How-to

dotey 分享 /goal 最佳实践:Checklist 与分阶段设计

Why we picked it

做复杂代码逆向或大型设计文档的开发者,用 /goal 把任务拆成可追踪的步骤,能显著减少遗漏和返工,建议直接复制这两个模式试试。

dotey 在 X 上分享了 Claude Code 中 /goal 命令的两种高效用法:一是将逆向代码的完整任务整理成 JSON 文件,让 AI 分批处理并逐条勾选 Checklist;

Body

二是与 AI 协作编写详细设计文档,划分多个 Phase 并设定验收条件,每个 Phase 执行后自动 commit。这些实践展示了 /goal 如何将复杂任务拆解为可追踪的步骤,提升 AI 编程的可靠性和效率。

Original · 宝玉

我经常用 /goal ,主要用法: 1. 写一个 Checklist,让它一条条勾选 比如我逆向代码,会先用脚本做语法解析把完整的list整理成个json文件,让它分批去处理,每次处理完一批就更新json文件 2. 写一个设计文档,分成几个阶段 跟AI一起写一份详细设计文档,设计好了后让 AI 划分好 Phases,设定好每个 Phase 的验收条件,一个 Phase 一个 Phase 的执行,每个 Turn 都让它自己 commit dontbesilent @dontbesilent 大家真的开始用 /goal 解决问题了吗 能否在评论区留下你用 /goal 的最佳实践? 🔗 View Quoted Tweet📊 15 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude Code, /goal, best practices, coding assistants.

Source attribution: curated from 宝玉 (@dotey).