Agent skill
brainstorming
Use when exploring design approaches, generating ideas, or making architectural decisions. Triggers: 'explore options', 'what are the tradeoffs', 'how should I approach', 'let's think through', 'sketch out an approach', 'I need ideas for', 'how would you structure', 'what are my options'. Also invoked by develop when design decisions are needed.
Install this agent skill to your Project
npx add-skill https://github.com/axiomantic/spellbook/tree/main/skills/brainstorming
SKILL.md
Brainstorming Ideas Into Designs
Invariant Principles
- One Question Per Turn - Single questions get better answers. Wrong: "What's the goal and what are your constraints?" Right: "What problem does this solve?"
- Explore Before Committing - Propose 2-3 approaches with trade-offs before settling.
- Incremental Validation - Present designs in digestible sections; confirm understanding.
- YAGNI Ruthlessly - Simplest design that solves the problem.
- Context Determines Mode - Synthesis when context complete; interactive when discovery needed.
Inputs
| Input | Required | Description |
|---|---|---|
context.feature_idea |
Yes | User's description of what they want to create/modify |
context.constraints |
No | Known constraints (tech stack, performance, timeline) |
context.existing_patterns |
No | Patterns from codebase research |
context.mode_override |
No | "SYNTHESIS MODE" to skip discovery |
Outputs
| Output | Type | Description |
|---|---|---|
design_document |
File | Design doc at ~/.local/spellbook/docs/<project>/plans/YYYY-MM-DD-<topic>-design.md |
approach_decision |
Inline | Selected approach with rationale for alternatives considered |
implementation_ready |
Boolean | Whether design is complete enough to proceed |
Mode Detection
Synthesis mode active when context contains:
- "SYNTHESIS MODE" / "Mode: AUTONOMOUS" / "DO NOT ask questions"
- "Pre-Collected Discovery Context" or "design_context"
- Comprehensive architectural decisions, scope boundaries, success criteria already defined
| Mode | Behavior |
|---|---|
| Synthesis | Skip discovery. Make autonomous decisions. Document rationale. Write complete design. |
| Interactive | Ask questions one at a time. Validate incrementally. Collaborate. |
Synthesis Mode Protocol
Skip: Questions about purpose/constraints/criteria, "Which approach?", "Does this look right?", "Ready for implementation?"
Decide Autonomously: Architecture choice (document why), trade-offs (note alternatives), scope boundaries (flag ambiguity only).
Interactive Mode Protocol
Discovery Phase:
- Check project state (files, docs, commits)
- Explore subagent for codebase patterns (saves main context)
- One question per message. Prefer multiple choice.
- Focus: purpose, constraints, success criteria
Approach Selection:
- Propose 2-3 approaches with trade-offs
- Lead with recommendation and reasoning
Fractal exploration: When 2+ approaches have non-obvious trade-offs, invoke fractal-thinking with intensity pulse and seed: "What are the deep trade-offs between [approaches] for [feature]?". Use the synthesis to enrich the trade-off comparison presented to the user.
Design Presentation:
- 200-300 word sections
- Validate after each section
- Cover: architecture, components, data flow, error handling, testing
Design Complete: When and How
Completeness criteria: All sections covered (architecture, components, data flow, error handling, testing), no open contradictions, approach selected with rationale documented.
Documentation:
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
PROJECT_ENCODED=$(echo "$PROJECT_ROOT" | sed 's|^/||' | tr '/' '-')
mkdir -p ~/.local/spellbook/docs/$PROJECT_ENCODED/plans
# Write to: ~/.local/spellbook/docs/$PROJECT_ENCODED/plans/YYYY-MM-DD-<topic>-design.md
Implementation (interactive only):
- Ask: "Ready to set up for implementation?"
- Use
using-git-worktreesfor isolation - Use
writing-plansfor implementation plan
Design Quality Assessment
After completing a design document, assess quality using /design-assessment.
When to Assess
| Scenario | Action |
|---|---|
| Design for evaluative skill/command | Run /design-assessment --mode=autonomous to generate framework for the design |
| Complex design with multiple stakeholders | Run assessment to validate completeness |
| Design review requested | Use assessment dimensions as review criteria |
Assessment Protocol
- Generate framework:
/design-assessmentwith target typedocument - Score dimensions: Rate each dimension 0-5 using the generated rubric
- Document findings: Use finding schema for any issues discovered
- Determine verdict: Apply verdict logic to decide if design is ready
Design is ready for implementation when:
- All blocking dimensions (completeness, clarity, accuracy) score >= 3
- No CRITICAL or HIGH findings
- Verdict is READY </CRITICAL>
Synthesis Mode Integration
Run assessment autonomously:
- Generate document assessment framework via
/design-assessment - Self-score against dimensions
- If any blocking dimension < 3: pause and report gaps
- If verdict is NOT_READY or NEEDS_WORK: report gaps to user and iterate on design before proceeding
Error Handling
If /design-assessment fails (not found, error, timeout):
- Warn user: "Design assessment unavailable, proceeding without quality gate"
- Continue to implementation planning (degraded mode)
- Log the failure for debugging
Self-Check
Before completing:
- Presented 2-3 approaches with trade-offs before selecting
- Design doc written to correct external location (not project dir)
- All sections covered: architecture, components, data flow, error handling, testing
- No YAGNI violations (unnecessary complexity removed)
- Mode correctly detected (synthesis vs interactive)
If ANY unchecked: STOP and fix.
<FINAL_EMPHASIS> You are a Creative Systems Architect. A design that doesn't survive implementation is not a design — it is a liability. Trade-off analysis and mode detection are not optional steps to rush through. Your reputation depends on designs that hold up when implementation begins. </FINAL_EMPHASIS>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
spellbook-auditing
Meta-audit skill for spellbook development. Spawns parallel subagents to factcheck docs, optimize instructions, find token savings, and identify MCP candidates. Produces actionable report.
documentation-updates
Use after modifying library skills, library commands, or agents to ensure CHANGELOG, README, and docs are updated
project-encyclopedia
[DEPRECATED] Use project-level AGENTS.md files instead. Previously used for first-session codebase onboarding and persistent glossary creation.
reviewing-impl-plans
Use when reviewing implementation plans before execution. Triggers: 'is this plan solid', 'review the plan', 'check before I start building', 'anything missing from this plan', 'will this plan work', 'audit the implementation plan'. NOT for: reviewing design documents (use reviewing-design-docs) or creating plans (use writing-plans).
session-resume
Session resume protocol and session repairs handling. Loaded when spellbook_session_init returns resume_available: true, or when session_init returns a repairs array. Triggers: 'resume', 'continue', 'where were we', session resume, session repairs.
debugging
Use when debugging bugs, test failures, or unexpected behavior. Triggers: 'why isn't this working', 'this doesn't work', 'X is broken', 'something's wrong', 'getting an error', 'exception in', 'stopped working', 'regression', 'crash', 'hang', 'flaky test', 'intermittent failure', or when user pastes a stack trace/error output. NOT for: test quality issues (use fixing-tests), adding new behavior (use develop).
Didn't find tool you were looking for?