Ctx brainstorm

From ActiveMemory/ctx · View interactive version

Ctx brainstorm is an AI agent skill from the GitHub repository ActiveMemory/ctx. Design before implementation. Use before any creative or constructive work (features, architecture, behavior changes) to transform vague ideas into validated designs.

How to use this skill

Skill file

Transform raw ideas into clear, validated designs through

structured dialogue before any implementation begins.

Before Brainstorming

  1. Check if design is needed: is the change complex enough

to warrant a design phase, or is the solution already clear?

  1. Review prior art: check .context/DECISIONS.md for

related past decisions; do not re-litigate settled choices

  1. Identify what exists: read relevant code and docs before

asking questions; do not ask the user things the codebase

already answers

When to Use

When NOT to Use

Usage Examples

/ctx-brainstorm
/ctx-brainstorm (new caching layer for the API)
/ctx-brainstorm (should we split the monolith?)

Operating Mode

Design facilitator, not builder.

Slow down just enough to get it right.

The Process

1. Understand Current Context

Before asking questions:

Do not design yet.

2. Clarify the Idea

Goal: shared clarity, not speed.

Rules:

Focus on:

3. Non-Functional Requirements

Explicitly clarify or propose assumptions for:

If the user is unsure, propose reasonable defaults and mark

them as assumptions.

4. Understanding Lock (Gate)

Before proposing any design, pause and provide:

Understanding Summary (5-7 bullets):

Assumptions: list all explicitly.

Open Questions: list unresolved items.

Then ask:

"Does this accurately reflect your intent? Confirm or

correct before we move to design."

Do NOT proceed until confirmed.

5. Explore Design Approaches

Once understanding is confirmed:

maintenance

6. Stress-Test the Chosen Approach

After the user picks an approach, pause for adversarial review

before moving to detailed design.

Surface assumptions:

Identify failure modes:

integration risks, operational complexity)

Steel-man an alternative:

Gate question:

"These are the risks I see. Do they change your preference, or

should we proceed with the chosen approach?"

Only move to detailed design after the user confirms. This is

one gate, not a debate: if the user says "proceed," proceed.

7. Present the Design

Break into digestible sections. After each, ask:

"Does this look right so far?"

Cover as relevant:

8. Decision Log

Maintain a running log throughout:

| Decision | Alternatives | Rationale |

|----------|--------------|-----------|

| ... | ... | ... |

After the Design

Persist to Context

Once validated, persist outputs:

# Record key decisions
ctx decision add "..." \
  --session-id ID --branch BR --commit HASH \
  --context "..." --rationale "..." --consequence "..."

Implementation Handoff

Only after documentation, ask:

"Ready to begin implementation?"

If yes:

Good Example

Understanding Summary:

- Building a cooldown mechanism for ctx agent hooks

- Prevents repetitive context injection on every tool use

- For Claude Code users running ctx in PreToolUse hooks

- Must be session-isolated (two sessions share no state)

- Non-goal: per-tool granularity (cooldown is global)

Assumptions: 10-minute default cooldown is reasonable.

Open Questions: none remaining.

Does this accurately reflect your intent?

Bad Examples

feature is for

during brainstorm)

Quality Checklist

Exit brainstorming mode only when:

If any criterion is unmet, continue refinement.

Principles

through the problem space before jumping to solutions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.