agentleFS
dsifrydsifry/metaswarm/skills/brainstorming-extension/SKILL.md

brainstorming-extension

Skill426 starsChanged 6 months agoMITView on GitHub

Enforces the design review gate when brainstorming commits a project-sized design doc — bridges superpowers:brainstorming into the metaswarm quality pipeline

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is loaded (either by name or auto-activation), it provides the detailed procedure below.

    line 84
  2. Very specific:

    When brainstorming writes and commits a project-sized design doc (see guides/workflow-enforcement.md):

    line 90
  3. Very specific:

    If NEEDS_REVISION (at least one blocker: yes finding): Help user address the blockers, re-run gate.

    line 162
  4. Distinctive:

    If ALL APPROVED: Proceed to planning phase

    line 163
  5. Distinctive:

    When the severity rule escalates (cap hit, or a recurring or disputed blocker): Escalate to human decision (Revise / Narrow scope / Defer / …

    line 164

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Brainstorming Extension - Mandatory Review Gate Bridge

Purpose

This skill bridges superpowers:brainstorming into the metaswarm quality pipeline by enforcing the Design Review Gate when brainstorming writes and commits a project-sized design doc. Only project-sized work reaches the gate; quick tasks, chat-only designs and short design docs for small changes skip it (see guides/workflow-enforcement.md). Without this bridge, brainstorming flows directly into writing-plans, bypassing the 5-agent design review that catches architectural, security, and requirements issues before expensive implementation begins.

This is a critical workflow enforcement point, not a passive extension.


The Problem This Solves

superpowers:brainstorming ends by handing off to writing-plans: in superpowers 6.4.1 a terminal-state rule on the Architectural path says writing-plans is the only skill invoked next, and in 7.x an approved design doc leads to writing-plans. For a project-sized design doc this creates a pipeline bypass:

WITHOUT this extension (broken flow):

superpowers:brainstorming
    └── Commits a project-sized design doc
          └── writing-plans (DIRECTLY — no review!)
                └── executing-plans
                      └── Implementation begins on UNREVIEWED design
WITH this extension (correct flow):

superpowers:brainstorming
    └── Commits a project-sized design doc
          │
          ▼
    ┌─────────────────────────────────────────┐
    │  MANDATORY DESIGN REVIEW GATE           │
    │  (Enforced by CLAUDE.md + start-task)   │
    │                                         │
    │  5 parallel review agents:              │
    │  • Product Manager (use cases)          │
    │  • Architect (architecture)             │
    │  • Designer (UX/API)                    │
    │  • Security Design (threats)            │
    │  • CTO (TDD readiness)                 │
    │                                         │
    │  ALL FIVE must APPROVE                  │
    └─────────────────────────────────────────┘
          │
          ▼
    ALL APPROVED? ────No────► Iterate on design (severity-gated, cap 10)
          │
         Yes
          │
          ▼
    writing-plans (plan written) → plan-review-gate → (gate PASS) present plan + execution menu → orchestrated-execution
    (the gate runs before writing-plans presents the plan; see ./guides/workflow-enforcement.md)

How Enforcement Works

YAML frontmatter triggers (auto_activate, triggers) are metadata hints — Claude Code does not enforce them automatically. Instead, this enforcement works through three redundant mechanisms:

1. CLAUDE.md Template (Primary)

The CLAUDE.md template contains a "Workflow Enforcement (MANDATORY)" section that explicitly states:

After a project-sized design doc is committed: STOP → Run Design Review Gate → Wait for all 5 agents to APPROVE → Only then proceed

This instruction is loaded into every conversation and overrides conflicting skill instructions.

2. start-task Command (Secondary)

The /start-task command's Problem Definition Phase includes an explicit "Design Review Gate (project-sized designs only)" block that requires the gate once a project-sized design doc is committed.

3. This Skill Document (Reference)

When this skill is loaded (either by name or auto-activation), it provides the detailed procedure below.


Procedure: After a Project-Sized Design Doc Is Committed

When brainstorming writes and commits a project-sized design doc (see guides/workflow-enforcement.md):

Step 1: Announce the Gate

## Design Review Gate Activated

Your design document has been committed. Before proceeding to implementation,
I'll run it through our 5-agent review panel.

Spawning reviews (each `roleType("design-reviewer")`, role in the prompt):
- Product Manager Agent (use case/requirements validation)
- Architect Agent (technical architecture)
- Designer Agent (UX/API design)
- Security Design Agent (threat modeling/security review)
- CTO Agent (TDD readiness)

This typically takes 2-3 minutes...

Step 2: Invoke the Design Review Gate

Invoke the design-review-gate skill with the path to the design document. This spawns all 5 review agents in parallel.

Step 3: Report Results

If ALL APPROVED:

## Design Review Gate: PASSED

All five reviewers have approved your design!

| Agent           | Verdict  | Notes                                 |
| --------------- | -------- | ------------------------------------- |
| Product Manager | APPROVED | Clear use cases, measurable benefits  |
| Architect       | APPROVED | Clean architecture, follows patterns  |
| Designer        | APPROVED | Good API design, clear error states   |
| Security Design | APPROVED | No high-risk threats, mitigations OK  |
| CTO             | APPROVED | TDD specs present, ready to implement |

### Next Steps
1. Create epic for this feature
2. Create implementation plan (writing-plans)
3. Run plan through Plan Review Gate (3 adversarial reviewers)
4. Set up worktree for isolated development
5. Begin orchestrated execution

Ready to proceed? [Yes / No]

If ANY NEEDS_REVISION:

## Design Review Gate: NEEDS REVISION

Some reviewers found issues that need to be addressed.

### Blocking Issues
[Agent-specific issues listed here]

### Questions Requiring Answers
[Questions listed here]

---

Please revise the design document and I'll re-run the review gate.
(Round 1; severity-gated iteration, cap 10 rounds)

Step 4: Iterate or Proceed

  • If NEEDS_REVISION (at least one blocker: yes finding): Help user address the blockers, re-run gate. Iteration is severity-gated (cap 10 rounds; see the metaswarm plugin's guides/delivery-scope.md)
  • If ALL APPROVED: Proceed to planning phase
  • When the severity rule escalates (cap hit, or a recurring or disputed blocker): Escalate to human decision (Revise / Narrow scope / Defer / Cancel). Escalation never approves: a revised design gets a fresh review round

Skip Conditions

Quick tasks, chat-only designs and short design docs for small changes never reach the gate: they skip it automatically by size (see ./guides/workflow-enforcement.md). A project-sized design doc always goes through the gate; there is no user-requested exception. If the user thinks the work is not project-sized, re-size it during brainstorming (superpowers lets them choose a smaller size) instead of bypassing the gate.


Related Skills

  • superpowers:brainstorming — The upstream skill this bridges from
  • design-review-gate — The 5-agent review implementation
  • plan-review-gate — The next gate in the pipeline: runs once writing-plans has written the plan, before writing-plans presents the plan (see ./guides/workflow-enforcement.md)
  • orchestrated-execution — The execution framework after planning

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.