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).
workflow-green-repoDrive a repository to a green baseline — typecheck, lint, tests, and build passing from a clean checkout — when fixing is authorized. Use when "make the repo green", "get CI passing", or "fix all the failing tests".
Independent GitHub snapshot · Automated classification · Original documentation governs
Degree of freedom: MIXED. Root-cause of each failure [HIGH freedom];
gate discovery, worklist, and no skip/silence [LOW freedom — run exactly].
Bring the repository to a verified-green baseline: every configured health gate passes from a clean state. This is broad, authorized cleanup — the one place where fixing unrelated pre-existing failures is the goal, not scope creep.
Green is defined by a fresh from-scratch run of every gate, not by the failures you happened to see. Enumerate first, externalize the worklist, fix root causes in batches, and re-run until zero.
Authorize: user said "get CI passing on this repo." Enumerate:
pnpm typecheck14 errors inlib/billing;pnpm test3 failures on date TZ. Fix-root: restore theInvoicediscriminant the last refactor dropped; fix TZ in the test clock, do not.skipthe suite. Prove: typecheck/lint/test/build re-run from scratch → clean; state file has zero open failures.
.skip, @ts-ignore, or weakened assertioncomplete-everything; one pattern → burndown-full; ratchet gaming → audit-gate-logiccomplete-everything.burndown-full.complete-everything.package.json
scripts, Makefile, justfile, CI workflows (.github/workflows/*),
AGENTS.md, CLAUDE.md, and README. Identify the exact commands for:
typecheck, lint/format, unit/integration tests, e2e (if any), build.Write .cursor/green-repo-state.md as the durable source of truth:
# Green Repo: <repo/package scope>
Gates: typecheck=`...` lint=`...` test=`...` e2e=`...|none` build=`...`
Baseline captured: <date>
## Failures
- [ ] typecheck: <file:line> — <error summary>
- [ ] lint: <rule> — <file(s)>
- [ ] test: <suite/case> — <assertion / error>
- [ ] build: <step> — <error>
## Flaky / environment-dependent (quarantine, do not fake-fix)
- [ ] <case> — <why it is nondeterministic>
## Discovered while fixing (append, then fix)
- (none yet)
## Intentional exceptions (justify each — needs human sign-off)
- (none yet)
## Evidence
- <gate>: <command> → <result>
State the totals: "N failing gates across M areas. Driving all to green." Mirror the worklist into the native task list for UI visibility; the state file wins after context compaction.
Work the list in small batches (one gate area or 5–10 related failures):
.skip/.only-ing a test,
narrowing an assertion so it cannot fail, @ts-ignore / eslint-disable /
any to hide a real type error, broad try/catch that swallows, or
blanket snapshot updates that mask regressions.Do not pause between batches to ask "continue?", and do not wrap up because the context is getting long — compaction will happen on a run this size and the state file carries the worklist across it. Keep going until the worklist is empty; re-read the state file instead of trusting memory.
Do not report green until every configured gate passes in a fresh run:
Any new failure or regression → add to the worklist and loop back to Phase 2.
For approved-plan or wide-change contexts, invoke completion-judge before the
final claim.
## Green Repo — report
Scope: <repo/packages>
### Result: GREEN | GREEN WITH QUARANTINE | BLOCKED
### Gates
- typecheck: `<cmd>` → clean
- lint: `<cmd>` → clean
- tests: `<cmd>` → <n> passed
- build: `<cmd>` → ok
### Fixed
- <count> failures across <areas>
### Quarantined / exceptions (each justified)
- <case> — <reason, tracking recommendation>
### Environment blockers (real human/infra gates only)
- none | <blocker + one precise ask>
Leave .cursor/green-repo-state.md in place as the audit trail unless asked to
remove it. Suggest committing mechanical fixes separately from behavioral ones
if that aids review.
complete-everything — close one plan's connected scope (not the whole repo)burndown-full — one searchable pattern to 100% coverageaudit-gate-logic — whether the green baseline / ratchet can be gamedverification-before-completion — evidence levels this skill provescompletion-judge — independent verdict before a green claimdebug-error — root-cause a single stubborn failure