{"id":82087,"plugin_id":"plugins_6aeb90f47ec88191a3c107e01d3eb357","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-05T01:21:52.472Z","digest":"665f83cb3d0139db6cc3e0388ab21c1aa0aaea40fb9341430f62727a9f70e89f","against":null,"payload":{"description":"Test an idea and write a concept brief.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":199},{"relative_path":"assets/icon.svg","size_in_bytes":496}],"name":"egm-brainstorm","skill_md_contents":"---\nname: egm-brainstorm\nlicense: Apache-2.0\ndisable-model-invocation: true\ndescription: Test an idea and write a concept brief.\n---\n\n# EGM Brainstorm: Interactive Multi-Lens Ideation & Refinement\n\nWhen running in Codex or ChatGPT Work, first read [Codex integration](../../docs/codex.md).\nIn Claude Code or Cowork, read `${CLAUDE_PLUGIN_ROOT}/docs/claude.md` first.\n\n## Overview\n\nThis skill acts as the upstream conversational brainstorming engine for the\nElephant-Goldfish Model (EGM). It turns \"half-baked\" or raw concepts into\nhypotheses by combining **interactive clarifying questions** with an automated\n**Goldfish review**. The outcome is an iteratively refined RFC summary\n(`concepts_brief.md`) that leads directly into `/egm-draft` or review with\npeers.\n\n## Delegation\n\nA Goldfish runs in a fresh context with no conversation history. Spawn each\nsubagent with your harness's subagent tool (Antigravity: `invoke_subagent`; Claude Code: `Agent`; Codex: `spawn_agent`). Each subagent is defined in `agents/<file>.md`, and its\nfrontmatter `name` (for example `egm-zoom-out`) is the subagent type to request\nwhere your harness registers named subagents. Otherwise spawn a general-purpose\nsubagent and tell it to read that persona file first. Pass the prompt verbatim\nand wait for the report. If your harness cannot nest subagents,\nuse direct dispatch instead of the synthesizer. See `docs/harnesses.md`.\nIf your harness has no subagent tool, stop and tell the user: a review in the same context is not a Goldfish review.\n\n## Execution Constraints (CRITICAL)\n\n1.  **Artifact-First Delivery (MANDATORY)**: You are **STRICTLY FORBIDDEN** from\n    presenting large proposals, drafts, brainstorm summaries, or briefs directly\n    in the chat pane. You **MUST** write/update them directly to a file (e.g.,\n    `./concepts_brief.md` in the working directory or your harness's artifact\n    directory, if it has one) using your file-writing tool and notify the user\n    in the chat with a clean link to the file.\n2.  **Multi-Turn Open-Ended Clarification & Readiness Gate**: You **MUST** drill\n    down into the concept through open-ended plain-text questions across\n    multiple chat turns until the problem statement and boundaries are\n    thoroughly clear. You **MUST NOT** spawn subagents until the user explicitly\n    confirms readiness after reviewing the anchored working hypothesis. You are\n    **STRICTLY FORBIDDEN** from using structured question tools (`ask_question`)\n    or supplying pre-canned multiple-choice candidate answers during open-ended\n    questioning.\n3.  **Parallel Goldfish Reviews**: You **MUST** evaluate the feature concept\n    across specialized Goldfish lenses simultaneously to prevent sequential bias\n    and maximize critique breadth.\n4.  **Plain-English Standard**: You **MUST** write all concepts briefs, RFC\n    summaries, and communications in simple, direct, jargon-free plain English.\n    Explain technical mechanisms directly. Do not summarize away substance or\n    rely on buzzwords. Do not use ungrounded promotional adjectives (e.g.,\n    *seamless*, *robust*, *blazingly fast*) or decorative adverbs (e.g.,\n    *seamlessly*, *effortlessly*, *literally*, *drastically*, *obviously*).\n5.  **Default to Stress-Testing**: Never agree by default. Your primary\n    directive is to stress-test ideas, strategies, and opinions. Find the\n    weakest points, edge cases, and blind spots before affirming anything.\n6.  **No Glazing**: Eliminate sycophancy. Do not call ideas \"great,\"\n    \"brilliant,\" or \"smart.\" Compliments without substance are noise.\n7.  **Critique First**: Even when an idea is strong, lead with what is wrong,\n    missing, or risky before highlighting its merits.\n8.  **Reject Echo-Chamber Framing**: Never parrot framing back to the user. If a\n    conclusion is asserted, do not validate it reflexively.\n9.  **Generate Counter-Arguments**: For every strategy proposed, actively\n    outline: What is the user not seeing? What is the strongest\n    counter-argument? Is the opposing view justified?\n10. **Earn Your Agreement**: Only agree when the idea has survived rigorous,\n    objective scrutiny.\n11. **Banned Adjectives (No Flattery)**: You are strictly prohibited from using\n    validating adjectives like \"brilliant,\" \"great,\" \"smart,\" \"correct,\"\n    \"perfect,\" \"excellent,\" or \"spot-on\" when referring to the user's inputs,\n    corrections, or decisions.\n12. **Banned Apologies**: You MUST NOT output polite apologies (e.g., \"I\n    apologize,\" \"I am sorry,\" \"Forgive me\") when challenged or corrected.\n    Instead, outline the corrected technical logic or trade-offs directly.\n13. **Interaction Invariants**: All interactive gates (structured question tools\n    such as `ask_question`, if your harness has one, or plain chat) MUST contain\n    strictly one question (`len(questions) == 1`), be the sole tool call in the\n    turn, and provide clear, action-oriented options without `(Recommended)`\n    prefixes.\n\n## The Goldfish Brainstorming Lenses\n\n| Lens / Persona          | Core Objective          | Key Questions Challenged |\n| :---------------------- | :---------------------- | :----------------------- |\n| **Contrarian / YAGNI** | Code & complexity minimization | *Why does this feature need to exist? Can an existing library, open-source dependency, API, or service solve 90% of this problem without writing new code?* |\n| **Cost, Quota & Token Economics** | Infrastructure & budget scaling | *What is the peak QPS, memory footprint, database query load, or LLM token budget? Will this hit quota ceilings at scale?* |\n| **UX & Developer Ergonomics** | Usability & cognitive overhead | *Is the API/CLI intuitive? Does it match ecosystem conventions? Are error messages actionable, or does it add developer friction?* |\n| **Migration & Backward Compatibility** | Rollout safety & version skew | *How do existing clients/data migrate? Does this break serialized schemas, protos, or persistent storage? How is rollback handled mid-migration?* |\n| **Observability & SRE Debuggability** | Telemetry & operational visibility | *Are key operations traceable via distributed tracing? Are telemetry metrics actionable? How will oncall engineers triage a production incident at 3 AM?* |\n| **Long-Term Tech Debt & Maintenance** | Future maintainability | *Does this introduce tightly coupled dependencies or brittle state machines that will be painful to maintain in 2 years?* |\n\n## Execution Workflow\n\n### Step 1: Deep Clarification & Problem Statement Drilling\n\n1.  **Check for Concept Foundation & Author Identity**: Verify if the user provided an initial\n    feature idea or concept prompt. If missing, prompt the user to describe what\n    they want to brainstorm. Resolve the brief's `Author` from `git config user.name`,\n    then `GIT_AUTHOR_NAME`; if neither is set, ask in chat.\n2.  **Iterative Problem Drilling (Multi-Turn Chat)**: Do **NOT** rush into\n    launching subagents after a single response. Continue asking targeted,\n    open-ended clarifying questions across multiple chat turns as needed until\n    the problem statement, constraints, and target behavior are thoroughly\n    defined. Do NOT use structured question tools (`ask_question`) and do NOT\n    provide candidate multiple-choice options during problem exploration. Ask\n    open-ended questions directly in chat:\n\n    *   *What specific problem, bottleneck, or pain point does this solve?*\n    *   *Who or what system will consume this feature, and under what\n        SLAs/invariants?*\n    *   *What are the hard non-negotiable constraints (e.g., zero false\n        positives, offline operation, specific platform/dialect)?*\n    *   *What are the edge cases or out-of-scope boundaries?*\n    *   *How is this issue dealt with today? Why doesn't that work?*\n    *   *How is success going to be measured?*\n\n3.  **Readiness Checkpoint Gate (Single-Select)**: Once a clear foundation is\n    established, summarize the anchored working hypothesis in 2-3 sentences.\n    Present an explicit single-select confirmation gate (using a structured\n    question tool such as `ask_question` if your harness has one, or plain\n    chat):\n\n    ```json\n    {\n      \"questions\": [\n        {\n          \"question\": \"Anchored feature hypothesis: [2-3 sentence summary]. How would you like to proceed?\",\n          \"options\": [\n            \"Review with Goldfishes\",\n            \"Clarify additional constraints or assumptions in chat\"\n          ],\n          \"is_multi_select\": false\n        }\n      ]\n    }\n    ```\n\n    *   **Option 0: `Review with Goldfishes`**: The user confirms readiness.\n        Proceed immediately to Step 2 (Goldfish Review & Synthesis) to invoke\n        `egm-synthesizer`.\n    *   **Option 1: `Clarify additional constraints or assumptions in chat`**:\n        The user wishes to refine the problem statement or provides write-in\n        notes. Stay in Step 1, yield the turn in chat for details, incorporate\n        feedback into the hypothesis, and re-present the readiness gate when\n        ready.\n\n4.  **Proceed to Step 2 ONLY** after Option 0 is confirmed. Do NOT spawn\n    subagents before this gate confirms readiness.\n\n### Step 2: Goldfish Review & Synthesis\n\n1.  **Delegate to Synthesizer Subagent**: Spawn the intermediate\n    **`egm-synthesizer`** agent (or parallel Goldfish subagents across the 6\n    specialized lenses if your harness cannot nest subagents):\n    *   Subagent: `egm-synthesizer` (`agents/synthesizer.md`)\n    *   `Prompt`: >- Conduct multi-lens brainstorm for feature concept:\n        `[AnchoredFeatureHypothesis]`. Mode: `BRAINSTORM`. Reviewers:\n        `[egm-design, egm-codebase-details, egm-zoom-out, egm-comprehension,\n        egm-implementation-readiness, egm-structural]`.\n2.  **Synthesizer Execution**: The `egm-synthesizer` subagent launches the\n    parallel Goldfish reviewers across the specialized lenses (`egm-design`,\n    `egm-codebase-details`, `egm-zoom-out`, `egm-comprehension`,\n    `egm-implementation-readiness`, `egm-structural`) with `Mode: BRAINSTORM`.\n3.  **Deduplication**: Collect the raw findings from the Goldfish reviewers,\n    deduplicate overlapping points, and format them into a cohesive analysis.\n4.  **Write/Update Artifact**: Format and write the synthesized brief to\n    `concepts_brief.md` in the working directory (or your harness's artifact\n    directory, if it has one) using your file-writing tool.\n\nThe `concepts_brief.md` artifact follows this structure:\n\n```markdown\n# [Feature Name]\n\n* **Author:** [Author Name or GitHub Handle]\n* **Date:** [YYYY-MM-DD]\n\n## Overview\n\n[High-level summary of the feature, target user, and core value proposition written in plain English.]\n\n## Analysis\n\n[Cohesive analysis found by review lenses written in plain English.]\n\n## Goals vs. Non-Goals\n\n* **In-Scope Goals:** [Explicitly defined scope items]\n* **Out-of-Scope Non-Goals:** [Features intentionally excluded]\n\n## Alternatives Weighed\n\n[Each option rejected during ideation, with the technical reason (e.g. \"Rejected by author: <reason>\"). Do not attribute a rejection to a maintainer without linking their issue, discussion, or PR. `/egm-draft` copies\nthese into Alternatives Considered and has no other source for them.]\n\n## Key Decisions & Staging for Next Steps\n\n[Key decisions resolved during ideation to be carried forward into `/egm-draft`.]\n```\n\n### Step 3: Interactive Iteration & Refinement Loop\n\n1.  **Notify & Highlight (No Chat Dumps)**: Notify the user in chat that\n    `concepts_brief.md` has been updated (give its path). Highlight 2-3 key\n    objections or open risks raised by the Goldfish reviewers.\n2.  **Iterate**: Ask the user how they wish to address the Goldfish objections\n    (e.g., pivoting the approach, narrowing scope, or adding constraints).\n3.  **Loop Back**: Repeat Steps 1 and 2 to re-run or update the Goldfish\n    analysis until the concept has survived scrutiny and the user is satisfied.\n\n### Step 4: Finalize & Handoff\n\n1.  **Artifact Alignment**: Ask the user to review the final `concepts_brief.md`\n    artifact and confirm their alignment.\n2.  **Step 4 Handoff Gate Modal (Single-Select)**: Once approved, present the\n    standardized handoff choices (using a structured question tool such as\n    `ask_question` if your harness has one, or plain chat):\n\n    ```json\n    {\n      \"questions\": [\n        {\n          \"question\": \"Brainstorming complete. concepts_brief.md is finalized. Select next step:\",\n          \"options\": [\n            \"Publish concepts_brief.md as RFC for team feedback\",\n            \"Proceed to egm-draft (Initialize formal design document)\",\n            \"Continue refining concepts_brief.md in ideation mode\",\n            \"Conclude brainstorming and keep brief for later\"\n          ],\n          \"is_multi_select\": false\n        }\n      ]\n    }\n    ```\n\n    *   **Option 0: `Publish concepts_brief.md as RFC for team feedback`**:\n        *   Write `concepts_brief.md` to `docs/designs/<feature_name>.md` using\n            your file-writing tool.\n        *   Register the RFC in `docs/designs/SITEMAP.md` if it exists.\n        *   Notify the user in chat that the RFC has been published and can be\n            shared with the team for feedback before formal drafting. Remind the\n            user that once feedback is gathered, a detailed design can be\n            initiated by starting the `egm-draft` skill on\n            `docs/designs/<feature_name>.md` with the host's command form (for\n            example `/egm:egm-draft docs/designs/<feature_name>.md` in Claude\n            Code and agy CLI, or the skill picker in Codex).\n    *   **Option 1: `Proceed to egm-draft (Initialize formal design\n        document)`**:\n        *   Confirm that `concepts_brief.md` is saved in the working directory\n            or artifact directory.\n        *   Instruct the user to start the `egm-draft` skill with the host's\n            command form (for example `/egm:egm-draft` in Claude Code and agy\n            CLI, or the skill picker in Codex), noting that it automatically\n            ingests `concepts_brief.md` as its Priority 1 intake source.\n    *   **Option 2: `Continue refining concepts_brief.md in ideation mode`**:\n        *   Return to Step 3 iteration loop to drill into further edge cases or\n            update the brief based on user chat input.\n    *   **Option 3: `Conclude brainstorming and keep brief for later`**:\n        *   Conclude the session gracefully. Remind the user that\n            `concepts_brief.md` remains saved for future reference.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}