协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
workflow-build-feature【开发与工程】Build a feature end to end: spec and TDD, implement, unit tests, Playwright check, PR. Use when "build a feature" or "implement this end-to-end". Spec/TDD loop only → workflow-spec-tdd. One bug → workflow-fix-and-ship.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Degree of freedom: MIXED. How to implement Phase 2 [HIGH freedom];
phase order and "no implementation before RED" [LOW freedom — run exactly].
One command that runs the full feature loop. Don't skip phases — each gate catches a class of defects the next phase can't.
Contract: "add a forgot-password link" — email reset, not a magic-link login rewrite. Sequence: spec + RED on the request-reset handler before any UI. Prove: RED failed on missing route; GREEN + Playwright submits the form and sees the check-email state. Handoff: PR links the spec, the RED/GREEN commands, and the smoke screenshot.
workflow-fix-and-ship; spec loop only → workflow-spec-tdd1. SPEC → workflow-spec-tdd (contract, plan, RED test)
2. BUILD → implement against the spec (GREEN)
3. UNIT TEST → test-unit (edge cases, mocks, coverage)
4. SMOKE → test-playwright (drive the live app as a real user, fix pain points)
5. PR → workflow-pr (create PR with test evidence)
The turn ends at the Done criteria or at a real gate — a decision only the user can make, a missing credential, a failing service. A phase summary is a progress note, not a stopping point.
Read the
workflow-spec-tddskill and follow it.
Key outputs:
When the ask is loosely specified, read the relevant routes, schema, tests, and sibling features broadly before writing the spec, so it is grounded in what the repo does rather than the first plausible reading.
Do not write implementation code until the spec and RED test exist.
Implement against the spec. Rules:
Read the
test-unitskill and follow it.
Focus on:
Read the
test-playwrightskill and follow it.
Drive the live app through the new feature as a real user. Fix pain points inline (full-stack: UI + API + DB). Capture screenshots as evidence.
Before any browser action, apply protocol-browser-anti-stall rules.
Read the
workflow-prskill and follow it.
Include in the PR description: