Claude Code html-plan 插件:结构化代码计划展示与交互
This is how Claude Code plans should look.
不仅展示了新插件功能,还提炼了可复用的结构化 Prompt 技巧,对开发者优化 AI 协作流程有直接参考价值。
This is how Claude Code plans should look.
这就是 Claude Code 计划应有的样子。
It's html-plan, a plugin Thariq on the Claude Code team is testing: the plan becomes 𝗼𝗻𝗲 𝘄𝗲𝗯 𝗽𝗮𝗴𝗲 𝘆𝗼𝘂 𝗰𝗮𝗻 𝗿𝗲𝗮𝗱 𝗶𝗻 𝗮 𝗺𝗶𝗻𝘂𝘁𝗲, and you answer its questions by clicking an option.
它是 html-plan,Claude Code 团队中的 Thariq 正在测试的一个插件:计划变成 𝗼𝗻𝗲 𝘄𝗲𝗯 𝗽𝗮𝗴𝗲 𝘆𝗼𝘂 𝗰𝗮𝗻 𝗿𝗲𝗮𝗱 𝗶𝗻 𝗮 𝗺𝗶𝗻𝘂𝘁𝗲,你通过点击选项来回答它的问题。
It opens as a tree you expand one level at a time: → Level 1: what users can do or see after the change, with a UI mockup → Level 2: how it works, with the call stack, data structures or a few lines of code → Level 3: the file and line it changes Read only level 1 and you already know the whole change.
它以树状结构打开,每次展开一层: → 第 1 层:更改后用户能做什么或看到什么,附带 UI 原型 → 第 2 层:工作原理,包括调用栈、数据结构或几行代码 → 第 3 层:修改的文件和行号 只阅读第 1 层,你就已经了解了整个更改。
For every question, Claude has already picked the answer it recommends. Change it if you disagree, and leave a comment on any line you take issue with. Then hit Respond to get one reply. Paste it back into Claude Code, and only then does it start writing code. Any question you never opened gets flagged in that reply, and 𝗖𝗹𝗮𝘂𝗱𝗲 𝘄𝗼𝗻'𝘁 𝘁𝗮𝗸𝗲 𝗶𝘁 𝗮𝘀 𝗮 𝘆𝗲𝘀.
对于每个问题,Claude 已经选出了它推荐的答案。如果你不同意可以更改,并在你有异议的任何行上留下评论。然后点击 Respond 获取一次回复。将其粘贴回 Claude Code,之后它才开始编写代码。任何你从未打开过的问题都会在该回复中标记出来,并且 𝗖𝗹𝗮𝘂𝗱𝗲 𝘄𝗼𝗻'𝘁 𝘁𝗮𝗸𝗲 𝗶𝘁 𝗮𝘀 𝗮 𝘆𝗲𝘀。
The plan's text is written in ASD-STE100, the English used in aircraft maintenance manuals, which Karpathy recommended last week. Each sentence says one thing, and packing the page checks for long sentences and passive voice.
计划的文本使用 ASD-STE100 编写,这是 Karpathy 上周推荐的飞机维护手册中使用的英语。每句话只表达一个意思,页面打包会检查长句和被动语态。
Thariq also wants it to 𝗿𝗲𝗽𝗹𝗮𝗰𝗲 𝘁𝗵𝗲 𝗱𝗲𝗳𝗮𝘂𝗹𝘁 𝗽𝗹𝗮𝗻 𝗺𝗼𝗱𝗲. To install: claude plugin marketplace add anthropics/claude-plugins-community claude plugin install html-plan@claude-community Then type /html-plan followed by what you want to build. You'll need node.
Thariq 还希望它 𝗿𝗲𝗽𝗹𝗮𝗰𝗲 𝘁𝗵𝗲 𝗱𝗲𝗳𝗮𝘂𝗹𝘁 𝗽𝗹𝗮𝗻 𝗺𝗼𝗱𝗲。安装方法: claude plugin marketplace add anthropics/claude-plugins-community claude plugin install html-plan@claude-community 然后输入 /html-plan 加上你想构建的内容。你需要 node。
Using Codex, or don't want to install a plugin? Add this to your CLAUDE.md or AGENTS.md and your plans in the terminal get written the same way 👇
使用 Codex,或者不想安装插件?将此添加到你的 CLAUDE.md 或 AGENTS.md,终端中的计划就会以相同方式编写 👇
Writing plans When I ask for a plan first, write it as a tree and wait for my reply before you start: - Level 1: what users can do or see once it's done. One sentence per item, one line max, written as a claim that can be true or false, like "Each user can hold 50 scheduled messages at most." Don't just write "Message limit." Split by feature, not by file, module or order of steps. Reading only level 1, I should know the whole change - Level 2: how each item works, naming the entry point, the rule or the data structure - Level 3: where it changes, as file:line. Mark code that doesn't exist yet as a sketch - At most 5 items under each item and at most 3 levels. Number every item, and I'll reply by number - Put each question for me under the item it affects, 2 to 5 per plan. Give options for each and mark the one you recommend. If an option would drop an item, say which - Write level 1 and your questions in plain language with no code names. Save code names for levels 2 and 3 - End with what you're not changing this time, then list your question numbers again Don't take a question I didn't answer as a yes. If it matters, ask me again before you start.
编写计划 当我首先要求制定计划时,请以树状结构写出并等待我的回复后再开始: - 第一层:完成后用户能做什么或看到什么。每项一句话,最多一行,写成可判断真假的陈述句,例如“每个用户最多可持有 50 条定时消息”。不要只写“消息限制”。按功能拆分,而不是按文件、模块或步骤顺序拆分。仅阅读第一层,我就应了解整个变更。 - 第二层:每项如何运作,指明入口点、规则或数据结构。 - 第三层:变更位置,以 file:line(文件:行号)表示。将尚不存在的代码标记为草图。 - 每项下最多包含 5 个子项,且最多 3 层。为每项编号,我将通过编号回复。 - 将每个问题放在其影响的项目下方,每个计划包含 2 到 5 个问题。为每个问题提供选项,并标记你推荐的那个。如果某个选项会导致删除某项,请说明是哪一项。 - 用无代码术语的通俗语言编写第一层和你的问题。将代码术语留待第二层和第三层使用。 - 最后列出本次不更改的内容,然后再次列出你的问题编号。 不要把我未回答的问题视为肯定。如果有必要,在开始前再次问我。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力