brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
review-codebaseMulti-phase deep codebase review w/ severity ratings + structured output. Architecture, security, code quality, UX/a11y in single coordinated pass. Produces prioritized findings table → direct conversion to GH issues via create-github-issues.
Independent GitHub snapshot · Automated classification · Original documentation governs
Multi-phase deep codebase review producing severity-rated findings w/ fix-order rec. Unlike review-pull-request (scoped to diff) or single-domain reviews (security-audit-codebase, review-software-architecture), covers entire project/subproject across all quality dims in one pass.
target_path — root dir of codebase/subprojectscope — phases to run: full (default), security, architecture, quality, uxoutput_format — findings (table only), report (narrative), both (default)severity_threshold — min severity: LOW (default), MEDIUM, HIGH, CRITICALInventory codebase → est scope + ID review targets.
find target_path -type f | sort by extension→ Factual inventory — file counts, langs, test presence, dep health. No judgments yet.
If err: target empty/inaccessible → stop + report. Specific subdirs inaccessible → note + continue w/ available.
Assess structural health: coupling, duplication, data flow, separation of concerns.
→ List of architectural findings w/ severity + file refs. Common: mode dispatch duplication, missing abstraction layers, circular deps.
If err: codebase too small for meaningful review (<5 files) → note + skip Step 3. Architecture review needs enough code to have structure.
ID security vulns + defensive coding gaps.
innerHTML), SQL, command injection→ List of security findings w/ severity, affected files, remediation. CRITICAL = injection vulns + exposed secrets.
If err: no security-relevant code (pure docs project) → note + skip Step 4.
Eval maintainability, readability, defensive coding.
→ List of quality findings → maintainability. Common: magic numbers, inconsistent patterns, missing guards.
If err: codebase generated/minified → note + adjust expectations. Generated code has diff quality criteria than hand-written.
Eval UX + a11y compliance.
→ List of UX/a11y findings w/ WCAG refs. No frontend → "N/A — no frontend code detected."
If err: frontend exists but can't render (missing build step) → audit source code statically + note runtime testing not possible.
Compile all findings → prioritized summary.
→ Findings table w/ columns: #, Severity, Phase, File(s), Finding, Fix. Fix-order rec accounting for deps (e.g. "refactor architecture before adding tests").
If err: no findings produced → finding itself — codebase exceptionally clean or review too shallow. Re-examine ≥1 phase deeper.
output_format includes report, narrative sections accompany tableBetween review phases, use /rest as checkpoint — esp between phases 2-5 needing diff analytical perspectives. Checkpoint rest (brief, transitional) prevents momentum of one phase biasing next. See rest "Scaling Rest" for guidance on checkpoint vs full rest.
security-audit-codebase — deep-dive when review-codebase security phase reveals complex vulnsreview-software-architecture — detailed architecture review for specific subsystemsreview-ux-ui — comprehensive UX/a11y audit beyond phase 5review-pull-request — diff-scoped review for individual changesclean-codebase — impl code quality fixes ID'd by this reviewcreate-github-issues — convert findings → tracked GH issues