From pstack
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pstack:architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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 work. 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. Run the how skill over the relevant subsystems. Critique mode if existing structure is the constraint or the design needs to push back on it.
Naming a file isn't grounding. Produce the traced model how prescribes. If the design will redefine ownership or layering, also run the why skill on the existing shape so the rationale becomes a constraint, not a guess.
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 as input. Pass references/runner-prompt.md as each runner's prompt. Each candidate produces a design package shaped per references/rationale-template.md: type sketch, function signatures, module map, and prose rationale.
Use these slugs for the Phase B runners (Claude family only): claude-opus-4-8 (extended thinking), claude-opus-4-8 (standard), claude-sonnet-4-6, and claude-haiku-4-5. When you want a harsher review pass on a shortlisted design before locking it in, run the thermo-nuclear-code-quality-review skill on the candidate's sketch.
This is the exhaust-the-design-space principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.
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. When opted in, surface the synthesized design and pause for sign-off before continuing.
The synthesis can ship as its own commit either way. That's the "scaffold first" mode of the foundational-thinking principle skill; subsequent commits read as filling in bodies against a stable contract. Planned and scoped breakage during fill-in is fine, per the outcome-oriented-execution principle skill. 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, per the redesign-from-first-principles principle skill and the fix-root-causes principle skill.
The signal is a pattern, not single instances. Tells:
any, casts, optional fields that are always set in practice) to compile.Use judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex, and complexity in the data is not the same as complexity in the design. The rewrite signal is repeated friction of the same shape, not single hard cases.
When you do scrap:
One file with new types and signatures for small changes; the module map plus type definitions for larger work. The rationale ships alongside, shaped per references/rationale-template.md, including the synthesis decision.
npx claudepluginhub michael-denyer/pstack-claude --plugin pstackCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.