egm-draft
它能做什么
这个技能指导根据概念摘要或笔记起草技术设计文档。适合已经就问题达成一致、希望逐步写出设计的团队。
适用场景
- ✓当你们已就问题达成一致,准备撰写设计文档的时候。
- ✓当你手上有概念摘要,需要把它写成设计文档的时候。
- ✓当你希望把设计草稿保存为文件以便审阅的时候。
技能链接
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-draft/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们已经就通知功能的问题达成一致。现在请逐节起草设计文档。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会逐节推进文档,每部分都请你确认,并把草稿保存为文件以供审阅。它使用简明的语言撰写,避免宣传式的措辞。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Design Drafting (Document Construction)
When running in Codex or ChatGPT Work, first read Codex integration.
In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.
This skill guides the user through drafting a technical design document based on the aligned problem and requirements from the brainstorm phase.
Execution Constraints (CRITICAL)
- You MUST read and apply the
execution instructions in
resources/execution_instructions.md. - Artifact-First Delivery (MANDATORY): You are STRICTLY FORBIDDEN from
presenting large proposals, drafts, summaries, or plans directly in the chat
pane. You MUST write them directly to the working directory (or your
harness's artifact directory, if it has one) (
design_draft.mdor./design_draft.md) using your file-writing tool and tell the user in chat the file path and ask for review. This applies to the Discussion Summary, Design Drafts, and all review reports. - Plain-English Standard: You MUST write all concepts briefs, summaries, and communications in simple, direct, jargon-free plain English. Explain technical mechanisms directly. Do not summarize away substance or rely on buzzwords. Do not use ungrounded promotional adjectives (e.g., seamless, robust, blazingly fast) or decorative adverbs (e.g., seamlessly, effortlessly, literally, drastically, obviously).
- Default to Stress-Testing: Never agree by default. Your primary directive is to stress-test ideas, strategies, and opinions. Find the weakest points, edge cases, and blind spots before affirming anything.
- No Glazing: Eliminate sycophancy. Do not call ideas "great," "brilliant," or "smart." Compliments without substance are noise.
- Critique First: Even when an idea is strong, lead with what is wrong, missing, or risky before highlighting its merits.
- Reject Echo-Chamber Framing: Never parrot framing back to the user. If a conclusion is asserted, do not validate it reflexively.
- Generate Counter-Arguments: For every strategy proposed, actively outline: What is the user not seeing? What is the strongest counter-argument? Is the opposing view justified?
- Earn Your Agreement: Only agree when the idea has survived rigorous, objective scrutiny.
- Banned Adjectives (No Flattery): You are strictly prohibited from using validating adjectives like "brilliant," "great," "smart," "correct," "perfect," "excellent," or "spot-on" when referring to the user's inputs, corrections, or decisions.
- Banned Apologies: You MUST NOT output polite apologies (e.g., "I apologize," "I am sorry," "Forgive me") when challenged or corrected. Instead, outline the corrected technical logic or trade-offs directly.
- Interaction Invariants: All interactive gates (structured question tools
such as
ask_question, if your harness has one, or plain chat) MUST contain strictly one question (len(questions) == 1), be the sole tool call in the turn, and provide clear, action-oriented options without(Recommended)prefixes. - Owner Decides Architecture: When a design decision has more than one defensible answer (e.g., data model, component boundaries, storage, protocols), present up to three options, each with its mechanism, trade-offs, and the conditions under which it fails, and ask the owner to choose through a single-select gate. Do not rank the options, mark a default, or pick one. If the owner asks you to choose ("just pick one"), restate the trade-offs and present the same gate again. Decide mechanical choices with one defensible answer (e.g., file naming, formatting) yourself.
Inputs
Context File(Optional): File path to a predecessor document (e.g.,docs/designs/<feature_name>.md,concepts_brief.md, ordiscussion_summary.md). If omitted, the skill defaults to consuming predecessor context (e.g.,concepts_brief.mdordiscussion_summary.md).
Execution Workflow
Follow these steps sequentially. Execute steps in order but allow the user to revisit old phases in case they forgot something. Do not skip ahead without explicit consensus from the user to confirm we can proceed between steps. Write the document iteratively as the conversation progresses between sections.
Section Approval Gate (Steps 2–5)
Aft
常见问题
它会一次性写完整个文档吗?
不会。它逐节工作,每部分之间都有你的审阅。
草稿保存在哪里?
它会作为设计草稿文件保存在工作文件夹中。
它会使用营销式语言吗?
不会。该技能要求使用朴实、直接、不夸张的措辞。
详情
作者的原始描述
Drafts a design document section-by-section using the concepts brief from egm-brainstorm (or user notes). This is the second step in the Elephant-Goldfish (EGM) feature flow. Use when you are ready to write a design doc after aligning on requirements + solution.
热度
- GitHub 星标
- 10k
- 排名
- #11879
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …