/pstack-picks:architectfrom pstack-picks
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.
Ships in pstack-picks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design before implementing. Sketch types, function signatures, class shapes, and module boundaries with not implemented bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch. If implementation proves the sketch wrong, throw it out and redesign.
Open a todolist with one entry per phase before starting. Autonomous mode without checkpoints needs the list to show phase position and keep phases from silently disappearing.
Build a real mental model of every system the new code touches. Fan out two to four Agent calls with
subagent_type: "Explore" in one message, each on a distinct slice of the affected subsystems, then
synthesize their findings yourself into one written model: what the subsystem does, its key concepts,
the runtime flow, where things live, and the gotchas.
Naming a file isn't grounding. Produce that traced model in writing before Phase B. If the design
redefines ownership or layering, also recover the rationale for the current shape before you overwrite
it: git log --follow -p on the files, git blame on the boundary, and gh pr view on the PRs that
moved it. Rationale you found is a constraint. Rationale you guessed is not.
Skip Phase A only when the work is genuinely greenfield with no surrounding system to integrate.
Run the arena skill with the design-sketch task and the Phase A grounding artifacts. Pass references/runner-prompt.md as each runner's prompt. Each candidate produces a design package shaped per references/rationale-template.md: the caller's usage written first, then the type sketch, function signatures, module map, and prose rationale derived from it.
Take the runner panel from references/models.md. The default is Agent with
model: "opus", Agent with model: "sonnet", and one cross-family arm on subagent_type: "codex:codex-rescue".
Design it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. Build competing prototypes and compare them side by side rather than committing to the first shape that compiles. Whole-shape alternatives, not point fixes inside one shape.
Screen every candidate against references/design-red-flags.md before synthesis. Reject or revise shallow modules, information leakage, temporal decomposition, and pass-through methods.
Compare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.
Arena returns one synthesized design package. The synthesis decision populates the rationale's "Synthesis decision" section.
Default: proceed directly to implementation with the synthesized design. No human checkpoint.
Opt in to a checkpoint when the invoker explicitly asks: "/architect with checkpoint," "stop and show me before implementing," or similar. Then surface the synthesized design and pause for sign-off.
The synthesis can ship as its own commit either way. Scaffold first: get the data structures and the contract right, and subsequent commits read as filling in bodies against a stable shape. Planned and scoped breakage during fill-in is fine; converge on the target architecture instead of writing throwaway compatibility code to keep every intermediate state green. For adversarial pressure on the design before implementing, run the interrogate skill on the synthesized sketch.
If the human pushes back on the shape (in a checkpoint or after the fact), treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.
Replace not implemented bodies with code, pseudocode with logic. The synthesized sketch is the contract.
Deviations from the sketch are signal worth surfacing, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching. Surface it; don't bolt it on.
If implementation keeps producing friction the sketch can't absorb, throw the sketch out. Don't bolt fixes onto a wrong design. Trace the friction to its root and redesign there, rather than adding guards that silence the symptom.
The signal is a pattern, not single instances. Tells:
any, casts, optional fields always set in practice) to compile.Use judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex; complexity in the data is not complexity in the design. The rewrite signal is repeated friction of the same shape, not single hard cases.
When you scrap:
The caller's usage is written first and the type sketch derived from it. One file with new types and signatures for small changes; module map plus type definitions for larger work. The rationale ships alongside, shaped per references/rationale-template.md, including the usage sketch and the synthesis decision.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gethubgod/worker-skills --plugin pstack-picks20 skills in this plugin
/arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automate-meUse for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill, optionally pulling fresh evidence from recent transcripts./blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust.Other plugins' skills for the same job