协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
workflow-onboard【开发与工程】First-contact orientation for an unfamiliar codebase. Use when "I'm new to this repo", "orient me", "explain this codebase", "what does this do?", "onboard me", "first day on this project", or "catch me up on the codebase".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Degree of freedom: MIXED. Briefing synthesis [HIGH freedom]; which files
to read and never printing env values [LOW freedom — run exactly].
Orient to any repo in under 5 minutes. Read first, explain second.
Read:
package.jsonis Next.js 16 + Supabase;src/app/(app)/*has dashboard, billing, settings; latest migration addsorganizations. Map: B2B dashboard; session via middleware +getUser(); runpnpm dev. Gap: no README scripts section;.env.examplelistsSTRIPE_SECRET_KEY. Brief: purpose + stack + route map + 4 tables + auth +pnpm dev+ env names + "start insrc/lib/billing".
workflow-environment-ready; parked work → housekeep-backlogRead these (grep finds fragments; the briefing needs the whole file). The table is the floor, not the ceiling: when the repo does not match it (monorepo, unusual framework, no src/app), follow what the manifest and top-level tree point to before writing anything:
| File | What to extract |
|---|---|
package.json / pyproject.toml / Cargo.toml | Runtime, framework, key deps, scripts |
README.md | Stated purpose, setup steps, architecture notes |
src/app/layout.tsx / pages/_app.tsx / App.tsx | Root component, providers, global context |
src/app/**/page.tsx / src/routes/** / app/routes/** | Route tree → feature map |
capacitor.config.* / app.json / app.config.* | Mobile targets (Expo/RN/Capacitor) |
android/ / ios/ presence | Native targets |
| File | What to extract |
|---|---|
supabase/migrations/*.sql (latest 3) | Schema, tables, relationships |
prisma/schema.prisma / drizzle/*.ts | ORM model |
src/lib/supabase.* / src/lib/db.* | Client init, auth helper |
.env.example / .env.local (names only, never values) | Required env vars |
middleware.ts / auth.ts / src/lib/auth.* | Auth guard pattern |
git log --oneline -15 # recent work direction
git diff HEAD~5 --stat # files changed recently
Produce a structured briefing covering:
package.json scriptsFormat as a scannable briefing, not a wall of text. Use short tables where helpful.
.env values — names only