/pstack-pi:howfrom pstack-pi
Explains how subsystems and features work through codebase exploration. Supports explain and critique modes for architectural understanding.
Ships in pstack-pi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Follow the portable runtime contract for explorer, synthesizer, and reviewer roles, model choices, and host fallbacks.
Explore the codebase to answer "how does X work?" questions. Produce clear architectural explanations at the level of a senior engineer onboarding onto a subsystem. Enough to build a working mental model, not annotated source code.
Two modes:
Parse what the user is asking about:
Identify the scope. If ambiguous, state your best-guess interpretation before exploring. Don't ask. Let the user redirect if you're off.
Assess complexity to decide the approach:
When in doubt, lean simple. You can always spawn explorers if the explainer hits a wall.
Decompose the question into 2-4 parallel exploration angles, each a distinct slice of the subsystem so explorers don't duplicate work. Example split for "how does the rate limiter work?":
The right decomposition depends on the question. Use your judgment. Narrow questions: 2 explorers is fine. Broad subsystems: up to 4.
Launch all explorers concurrently through the host's task facility. Use the configured how explorer choice when present; otherwise use the canonical explorer role. Every explorer is read-only and receives a standalone brief.
Each explorer gets the same base prompt from references/explorer-prompt.md plus a specific exploration angle naming its slice. Each explorer should:
Each explorer returns structured findings: components found, flow traced, files read, anything non-obvious. Overlap between explorers is fine; the explainer reconciles.
Then proceed to Step 3.
Launch one read-only child that explores and explains in one pass. Use the configured how explainer choice when present; otherwise use the canonical synthesizer role.
The agent does its own exploration with the host's file search, text search, and file-read capabilities and writes the explanation directly. Read references/explainer-prompt.md for the communication style and output format. Same structure, just no explorer findings as input.
Proceed to Step 4.
Once all explorers return, launch one read-only child to synthesize their findings into a coherent explanation. Use the configured how explainer choice when present; otherwise use the canonical synthesizer role.
The explainer gets all explorers' findings and writes the human-facing explanation (output format below). Read references/explainer-prompt.md for the full prompt template. The explainer reconciles overlapping findings, resolves contradictions, and weaves the slices into a unified picture.
Present the explainer's output to the user. You may lightly edit for clarity or add context from the conversation, but don't substantially rewrite. The explainer's communication is the product.
Follow this structure, adapted to the question. Not every section is needed for every question.
Overview. 1-2 paragraphs. What it is, what it does, why it exists. Enough to decide whether to keep reading.
Key Concepts. The important types, services, or abstractions. Brief definition of each. Not exhaustive, just the ones needed to understand the rest.
How It Works. The core of the explanation. Walk through the flow: what triggers it, what happens step by step, where data goes, the decision points. Prose, not pseudocode. Reference specific files and functions so the reader can go look, but don't dump code blocks unless a snippet is genuinely necessary.
Where Things Live. A brief map of the relevant files/directories. Not every file, just the ones needed to start working in this area.
Gotchas. Non-obvious or surprising things that would trip someone up. Historical context that explains why something looks weird. Known sharp edges.
Triggered when the user asks for architectural issues, problems, or improvements, not just understanding.
Run the full explain flow above (Steps 1-4). You must understand the architecture before critiquing it.
After the explanation is complete, launch one architectural critic per choice in the configured how critics panel, concurrently. If no panel is configured, use a diverse host-supported panel drawn from reviewer, planner, designer, and inherit-parent.
Each critic is read-only and gets one panel choice. The lead may select a stronger host-supported choice when the architecture warrants deeper analysis.
Read references/critic-prompt.md for the prompt template. Each critic gets:
references/critique-rubric.mdSame framework as the interrogate skill. You're a pragmatic lead, not an aggregator.
Categorize findings:
Present the explanation first (from Step 1), then the critique verdict below it. The explanation should stand on its own; someone who just wants to understand the system shouldn't wade through critique.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-exploration, architecture, onboarding, code-walkthrough
Generated from the plugin's indexed repository (shrimpwtf/oh-my-pstack) — no native marketplace selected
npx claudepluginhub p/shrimpwtf-pstack-pi49 skills in this plugin
/architectSketch 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./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 + unslop, optionally pulling fresh evidence from recent transcripts.Other plugins' skills for the same job