Brainstorming
Explore and pressure-test new features, designs, and architecture before implementation.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/brainstorming-ganyuanran/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Use when defining new features, product behavior, UI/component design, architecture choices, contract changes, or ambiguous medium/high-complexity work before implementation, or when the user asks to grill or pressure-test a plan or design.
What this skill does
Execute
→ Direct grilling or plan/design pressure-test? → Enter Grilling Mode below. Soft challenge intent? → Use its one-line mode confirmation. Do not start normal design artifacts, document writing, task planning, or implementation during the interview.
→ New feature, product behavior, UI/component design, architecture/contract change, or ambiguous medium/high-complexity work? → Design first. No implementation until the needed design/spec is approved.
- Explore project context → read authority docs, check for existing patterns
- Ask clarifying questions one at a time (prefer multiple choice)
- Propose 2-3 approaches with trade-offs and your recommendation
- Present design sections → get user approval after each
- Write spec → self-review → user review → transition to writing-plans → HARD GATE: For tasks that match this skill, do NOT write code, scaffold projects, or invoke implementation skills until design/spec approval is satisfied.
Brainstorming Ideas Into Designs
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
Start by understanding the current project context and authority boundary, then ask questions one at a time to refine the idea. Once you understand what you're building, present the smallest design artifact that stabilizes the work and get the required approval.
<HARD-GATE> Do NOT invoke any implementation skill, write any code, scaffold any project, or take implementation action for work that matches this skill until you have presented the required design/spec and the user has approved it where this workflow requires approval. </HARD-GATE>Grilling Mode
Mode Precedence
While Grilling Mode is active, it overrides the normal brainstorming execution
flow. Suspend Checklist, The Process, the Compact output contract, and
all documentation or design-transition requirements until the user exits the
interview; retain the no-implementation hard gates.
Grilling Entry Signals
- Direct: The user asks to grill or interrogate an idea, plan, or design, or explicitly requests a pressure-test. Direct phrases include
grill me,grill this plan,审问我,盘问我, and拷问我. Enter the mode immediately. - Soft: The user asks to challenge assumptions, find holes, red-team, or "别顺着我" about a draft idea, plan, or design. Ask only:
Grill or normal brainstorming?Enter the mode only after confirmation. - Not grilling: A bare/literal phrase reference, or a PR, diff, or current-code review. Explain literal phrases normally; route implementation review to
requesting-code-review.
Opening Card
After the user has entered the mode, emit this once in the user's language, then begin the interview:
◆ Grilling Session
Target: <idea / plan / design>
Question path: value -> boundaries -> failure modes -> acceptance
Pace: deep (default) | fast (user-requested)
Pace
- Deep: Ask exactly one decision question per turn when it is blocking or depends on the previous answer. State the recommended answer and the most relevant trade-off before waiting.
- Fast: Only when the user explicitly asks for a fast or batched interview (for example,
fast,batch,快问, or一次问几个), ask at most three independent decision questions. Give each question its recommendation and trade-off, then wait for the user's responses. Return to deep pace for dependent follow-ups.
- Explore the codebase and current authority docs for facts before asking. Do not ask the user for facts that can be found locally.
- The user owns the decision. Do not treat a recommendation, a tentative answer, or a shared-understanding checkpoint as final approval.
- Aside from the one-time opening card, keep the turn to the observation, recommendation, and the selected pace's questions. Do not emit a full design ceremony, write docs, create a plan, or implement while the interview is active.
- End when the user says to stop, defer, or that the questions are sufficient. Summarize confirmed decisions, assumptions, unresolved questions, and the next optional step. That summary does not grant completion authority.
- If the user asks to proceed after the interview, return to the normal brainstorming design gate. A design/spec still needs the required approval before planning or implementation.
Route Away When It Is Small
Do not force this workflow onto low-complexity work. A tiny wording edit, single-owner bug fix, simple config/status question, or local utility change can proceed through concise intent, baseline check, TDD/debugging, and verification. If uncertainty or impact grows, escalate back here and write the smallest stabilizing spec.
Checklist
You MUST create a task for each of these items and complete them in order:
- Explore project context — check files, docs, recent commits, authority docs, CONTEXT.md
- Choose the path and scope — real design? diagnosis? route accordingly or decompose first
- Ask clarifying questions — one at a time, understand purpose/constraints/success criteria
- Draft working artifacts —
TaskIntentDraft,BaselineReadSetHint,BaselineUsageDraft,ImpactStatementDraft - Run existence check when adding new surfaces — only if an approach adds a new owner, skill, artifact, adapter, fallback, workflow step, or benchmark metric
- Propose 2-3 approaches — with trade-offs and your recommendation
- Present design — in sections scaled to complexity, get user approval where required
- Write spec artifact — save a Spec Brief or Design Spec under
docs/aegis/specs/when persistent requirements are needed - Spec self-review — check for placeholders, contradictions, ambiguity, scope, boundary
- User reviews written spec — ask user to review before proceeding
- Transition to implementation — invoke writing-plans skill (terminal state)
The terminal state is invoking writing-plans. Do NOT invoke any other implementation skill.
The Process
Understanding the idea:
- Check current project state first (files, docs, recent commits)
- Read relevant authority docs before asking deep questions
- If the request is diagnosis/root-cause/follow-up to an approved plan → route to correct workflow
- If the request spans multiple independent subsystems → flag and decompose first
- Ask clarifying questions one at a time, prefer multiple choice
- Separate facts, assumptions, unknowns while exploring
Working artifacts: Keep four drafts: TaskIntentDraft (outcome, goal,
success evidence, stop condition, non-goals, scope, risks),
BaselineReadSetHint (candidate docs, authority gaps),
BaselineUsageDraft (required refs, optionally delivered context refs,
acknowledged-before-plan refs, cited refs, missing refs, advisory decision),
and ImpactStatementDraft (affected layers, owners, invariants, compat,
non-goals). Refresh when scope changes.
Compact output contract: Aegis Visibility, TaskIntentDraft, BaselineReadSetHint,
BaselineUsageDraft, Requirement Ready Check, ImpactStatementDraft,
Existence Check, Product Risk Lens, Architecture Integrity Lens,
Baseline Role Alignment, Plan-Time Complexity Check, Options, and
Decision Needed. Use this compact shape before expanding into a full design
structure.
Aegis Visibility for this workflow names why design/spec clarification comes
before implementation and what drift, overbuild, wrong-owner, or missing
acceptance risk that restraint reduces. Keep it natural and task-specific; do
not turn it into a fixed skill trace.
Use a compact BaselineUsageDraft whenever the design direction depends on
specific baseline docs or current-authority refs:
BaselineUsageDraft:
- Required baseline refs:
- Delivered context refs:
- Acknowledged before plan refs:
- Cited in design refs:
- Missing refs:
- Decision: continue | needs-baseline-readback | needs-verification | pause-for-user | blocked
Delivered context refs is optional host-projected bookkeeping only. It is not
authoritative proof that a host injected or the model internally consumed a
context payload. The artifact exists to make baseline/context attention drift
visible before the design is recommended or approved.
Use a compact Requirement Ready Check before recommending a design when the
requirement is not already confirmed and complete:
Requirement Ready Check:
- Requirement source refs:
- Goals and scope refs:
- User / scenario refs:
- Requirement item refs:
- Acceptance / verification criteria refs:
- Open blocker questions:
- Decision: ready | needs-source | needs-goal-alignment | needs-scenario | needs-acceptance-criteria | needs-clarification | needs-user-decision | blocked
Treat task intent, conversation, source documents, and agent inference as
candidate requirement sources until project authority confirms them. If the
decision is not ready, keep the design at proposal/spec clarification level;
do not turn the gap into implementation tasks.
Existence Check: Before recommending an approach that adds a new owner,
skill, artifact, host adapter, fallback, compatibility path, workflow step, or
benchmark metric, check whether it needs to exist. Use
docs/current/AEGIS_MINIMALITY_REFERENCE.md as the reference. Do not force this
onto ordinary feature design that reuses existing owners and artifacts.
Existence Check:
- Proposed new surface:
- Existing owner / reuse candidate:
- Why existing surface is insufficient:
- Creation proof:
- Entropy / retirement impact:
- Decision: reuse-existing | add-with-proof | defer | reject | needs-first-principles-review
If the decision is reuse-existing, recommend the reuse path instead of a new
surface. If the decision is add-with-proof, carry the proof, verification
signal, and any retirement trigger into the design/spec.
Product Risk Lens: For ambiguous product, feature, UI, workflow, or architecture choices, add a compact review lens, not persona roleplay:
Product Risk Lens:
- Value:
- Non-goals:
- Trade-offs:
- Decision needed:
This is a review lens, not persona output. It does not override baseline evidence, approved requirements, or current authority docs; it only makes the product risk and decision point visible before implementation.
Plan-Time Complexity Check: Before choosing an implementation direction for medium/high work, inspect the likely owner files and current shape. This is an advisory design pressure check, not a gate and not completion authority. Do not force it onto tiny low-risk edits.
Use using-aegis/references/complexity-governance.md for the shared artifact
classes, pressure-signal interpretation, and over-budget handling.
Complexity Budget:
- Artifact class:
- Target files / artifacts:
- Current pressure:
- Projected post-change pressure:
- Budget result: within-budget | at-risk | over-budget
- Planned governance:
Plan-Time Complexity Check:
- Better file boundary:
- Recommendation: edit-in-place | extract helper | add owner file | split task | defer refactor
Exploring approaches: Propose 2-3 approaches with trade-offs and recommendation. Make scope boundary explicit: what's in, what's deferred, what belongs elsewhere.
Before approach selection, use Existence Check for any proposed new surface.
Escalate to first-principles-review and its Decision Hygiene Review when
the candidate direction still introduces a new owner, duplicate owner,
fallback, adapter, compat-only carrier, delete-first question, unverified
assumption, or "long-term stable" claim after the existence check. Do not make
either check a universal design ceremony; return to this workflow once the
decision surface is clean.
When the central decision is internal retirement vs compat retention vs
persistent-state confirmation, compose anti-entropy-governance. It classifies
the deletion target, chooses delete-first | compat-exception | confirmation-first, and keeps destructive authority outside the design skill.
Use the narrower Architecture Integrity Lens when the main risk is not broad
strategy but architecture coherence: unclear canonical owner, responsibility
overlap, caller-side fallback, stale path carrying real logic, or a possible
higher-level owner / contract / source-of-truth simplification. The lens should
answer invariant, canonical owner / contract, responsibility overlap,
higher-level simplification, retirement / falsifier, and verdict before the
approach is recommended.
Baseline Role Alignment: When a question may involve both "what should be built" and "where it should live", keep requirement truth separate from architecture truth:
Baseline Role Alignment:
- Product / Requirement Baseline:
- Architecture / Runtime Boundary Baseline:
- Result: aligned | Design Defect | Implementation Drift | missing-authority | needs-clarification
- scope: requirements | architecture | both
- Next action:
Use Design Defect when the relevant requirement, design, or baseline is wrong.
Use Implementation Drift when the work deviates from a correct unchanged
baseline. Architecture Defect and Architecture Drift remain compatibility
aliases for architecture-scoped Design Defect and architecture-scoped
Implementation Drift. This is a review lens, not a runtime gate or completion
authority.
Presenting the design: Scale sections to complexity. Cover only the surfaces that matter: architecture, components, data flow, error handling, testing, compatibility boundary. Get approval for the design before implementation when behavior, contract, architecture, or user-facing flow is being decided.
ADR signals: When the design/spec touches durable architecture surfaces (owner, public contract, artifact shape, dependency direction, source-of-truth, host compatibility, runtime-ready boundary, fallback, adapter, or retirement schedule), mark the ADR signal, source refs, real alternatives, and expected baseline-sync question for later completion. Do not create accepted architecture memory from unexecuted ideas.
Design for isolation: Each unit = one clear purpose, well-defined interface, testable independently. Can someone understand it without reading internals? Can you change internals without breaking consumers?
Existing codebases: Follow existing patterns. Include targeted improvements only when they serve the current goal. If the design touches contracts, compat, fallbacks, or duplicated owners → call it out directly.
After the Design
Documentation:
-
Aegis Project Workspace initialization (first creation only): If
docs/aegis/does not exist and configured Aegis workspace support is available, initialize the target project:python <aegis-workspace-helper> init --root <target-project-root>. If installed Aegis workspace support is unavailable, create it manually: a. Createdocs/aegis/README.md— describes workspace purpose and structure b. Createdocs/aegis/INDEX.md— empty index, will be appended below c. Createdocs/aegis/BASELINE-GOVERNANCE.mdfrom the template in "BASELINE-GOVERNANCE.md Template" section below d. If the project has existing code, create an initial baseline snapshot:docs/aegis/baseline/YYYY-MM-DD-initial-baseline.mdusing the "Initial Baseline Snapshot Template" below Ifdocs/aegis/already exists, use it — do not recreate. -
Write the validated spec artifact when needed: Use the smallest artifact that stabilizes the task:
- Spec Brief:
docs/aegis/specs/YYYY-MM-DD-<topic>-brief.mdfor medium tasks that need what/why/acceptance pinned before planning. - Design Spec:
docs/aegis/specs/YYYY-MM-DD-<topic>-design.mdfor high complexity, architecture, contract, migration, cross-module, or ambiguous behavior requiring user review. Specs always go tospecs/— never towork/.
- Spec Brief:
-
Update INDEX.md: Prefer configured Aegis workspace support:
python <aegis-workspace-helper> append-index --root <target-project-root> --path docs/aegis/specs/<filename>.md --kind spec --title "<title>". If workspace support is unavailable, append the new spec entry todocs/aegis/INDEX.mdmanually. After the append, runpython <aegis-workspace-helper> check --root <target-project-root>when configured workspace support is available. This validates structure and index coverage only; it does not grant completion authority. -
Commit the design document to git.
-
Include the latest
TaskIntentDraft,BaselineReadSetHint,BaselineUsageDraft, andImpactStatementDraftinline or in an appendix when they materially shaped the design. -
Record explicit non-goals and compatibility boundaries so the later implementation plan does not drift.
Spec Self-Review: After writing the spec document, look at it with fresh eyes:
- Placeholder scan: Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
- Internal consistency: Do any sections contradict each other? Does the architecture match the feature descriptions?
- Scope check: Is this focused enough for a single implementation plan, or does it need decomposition?
- Ambiguity check: Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
- Boundary check: Did you clearly mark invariants, compatibility
boundaries, owners, non-goals, and any ADR signals for later completion
backfill? If the spec endorses a risky approach, confirm the
first-principles-reviewDecision Hygiene RevieworArchitecture Integrity Lensresult is reflected or explicitly marked unnecessary.
Fix any issues inline. No need to re-review — just fix and move on.
User Review Gate: After a Design Spec review loop passes, ask the user to review the written spec before proceeding:
"Spec written and committed to
<path>. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
Wait for the user's response when this workflow requires review. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves. For a small Spec Brief created only to pin medium-task acceptance, user review may be concise unless project rules require a formal approval step.
Implementation:
- Invoke the writing-plans skill to create a detailed implementation plan
- Do NOT invoke any other skill. writing-plans is the next step.
Key Principles
- One question at a time - Don't overwhelm with multiple questions
- Multiple choice preferred - Easier to answer than open-ended when possible
- YAGNI ruthlessly - Remove unnecessary features from all designs
- Explore alternatives - Always propose 2-3 approaches before settling
- Incremental validation - Present design, get approval before moving on
- Be flexible - Go back and clarify when something doesn't make sense
BASELINE-GOVERNANCE.md Template
When creating docs/aegis/BASELINE-GOVERNANCE.md for the first time, use this template:
# Baseline Governance
## 1. Baseline Roles
- Product / Requirement Baseline: confirmed requirement sources, target state,
goals and scope, users / scenarios, requirement items, acceptance /
verification criteria, non-goals, workflow constraints, open questions,
change records, and approved requirement/spec intent.
- Architecture / Runtime Boundary Baseline: canonical owner, contract,
source-of-truth boundary, dependency direction, compatibility, runtime-ready
boundary, and retirement state.
## 2. Design Defect
A confirmed error, gap, contradiction, or wrong abstraction IN the relevant
requirement, design, or baseline.
- Fix the defective requirement/design/baseline first.
- Then align implementation to the corrected baseline.
- Do NOT patch implementation around a defective baseline.
## 3. Implementation Drift
Implementation, plan, review, or documentation has deviated from a confirmed,
correct, unchanged requirement or architecture baseline.
- Return to baseline via the simplest stable path.
- Do NOT "update baseline to match drift" without explicit review.
## 4. Compatibility Aliases
- Architecture Defect = architecture-scoped Design Defect.
- Architecture Drift = architecture-scoped Implementation Drift.
- New findings should report Design Defect / Implementation Drift plus
`scope: requirements | architecture | both`.
## 5. Baseline Check Protocol
Before non-trivial changes:
1. Read the latest Product / Requirement Baseline candidate.
2. Read the latest Architecture / Runtime Boundary Baseline candidate.
3. Compare current work against requirement acceptance and architecture owner /
contract boundaries.
4. Check for new anti-patterns not recorded in known list.
5. Report: aligned / Design Defect / Implementation Drift /
missing-authority / needs-clarification, with
`scope: requirements | architecture | both`.
## 6. Architecture Review — 7 Dimensions
After each non-trivial change:
1. **Ownership integrity** — every component has exactly one canonical owner
2. **Module boundaries** — no unauthorized cross-module coupling
3. **Contract changes** — all API/signature/behavior contract changes documented
4. **Cascade proliferation** — no new cascading dependency chains
5. **Dependency direction** — dependencies flow toward stability
6. **Retirement completeness** — old owners/fallbacks/paths removed or scheduled
7. **Entropy flow** — net complexity decreased or stayed; no unjustified new entities
## 7. Hard Boundaries
- BASELINE-GOVERNANCE.md is the constitution for THIS project's Aegis workspace
- Baseline snapshots in `baseline/` are evidence, not authority
- ADRs in `adr/` record decisions; they do not replace baseline governance
- This file is NEVER auto-updated — changes require explicit user review
Initial Baseline Snapshot Template
When creating the first docs/aegis/baseline/YYYY-MM-DD-initial-baseline.md:
Bootstrap the project's dual baselines instead of writing a flat repo inventory.
The first baseline should make later Baseline Role Alignment checks possible
even when the repo is still early or partially defined.
Minimum shape:
# <Project> Initial Baseline
Date: `YYYY-MM-DD`
Status: `initial dual-baseline snapshot`
## 1. Purpose
- why this baseline exists
- what later alignment checks should use it for
## 2. Workspace Structure
- top-level directories, entry points, substrate roots, or seams worth tracking
## 3. Current Authority Surfaces
- README / AGENTS / ADR / spec / baseline / external reference roots
- current authority gaps or missing documents
## 4. Product / Requirement Baseline
### 4.1 Current Truth
- confirmed requirement sources or current authority gaps
- target state, goals, and scope
- target users, roles, usage scenarios, or system scenarios
- functional, quality, constraint, and delivery / transition requirement items
- acceptance / verification criteria and evidence expectations
- success evidence, value claim, or phase focus already fixed
### 4.2 Non-negotiables
1. ...
### 4.3 Product Non-goals
- ...
## 5. Architecture / Runtime Boundary Baseline
### 5.1 Current Truth
- canonical owner or substrate split
- contract / source-of-truth boundary
- dependency direction or owner layering already fixed
### 5.2 Architecture Non-negotiables
1. ...
### 5.3 Architecture Non-goals
- ...
## 6. Ownership / Contract Snapshot
- important surface -> current owner
- contract seams, missing seam inventory, or boundary gaps
## 7. Current State and Risks
- current stage
- known risks, unknowns, or missing evidence
## 8. Alignment Use
- when to read the Product / Requirement Baseline
- when to read the Architecture / Runtime Boundary Baseline
- when to report `scope: both`
## 9. Compatibility Boundary
- what must NOT break during early work
Do not collapse the first bootstrap baseline into a generic 10-field checklist. If the project is sparse, keep sections short and mark authority gaps explicitly instead of guessing.
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
UI/UX Pro Max
anthropics
Build production-grade web components and interfaces with distinctive, polished design.
Artifact Theme Toolkit
anthropics
Apply professional color and font themes to slides, docs, and web pages.
Multi-Component Web Artifacts
anthropics
Build complex React artifacts with Tailwind CSS and shadcn/ui components.