brainstorm-with-file
Brainstorm ideas using multi-perspective analysis and documented iterative refinement.
Install
mkdir -p .claude/skills/brainstorm-with-file && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1153" && unzip -o skill.zip -d .claude/skills/brainstorm-with-file && rm skill.zipInstalls to .claude/skills/brainstorm-with-file
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Interactive brainstorming with documented thought evolution, multi-perspective analysis, and iterative refinement. Serial execution with no agent delegation.Key capabilities
- →Maintain a chronological record of thought development
- →Execute multi-perspective analysis (creative, pragmatic, systematic)
- →Automate web-based research to supplement internal ideas
- →Manage divergence and convergence of complex topics
- →Provide structured handoffs to execution planning tools
How it works
Runs sequential analytical steps that expand initial seeds into structured multi-perspective analysis, logging state in a markdown file.
Inputs & outputs
When to use brainstorm-with-file
- →Brainstorm new feature ideas
- →Analyze technical architecture
- →Explore research topics
About this skill
Codex Brainstorm-With-File Prompt
Overview
Interactive brainstorming workflow with documented thought evolution. Expands initial ideas through questioning, inline multi-perspective analysis, external research, and iterative refinement.
Core workflow: Seed Idea → Expand → Multi-Perspective Explore → Research → Refine → Crystallize → Next Step
Key features:
- brainstorm.md: Complete thought evolution timeline
- Multi-perspective analysis: Creative + Pragmatic + Systematic (serial, inline)
- External research: Web search for inspiration, patterns, and best practices via
web.run - Idea expansion: Progressive questioning and exploration
- Diverge-Converge cycles: Generate options then focus on best paths
- Progress tracking:
functions.update_planfor real-time phase progress visibility - Structured handoff: Terminal gate with execution planning, issue creation, or completion
Auto Mode
When --yes or -y: Auto-confirm exploration decisions, use recommended perspectives, skip interactive scoping.
Quick Start
# Basic usage
/codex:brainstorm-with-file TOPIC="How to improve developer onboarding experience"
# With perspective selection
/codex:brainstorm-with-file TOPIC="New caching strategy" --perspectives=creative,pragmatic,systematic
# Continue existing session
/codex:brainstorm-with-file TOPIC="caching strategy" --continue
# Auto mode (skip confirmations)
/codex:brainstorm-with-file -y TOPIC="Plugin architecture ideas"
Target Topic
$TOPIC
Configuration
| Flag | Default | Description |
|---|---|---|
-y, --yes | false | Auto-confirm all decisions |
--continue | false | Continue existing session |
--perspectives | creative,pragmatic,systematic | Comma-separated perspective list |
--max-ideas | 15 | Maximum ideas to track |
Session ID format: BS-{YYYY-MM-DD}-{slug}
- slug: lowercase, alphanumeric + CJK characters, max 40 chars
- date: YYYY-MM-DD (UTC+8)
- Auto-detect continue: session folder + brainstorm.md exists → continue mode
Brainstorm Flow
Step 0: Session Setup
├─ Parse topic, flags (--perspectives, --continue, -y)
├─ Generate session ID: BS-{date}-{slug}
├─ Create session folder (or detect existing → continue mode)
└─ functions.update_plan (5 phases: Seed → Explore → Refine → Converge → GATE)
Step 1: Seed Understanding
├─ Parse topic, identify brainstorm dimensions
├─ Role/perspective selection with user (or auto)
├─ Initial scoping via functions.request_user_input (mode, focus, constraints)
├─ Expand seed into exploration vectors
└─ Initialize brainstorm.md
Step 2: Divergent Exploration (Inline, No Agents)
├─ Detect codebase → search relevant modules, patterns
│ ├─ Run `ccw spec load --category exploration` (if spec system available)
│ └─ Use Grep, Glob, Read, mcp__ace-tool__search_context
├─ Multi-perspective analysis (serial, inline)
│ ├─ Creative perspective: innovation, cross-domain, challenge assumptions
│ ├─ Pragmatic perspective: feasibility, effort, blockers
│ └─ Systematic perspective: decomposition, patterns, scalability
├─ External research via web.run (optional — patterns, best practices, inspiration)
├─ Aggregate findings → perspectives.json + research.json
├─ Update brainstorm.md with Round 1
└─ Initial Idea Coverage Check
Step 3: Interactive Refinement (Multi-Round, max 6)
├─ Present current ideas and perspectives (Cumulative Context)
├─ Record findings to brainstorm.md BEFORE updating Current Ideas
├─ Gather user feedback via functions.request_user_input
├─ Process response:
│ ├─ Deep Dive → deeper inline analysis on selected ideas
│ ├─ Diverge → new inline analysis with different angles
│ ├─ Challenge → devil's advocate inline analysis
│ ├─ Merge → synthesize complementary ideas inline
│ ├─ 外部研究 → web.run for external inspiration/validation
│ └─ Converge → exit loop for synthesis
├─ Update brainstorm.md with round details
└─ Repeat until user selects converge or max rounds
Step 4: Convergence & Crystallization
├─ Consolidate all insights → synthesis.json
├─ Update brainstorm.md with final synthesis
├─ Batch top-idea review via functions.request_user_input
└─ MANDATORY Terminal Gate: 执行任务 / 产出Issue / 完成
├─ Execute Task → handoff-spec.json with implementation scope
├─ Create Issue → display issue creation command
└─ Done → end workflow
Output Artifacts
Phase 1: Seed Understanding
| Artifact | Purpose |
|---|---|
brainstorm.md | Initialized with session metadata, seed expansion, and exploration vectors |
| Session variables | Topic slug, brainstorm mode, dimensions, exploration vectors |
Phase 2: Divergent Exploration
| Artifact | Purpose |
|---|---|
exploration-codebase.json | Codebase context: relevant files, patterns, architecture constraints |
perspectives/*.json | Individual perspective outputs (creative, pragmatic, systematic) |
perspectives.json | Aggregated findings with synthesis (convergent/conflicting themes) |
Updated brainstorm.md | Round 1: Exploration results and multi-perspective analysis |
Phase 3: Interactive Refinement
| Artifact | Purpose |
|---|---|
ideas/{idea-slug}.md | Deep-dive analysis for selected ideas |
ideas/merged-idea-{n}.md | Merged idea documents |
Updated brainstorm.md | Round 2-6: User feedback, idea selections, refinement cycles |
Phase 4: Convergence & Crystallization
| Artifact | Purpose |
|---|---|
synthesis.json | Final synthesis: top ideas, recommendations, insights |
Final brainstorm.md | Complete thought evolution with conclusions |
Recording Protocol
CRITICAL: During brainstorming, the following situations MUST trigger immediate recording to brainstorm.md:
| Trigger | What to Record | Target Section |
|---|---|---|
| Idea generated | Idea content, source perspective, novelty/feasibility ratings | #### Ideas Generated |
| Perspective shift | Old framing → new framing, trigger reason | #### Decision Log |
| User feedback | User's original input, which ideas selected/rejected | #### User Input |
| Assumption challenged | Original assumption → challenge result, survivability | #### Challenged Assumptions |
| Ideas merged | Source ideas, merged concept, what was preserved/discarded | #### Decision Log |
| Scope adjustment | Before/after scope, trigger reason | #### Decision Log |
Decision Record Format
> **Decision**: [Description of the decision]
> - **Context**: [What triggered this decision]
> - **Options considered**: [Alternatives evaluated]
> - **Chosen**: [Selected approach] — **Reason**: [Rationale]
> - **Rejected**: [Why other options were discarded]
> - **Impact**: [Effect on brainstorming direction]
Narrative Synthesis Format
Append after each round update:
### Round N: Narrative Synthesis
**Starting point**: Based on previous round's [conclusions/questions], this round explored [starting point].
**Key progress**: [New ideas/findings] [confirmed/refuted/expanded] previous understanding of [topic area].
**Decision impact**: User selected [feedback type], directing brainstorming toward [adjusted/deepened/maintained].
**Current state**: After this round, top ideas are [updated idea rankings].
**Open directions**: [remaining exploration angles for next round]
Implementation Details
Phase 0: Session Initialization
const getUtc8ISOString = () => new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString()
// Parse flags
const autoYes = $ARGUMENTS.includes('--yes') || $ARGUMENTS.includes('-y')
const continueMode = $ARGUMENTS.includes('--continue')
const perspectivesMatch = $ARGUMENTS.match(/--perspectives[=\s]([\w,]+)/)
const selectedPerspectiveNames = perspectivesMatch
? perspectivesMatch[1].split(',')
: ['creative', 'pragmatic', 'systematic']
// Extract topic
const topic = $ARGUMENTS.replace(/--yes|-y|--continue|--perspectives[=\s][\w,]+|--max-ideas[=\s]\d+|TOPIC=/g, '').replace(/^["']|["']$/g, '').trim()
// Determine project root
const projectRoot = functions.exec_command('git rev-parse --show-toplevel 2>/dev/null || pwd').trim()
const slug = topic.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g, '-').substring(0, 40)
const dateStr = getUtc8ISOString().substring(0, 10)
const sessionId = `BS-${dateStr}-${slug}`
const sessionFolder = `${projectRoot}/.workflow/.brainstorm/${sessionId}`
// Auto-detect continue: session folder + brainstorm.md exists → continue mode
// If continue → load brainstorm.md + perspectives, resume from last round
functions.exec_command(`mkdir -p ${sessionFolder}`)
// Initialize progress tracking (MANDATORY)
functions.update_plan([
{ id: "phase-1", title: "Phase 1: Seed Understanding", status: "in_progress" },
{ id: "phase-2", title: "Phase 2: Divergent Exploration", status: "pending" },
{ id: "phase-3", title: "Phase 3: Interactive Refinement", status: "pending" },
{ id: "phase-4", title: "Phase 4: Convergence & Crystallization", status: "pending" },
{ id: "next-step", title: "GATE: Post-Completion Next Step", status: "pending" }
])
Phase 1: Seed Understanding
Objective: Parse the initial idea, identify exploration vectors, scope preferences, and initialize the brainstorm document.
Step 1.1: Parse Seed & Identify Dimensions
Match topic keywords against brainstorm dimensions (see Dimensions Reference):
// Match topic text against keyword lists from Dimensions Reference
// If multiple dimensions match, include all
// If none match, default to "technical" and "innovation"
const dimensions = identifyDimensions(topic, BRAINSTORM_DIMENSIONS)
Step 1.2: Role Selection
Recommend roles
Content truncated.
When not to use it
- →Executing code or building infrastructure
- →Handling static, non-evolving tasks requiring immediate output
Limitations
- →Serial execution makes it slow for broad topics
- →Quality heavily dependent on the quality of seed ideas
- →Session management relies on local file persistence
How it compares
Forces an iterative, documented exploration phase before jumping to final implementation.
Compared to similar skills
brainstorm-with-file side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| brainstorm-with-file (this skill) | 3 | 3mo | Review | Beginner |
| ideate | 1 | 6mo | No flags | Beginner |
| pdf-to-markdown | 1,175 | 8mo | Review | Beginner |
| markitdown | 177 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by catlog22
View all by catlog22 →You might also like
ideate
liveloveapp
Capture and document a new idea in this repo. Use when the user says things like "help me brainstorm", "I have an idea", or "let's capture this for the future" and wants it recorded in `design/ideas/` with a summary, supporting research (repo context + web if useful), and a sketch.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
markitdown
K-Dense-AI
Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting YouTube transcripts, or processing batches of files. Supports 20+ formats including DOCX, XLSX, PPTX, PDF, HTML, EPUB, CSV, JSON, images with OCR, and audio with transcription.
ml-paper-writing
davila7
Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.
qmd
tobi
Search personal markdown knowledge bases, notes, meeting transcripts, and documentation using QMD - a local hybrid search engine. Combines BM25 keyword search, vector semantic search, and LLM re-ranking. Use when users ask to search notes, find documents, look up information in their knowledge base, retrieve meeting notes, or search documentation. Triggers on "search markdown files", "search my notes", "find in docs", "look up", "what did I write about", "meeting notes about".
biorxiv-database
lifangda
Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.