AGENT SKILL

pstack-how

Explain architecture, runtime behavior, ownership, and module placement from the actual source.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pstack-how
description
Explain architecture, runtime behavior, ownership, and module placement from the actual source.

02 资源文件 3

03 SKILL.md 正文

How

Explore the codebase to answer "how does X work?" questions. Produce architectural explanations at the level of a senior engineer onboarding onto a subsystem, enough to build a working mental model, not so much that it reads like annotated source code.

Use the current harness's configured model and effort. Exploration is read-only. Existing FirstMate delegates may explore independent angles, but no new extension or model is required.

1. Assess complexity

If the scope is ambiguous, state your interpretation and explore. The user can redirect.

  • Simple (one module, utility, or narrow question): explore and explain directly using references/explainer-prompt.md. Go to step 4.
  • Complex (a subsystem spanning multiple files or services, a cross-cutting feature, a full architectural overview): go to step 2.

When in doubt, take the simple path.

If delegation is unavailable, explore each relevant angle yourself. Do not add a plugin or change model routing to run this guide.

2. Explore (complex only)

Decompose the question into 2 to 4 angles, each a distinct slice of the subsystem. Spawn all explorers in a single message, each with references/explorer-prompt.md and its angle filled in.

3. Synthesize (complex only)

Once all explorers have returned, spawn one explainer with references/explainer-prompt.md and every explorer's findings filled in.

4. Present

Present the explainer's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.

Output format

The explanation uses the sections defined in references/explainer-prompt.md, dropping any that do not apply: Overview, Key Concepts, How It Works, Where Things Live, Gotchas.

04 同仓库更多 Skills