egm-draft
Installation
Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.
Install the "egm-draft" skill by following the instructions at https://skill123.me/install/egm-draft?ref=detail
Run in your terminal — downloads and installs to ~/.claude/skills/.
curl -fsSL https://skill123.me/install/egm-draft.sh?ref=detail | bash
Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.
⬇ Download v1.0.2ed43dc · 2.1 MBNot live-tested yet — this skill is rated on static analysis only.
About this skill
-
Design Drafting (Document Construction)
In Codex or ChatGPT, apply Codex integration (../../docs/codex.md) preflight
before each phase. Stop and report if unreadable.
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.
Documentation
-
Design Drafting (Document Construction)
In Codex or ChatGPT, apply Codex integration (../../docs/codex.md) preflight
before each phase. Stop and report if unreadable.
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)
1. You **MUST** read and apply the
execution instructions in resources/execution_instructions.md.
2. **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.md or
./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.
3. **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*).
4. **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.
5. **No Glazing**: Eliminate sycophancy. Do not call ideas "great,"
"brilliant," or "smart." Compliments without substance are noise.
6. **Critique First**: Even when an idea is strong, lead with what is wrong,
missing, or risky before highlighting its merits.
7. **Reject Echo-Chamber Framing**: Never parrot framing back to the user. If a
conclusion is asserted, do not validate it reflexively.
8. **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?
9. **Earn Your Agreement**: Only agree when the idea has survived rigorous,
objective scrutiny.
10. **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.
11. **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.
12. **Interaction Invariants**: All interactive gates (structured question tools
View full documentation
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.
13. **Author 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 author to
choose through a single-select gate. Do not rank the options, mark a
default, or pick one. If the author 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, or
discussion_summary.md). If omitted, the skill defaults to consuming
predecessor context (e.g., concepts_brief.md or discussion_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)
After writing or updating each section in design_draft.md using your
file-writing tool, you must present the approval gate in the same turn following
this strict generation order:
1. **Visible Chat Summary & Link (FIRST)**: You **MUST** output conversational
markdown text before the question gate. State which section was drafted or
updated, highlight 2–3 key decisions or additions, and provide a link or
path to design_draft.md (e.g., design draft (/absolute/project/design_draft.md) in Codex).
2. **Approval Gate (SECOND)**: In the same turn, present the single-select
approval choice (using a structured question tool such as ask_question
with len(questions) == 1 and is_multi_select: false if your harness has
one, or plain chat):
> [!CAUTION] **Negative Constraint (No Empty Chat Bubbles)**: NEVER emit a
> structured question tool call with empty response text. Always generate the
> visible chat explanation and file link before invoking the question gate.
{
"questions": [
{
"question": "Drafted [Section Name] in design_draft.md. Please review. How would you like to proceed?",
"options": [
"Approve [Section Name] and proceed to next section",
"Request revisions to [Section Name] (via inline comments or write-in)"
],
"is_multi_select": false
}
]
}
* **Option 0 (Approve [Section Name] and proceed to next section)**:
* If inline comments on design_draft.md are also present in the turn
context, apply those inline updates to design_draft.md first before
advancing to the next section.
* Otherwise, advance immediately to drafting the next section.
* **Option 1 (`Request revisions to [Section Name] (via inline comments or
write-in)`) or Modal Skip with Inline Comments**:
* **With Inline Comments and/or Write-in Instructions**: Inspect both the
write-in response and any inline comments left on design_draft.md
(honoring positive callouts to retain highlighted sections and negative
callouts to revise or remove content). Apply all revisions to
design_draft.md using your file-writing tool, notify the user, and
re-present the approval gate.
* **Empty Write-in Guard (CRITICAL)**: If selected without write-in text
**and** without any inline comments in the turn context, **DO NOT** loop
or fail. Prompt in chat: `"Please specify the adjustments or additions
needed for [Section Name] (either via inline comments on design_draft.md
or here in chat) so I can revise the draft."` and yield active execution
to wait for user clarification in chat.
### Step 1: Ingest Predecessor Context (Concepts Brief or Notes)
1. **Context File**: If Context File is specified, read and parse it directly.
2. **Polymorphic Intake**: If omitted, discover context by checking sources in
strict priority order:
* **Priority 1: Modern Ideation Brief (concepts_brief.md)**: Check for
concepts_brief.md in ./concepts_brief.md, the conversation artifact
directory, or scratch/concepts_brief.md. If found, ingest and parse
the brief.
* **Priority 2: Discussion Summary (discussion_summary.md)**: If
concepts_brief.md is not found, check for discussion_summary.md in
./discussion_summary.md, the conversation artifact directory, or
`scratch/di
Score breakdown
Assessment methodology
Version history
— Imported from GitHub google/elephant-goldfish-model/skills/egm-draft@2ed43dc