brainstorming
npx skills add https://github.com/nguyendinhquocx/code-ai --skill brainstorming
Agent 安装分布
Skill 文档
Brainstorming Ideas Into Requirements
Overview
Transform vague ideas into clear requirements through structured dialogue. Automatically detects OpenSpec context and guides appropriate workflow.
Core principle: Understand before building. One question at a time, validate incrementally.
When to Use
Use when:
- User proposes feature but requirements unclear
- Architectural decisions need exploration
- Multiple approaches exist, trade-offs need discussion
- Before OpenSpec proposals or implementation plans
- User says “I want to add…” without full details
Skip when:
- Requirements crystal clear
- User provided detailed specs
- Simple bug fix with obvious solution
The Process
1. Context Detection (Automatic)
Check OpenSpec context:
ls openspec/project.md openspec/specs/ 2>/dev/null
If found: Announce detection, tailor toward spec requirements, reference existing capabilities via openspec list --specs
If not: Generic brainstorming, offer design doc at end
2. Understanding (ONE question at a time)
Purpose & Goal:
- “Mà y muá»n giải quyết vấn Äá» gì?”
- “Ai sẽ dùng feature nà y?”
- “Success trông như thế nà o?”
Constraints:
- “Có giá»i hạn kỹ thuáºt nà o không?” (performance, compatibility)
- “Có deadline hay priority Äặc biá»t không?”
Scope:
- “Feature nà y có cần tương tác vá»i há» thá»ng nà o khác không?”
- “Có edge cases nà o cần xá» lý không?”
Rules: ONE question per message. Prefer multiple choice. Don’t overwhelm.
3. Exploring Approaches
Present 2-3 approaches with trade-offs:
Tao thấy có 3 cách là m:
1. [Approach A] (Recommended)
â [pros]
â [cons]
2. [Approach B]
â [pros]
â [cons]
Tao recommend [A] vì [lý do]. Mà y nghĩ sao?
Lead with recommendation, present alternatives honestly.
4. Incremental Validation
Present design in sections (200-300 words each):
- High-level architecture
- Data models / state
- Component breakdown
- Error handling
- Testing strategy (if complex)
After each section: “Phần nà y trông á»n chưa?”
5. Handoff
For OpenSpec:
Brainstorm xong. Tao Äã hiá»u:
- [summary bullet points]
Options:
1. /openspec:proposal - Formalize thà nh proposal
2. Start coding - Implement ngay
Muá»n gì?
For non-OpenSpec:
Brainstorm xong. Tao Äã hiá»u:
- [summary]
1. Viết design doc (docs/) trưá»c?
2. Start coding ngay?
Key Principles
- YAGNI ruthlessly – Remove unnecessary complexity
- One question at a time – Don’t overwhelm
- Multiple choice preferred – Easier to answer
- Explore alternatives – Show 2-3 approaches
- Incremental validation – Present sections, validate each
- Be flexible – Clarify when unclear
OpenSpec Integration
When detected:
- Reference existing specs:
openspec list --specs,openspec show <capability> --type spec - Consider capability mapping: modify existing or add new?
- Prepare for proposal: think requirements/scenarios, identify ADDED/MODIFIED/REMOVED
Example
User: "Tao muá»n add user authentication"
Assistant (detects openspec/):
"Phát hiá»n OpenSpec project. Sau brainstorm xong, tao sẽ suggest /openspec:proposal.
Mà y muá»n auth cho ai? (Admin / End-users / Cả hai)"
User: "End-users"
Assistant: "OK. Mà y muá»n JWT hay session-based?
(1) JWT - stateless, scalable
(2) Session - simple, easier to revoke"
[... continues through brainstorming process ...]
Assistant: "Brainstorm xong. Tao Äã hiá»u:
- End-user authentication
- JWT-based, stateless
- Email/password login
- Password reset flow
Muá»n chạy /openspec:proposal hay start coding ngay?"