一键导入
brainstorming
Structured ideation and decision-making for software. Trigger: When planning features, evaluating alternatives, or making architectural decisions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Structured ideation and decision-making for software. Trigger: When planning features, evaluating alternatives, or making architectural decisions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Paste-ready session summary for context transfer to a new chat. Trigger: User says 'context handoff', 'start fresh', or session needs to continue.
One-at-a-time questioning to fully profile a goal before acting. Trigger: User says 'grill me', goal is vague, or clarification is needed first.
Batch execution with checkpoints. Trigger: When executing plans with batched tasks.
Universal coding principles: DRY, security by default, null guards, and YAGNI. Trigger: When writing or reviewing code in any language or technology.
Accessibility guide (WCAG 2.1/2.2, Level A–AAA). Trigger: When building UI components, interactive elements, or auditing accessibility compliance.
Astro quality patterns: island philosophy, SEO by page type, and Core Web Vitals. Trigger: When reviewing Astro site quality or hydration decisions.
| name | brainstorming |
| description | Structured ideation and decision-making for software. Trigger: When planning features, evaluating alternatives, or making architectural decisions. |
| license | Apache 2.0 |
| metadata | {"version":"1.0","type":"behavioral"} |
Planning, ideation, problem decomposition, and trade-off analysis for software projects. Produces actionable decisions with documented rationale.
Don't use for:
Before generating solutions, define the problem clearly.
## Problem Statement
**What:** [Describe the problem or feature needed]
**Why:** [Business reason or user need]
**Constraints:** [Time, tech stack, performance, budget]
**Success criteria:** [How do we know it's solved?]
Never propose a single solution. Always generate 2-4 alternatives.
## Alternatives
### Option A: [Name]
- **Approach:** [Brief description]
- **Pros:** [Advantages]
- **Cons:** [Disadvantages]
- **Effort:** [T-shirt size: S/M/L/XL]
- **Risk:** [Low/Medium/High]
### Option B: [Name]
- **Approach:** [Brief description]
- **Pros:** [Advantages]
- **Cons:** [Disadvantages]
- **Effort:** [T-shirt size]
- **Risk:** [Low/Medium/High]
### Recommendation: Option [X]
**Rationale:** [Why this option best fits constraints]
Evaluate options against project priorities.
## Trade-Off Matrix
| Criteria | Weight | Option A | Option B | Option C |
|----------------|--------|----------|----------|----------|
| Performance | High | ✅ Good | ⚠️ Fair | ✅ Good |
| Maintainability| High | ✅ Good | ✅ Good | ⚠️ Fair |
| Time to build | Medium | ⚠️ 2w | ✅ 3d | ⚠️ 1w |
| Team familiarity| Low | ✅ Known | ❌ New | ✅ Known |
Break features into ordered, actionable tasks.
## Implementation Plan
### Phase 1: Foundation (Day 1-2)
1. [ ] Create data model and migrations
2. [ ] Implement repository interface
3. [ ] Add unit tests for domain logic
### Phase 2: Core Feature (Day 3-5)
4. [ ] Implement use case
5. [ ] Create API endpoint
6. [ ] Add integration tests
### Phase 3: Polish (Day 6-7)
7. [ ] Error handling and edge cases
8. [ ] Documentation
9. [ ] Code review
Record decisions with context so future developers understand the "why."
## Decision Record
**Decision:** Use WebSocket for real-time updates (not polling)
**Date:** 2026-02-09
**Context:** Users need <1s latency for order status updates
**Alternatives considered:**
- Polling (simpler but 5-10s latency)
- SSE (one-directional, insufficient for bidirectional needs)
- WebSocket (chosen — bidirectional, low latency)
**Consequences:** Need WebSocket server infrastructure, handle reconnection logic
# ❌ WRONG: Jump straight to solution
"Let's use Redis for caching"
# ✅ CORRECT: Define problem first
"We're seeing 2s response times on the product catalog API.
The bottleneck is DB queries for 50K+ products.
Options: Redis cache, DB query optimization, CDN for static data..."
User asks about approach/options?
→ Generate alternatives with trade-off analysis
Planning a new feature?
→ Problem definition → Alternatives → Recommendation → Task decomposition
Evaluating technology choices?
→ Trade-off matrix with weighted criteria
Complex problem needs breaking down?
→ Hierarchical decomposition into phases and tasks
Need to record an important decision?
→ Decision record with context and alternatives
Brainstorming applied to "Which state management approach for our React app?"
## Problem Statement
**What:** Choose a state management solution for a mid-size e-commerce app
**Why:** Current prop-drilling causes 3+ bug reports per sprint; 5-level prop chains
**Constraints:** React 18, TypeScript, team of 4, no major refactor budget
**Success criteria:** Shared state readable anywhere, <2 days migration
## Alternatives
### Option A: Context API + useReducer
- **Pros:** Built-in, no new dependency, sufficient for auth/theme/cart
- **Cons:** Re-renders all consumers on every update; not great for frequent updates
- **Effort:** S **Risk:** Low
### Option B: Zustand
- **Pros:** Minimal boilerplate, selective subscriptions (no re-render problem), tiny bundle
- **Cons:** Team unfamiliar (1–2 day ramp-up)
- **Effort:** S **Risk:** Low
### Option C: Redux Toolkit
- **Pros:** Mature, DevTools, scales to large teams
- **Cons:** Boilerplate overhead; overkill for current app size
- **Effort:** M **Risk:** Medium
### Recommendation: Option B (Zustand)
**Rationale:** Solves re-render issues, minimal API surface, quick ramp-up fits sprint budget.
## Decision Record
**Decision:** Zustand for global client state; React Query for server state
**Date:** 2026-02-20
**Alternatives considered:** Context API, Redux Toolkit
**Consequences:** Team ramp-up on Zustand (~1 day); no additional infra cost
Analysis paralysis: If >4 alternatives, filter to top 3 using constraints. Bias toward action.
Unknown requirements: Flag assumptions explicitly. Propose "spike" tasks to validate before committing.
Competing priorities: Use weighted trade-off matrix. Ask user to rank priorities (performance vs speed vs maintainability).
Reversible vs irreversible decisions: For reversible (can change later), bias toward faster option. For irreversible (database schema, public API), invest more in analysis.