协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
slicewise【开发与工程】A disciplined loop for implementing, fixing, refactoring, or unblocking a single feature or slice in an existing codebase. Reads the relevant docs/specs first and reports drift before coding, splits work into small file-disjoint commit units, and for each unit runs a build/test gate then dispatches two independent reviewers in parallel and reconciles…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
The everyday discipline for building one slice at a time in an existing codebase. You write the code yourself, but every commit unit is objectively verified — a full test gate plus two independent reviewers reconciled against each other — and the human, not the agent, decides what lands.
한국어 안내는 README.ko.md를 참고하세요.
git commit. You hand the user exact, file-disjoint git
blocks and they run them, on a fresh branch for the current issue. (Only commit yourself if the
user explicitly says "commit it" / "do it".)Read .slicewise.yml (or .json) at the repo root if present; otherwise auto-detect the
toolchain from the ecosystem. See docs/configuration.md for the schema and the detect table. The
keys you care about: build, test, integration, lint, docs (globs to read in Phase 1),
reviewers (the roster for Phase 4), troubleshooting_log, commit_convention. When a key is
absent, detect it (package.json→npm, Cargo.toml→cargo, go.mod→go test, pom.xml/build.gradle→mvn/gradle,
pyproject.toml→pytest, Makefile→make) and state what you detected so the user can correct you.
docs globs (default: docs/**, **/*.md, plus any OpenAPI/schema/ADR files),
the related code, and any design notes for this slice. Understand the contract before touching it.// TODO(impl) markers and fill it in deliberately — don't fake it.build command). It must pass — that's the floor, not the goal.test suite and confirm it is green (failures = 0).Dispatch the reviewer roster in parallel, in one message. All reviewers are read-only (they
report; they never edit). The zero-config default roster is the bundled code-reviewer agent run
twice with different lenses:
For cross-model diversity, set reviewers: ["codex", "code-reviewer"] in config to use one Codex
reviewer (via the codex plugin, if installed) plus one Claude reviewer. If a configured reviewer
isn't available, degrade to single and warn that the always-dual-review invariant is relaxed.
Shared prompt template (same for every reviewer, only the lens differs):
git diff of the working tree + the list of changed/new file paths + a couple of
reference files showing the pattern to match.file:line and a concrete fix. Explicit instruction: "If it's sound, say it's sound. Do not
fabricate issues."Reconcile (this step is the whole point). Compare the two reports; don't just concatenate them.
See docs/reconcile-rubric.md for the full decision table. In short:
test suite again — green.git add <exact paths for this unit>
git commit -m "<conventional subject>" -m "<body>"
Add a trailer (sign-off, issue ref, co-author) only if the project already uses one. The user runs
the blocks. If they say "do it", then you run them.grep for its old name across every doc
and generated artifact (overview docs, exported schema JSON, SVG diagrams) so no straggler survives.
Mark generated artifacts (SVGs, etc.) for regeneration. Historical changelog lines are history —
leave them.gh pr view <n> --json mergeable,mergeStateStatus,reviewDecision →
CONFLICTING (conflicts) / UNSTABLE or BLOCKED (checks) / review.origin/<base> in, resolve only the conflicts (union / consistency),
confirm zero markers, and get the whole merge tree green before handing off the push.When you hit a real troubleshooting trap (build, test, runtime, or a design pitfall), append it to the
configured troubleshooting_log (default TROUBLESHOOTING.md). Create it if missing; append to the
bottom if it exists — never a fresh file each time. Format each entry as: a one-line title (date +
feature/branch), then Cause / Resulting problem / Fix / Alternatives considered. Record only
reusable traps, not one-off typos — this is an accumulating asset so the next person doesn't hit the
same wall.
git diff (assume a clean baseline before the unit).build/test/lint and gh run via Bash. Prefer the repo's own scripts over ad-hoc commands.