Skip to content
Back to skills

Brainstorming

ASecurity

Use when planning architectural tasks, multi-module restructuring, new system integrations, or exploring trade-offs between design options.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmentpythongosqltestingrefactoringapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add rabee-elkholy/android-agent-harness --skill brainstorming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brainstorming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Brainstorming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rabee-elkholy-brainstorming/badge)](https://www.skillsdirectory.com/skills/rabee-elkholy-brainstorming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: brainstorming
description: Use when planning architectural tasks, multi-module restructuring, new system integrations, or exploring trade-offs between design options.
disable-slash-command: true
---

# Brainstorming & Architecture Exploration Skill

## 1. Purpose & Planning Depth
Planning depth is advisory and categorizes tasks into two levels:
- **BOUNDED (Default)**: Normal bug fixes, targeted UI tweaks, single-screen features, small repository methods, or isolated Room migrations. These tasks skip architectural design ceremony and proceed directly to the standard implementation plan.
- **ARCHITECTURAL**: Multi-module restructuring, public API redesigns, persistence or networking layer swaps, major authentication redesigns, or app-wide state pattern migrations.

For `ARCHITECTURAL` tasks, activate this skill to work out a concise **Design-Lite** and carry the selected approach into the plan: `workflow.py draft --approach "..." --risks "..."`. The harness renders it in the approval summary and in the generated `plan.md`.

> [!IMPORTANT]
> **Single Approval Invariant**: The Design-Lite exploration does NOT create an extra approval round. The one plan approval (bound to the plan hash, which covers `--approach`) authorizes both the chosen design approach and the implementation plan.

---

## 2. Design-Lite Structure (ARCHITECTURAL Tasks)
When preparing an architectural plan, settle these points (the selected approach goes into `--approach`, trade-off risks into `--risks`):
1. **Goal & Constraints**: What must change and what non-negotiable boundaries exist.
2. **Current Architecture**: The existing pattern, module topology, or contract.
3. **Option A (Minimal / Evolutionary)**: Smallest blast radius, builds on existing code structure.
4. **Option B (Idiomatic Target Architecture)**: Clean separation of concerns, target patterns.
5. **Trade-offs**: Pros/cons, blast radius, migration complexity, token/build impact.
6. **Selected Approach & Rationale**: Why this approach was chosen.

---

## 3. Four-Phase Brainstorming Methodology

### Phase 1: Requirements, Reuse & Anti-Sycophancy Probing
1. **Zoom-Out Altitude Control (Symptom vs. Root Cause)**: Before designing around a reported symptom, zoom out one architectural level to verify whether the defect or requirement is an artifact of an upstream contract mismatch, duplicate state channel, or layer violation. Fix the root cause rather than adding defensive glue around a broken flow.
2. **Challenge Flawed Premises (Anti-Sycophancy)**: Never blindly validate a proposed design if it violates Android/KMP lifecycle guarantees, introduces race conditions, bypasses ViewModel/Repository boundaries, or adds speculative abstractions. Point out the concrete technical flaw and propose a sound alternative before drafting.
3. **Graph-Backed Codebase Reuse & Path Grounding**: Query the project graph (`graph --find` / `task-context`) before proposing any new Manager, Helper, UseCase, Repository, Validator, Formatter, Calculator, Interceptor, Mapper, or UI component. Reuse or extend existing classes whenever possible, and verify that no planned new file duplicates an existing symbol at another path.
4. **Minimalist Data Flow & YAGNI Justification**: Prefer transformations where data flows through a single source of truth (`StateFlow` / immutable domain model) without intermediate state caches or synchronization flags. Every newly proposed abstraction layer, wrapper interface, or state channel must justify its existence with a concrete multi-caller, platform-boundary (`expect`/`actual`), or unit-testability requirement.
5. **Underspecified Requirements & Edge Cases**: Probe data persistence needs (Room, SQLDelight, DataStore, SharedPreferences), network error handling, offline support, process death restoration, and backward compatibility constraints.

### Phase 2: TRIZ Contradiction Resolution & Trade-off Evaluation
When two architectural requirements appear to conflict (e.g., offline-first responsiveness vs. strict server consistency, or shared KMP `commonMain` purity vs. platform-native APIs):
1. **State the Technical Contradiction Explicitly**: Formulate what improving parameter $A$ degrades in parameter $B$, instead of hiding the tension behind a vague compromise.
2. **Distinguish Immutable Platform Bounds from False Compromises**: Separate hard Android/iOS OS bounds (main-thread frame budget, Binder transaction limits, process-death state serialization, KMP cinterop/ObjC export rules) from artificial codebase habits that can be eliminated by separating concerns in time, space, or layer boundary.
3. **Evaluate 2–3 Distinct Technical Approaches**:
   - **Option A (Minimal / Incremental)**: Smallest blast radius, fits existing code structure directly, minimal refactoring.
   - **Option B (Idiomatic MVI / Clean Architecture)**: Single-source `StateFlow`, isolated `UseCase`, clean domain entities, full separation of concerns.
   - **Option C (Decoupled / Cross-Module Boundary)**: Explicit domain contract or `expect`/`actual` bridge across modules.
   For each option, state **Pros & Cons**, **Blast Radius & Risk**, and **Secondary Operational Consequences** (what new maintenance, migration, or testing obligation the chosen design introduces).

### Phase 3: Android & KMP Platform Invariants Pre-Screening
Before proposing an approach, verify that it adheres to strict platform invariants:
- **Threading & ANR**: Zero synchronous disk or database I/O on `Dispatchers.Main`.
- **Database Migrations**: Incremental schema changes for Room (`@Entity` / `@Database`) and SQLDelight (`.sq` / `.sqm`).
- **Compose Stability**: `@Immutable` / `@Stable` state models, Lazy list keys, directional RTL padding.
- **KMP Source-Set Purity & Module DAG**: Upstream modules (`:core:*`, `:shared`) must be planned and checkpointed in earlier phases than downstream consumer modules (`:app`, `:feature:*`).
- **Localization**: Dual-locale Arabic (RTL) and English (LTR) string parity.

### Phase 4: Zero-Decision Implementation Readiness (Goldfish Naive-Reader Standard)
- Present trade-offs concisely to the developer in chat or via `ask_question` when user preferences are needed.
- Lock the agreed technical specification before running `workflow.py draft` so the resulting plan satisfies the **Zero-Decision Rule**: an independent executor or fresh-context specialist reviewer ("Goldfish") reading `plan.md` must have exact file paths, module ordering, approach summary, and risk mitigations without needing to invent undocumented architectural decisions mid-implementation.
- Run `python .agents/harness.py task plan-check --task-id <id>` when diagnosing plan readiness, path grounding, or multi-phase module DAG ordering.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.