pstack-how

pstack-how is a skill for Claude Code from dmae97/omk. It costs 62 tokens per session (677 once invoked), scanned A, original, MIT.

A codebase walkthrough that explains how a part of a system works, how data and control move through it, and where each responsibility belongs. It is written to give a new developer a usable mental model before making changes.

In plain words
What is it for?
It helps answer architecture questions, explain runtime flows, identify ownership, and onboard someone to a subsystem.
Why use it?
It reduces the time spent tracing unfamiliar code and helps avoid putting behavior in the wrong layer or package.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit It helps answer architecture questions, explain runtime flows, identify ownership, and onboard someone to a subsystem.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dmae97/omk/how
View source ↗ dmae97/omk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dmae97/omk --skill how
Clone the repo
git clone --depth 1 https://github.com/dmae97/omk

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pstack-how

README.md
[![agentmods](https://agentmods.dev/badge/skills/dmae97/omk/how/github.svg)](https://agentmods.dev/skills/dmae97/omk/how)
Your own site
<a href="https://agentmods.dev/skills/dmae97/omk/how"><img src="https://agentmods.dev/badge/skills/dmae97/omk/how/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pstack-how

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmae97/omk/how"><img src="https://agentmods.dev/badge/skills/dmae97/omk/how.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00677
Opus 5.5 $0.00025 $0.00271
Sonnet 5.5 $0.00012 $0.00135
Haiku 4.5 $0.00006 $0.00068

Measured today against content hash f58766292cf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pstack-how scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • how — 88% identical, 6 lines differ
  • how — 80% identical, 8 lines differ
packages/coding-agent/resources/pstack/skills/how/SKILL.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Every spawn is a subagent call with read-only exploration scope. Explorers use the how explorer line in the pstack settings file (~/.omk/agent/pstack-models.md, written by /skill:pstack-setup-pstack), and every explainer uses the how explainer line. OMK subagents inherit the session model, so a missing file or line, or an auto or inherit-parent entry, means the session model. If a configured model is not in the OMK catalog, run that seat on the session model and say so; never claim a cross-model seat you did not run. OMK subagents inherit the session model and effort; pass no model, effort, or speed fields.

1. Assess complexity

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

  • Simple (a single module, a small utility, a narrow question such as "how does function X work"): no explorers. Spawn one explainer that explores and explains in one pass, built from references/explainer-prompt.md without the explorer-findings section. 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.

Subagent tool. Spawns in this skill use OMK's subagent extension. Call it with agent, task, and agentScope, and use tasks: [{agent, task}, ...] for a parallel fan-out. Keep the prompt and inherit the session model. Pass no model, effort, or speed fields. If the subagent extension is not loaded or the project is not trusted, run each role yourself, one after another.

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.

Read the full file on GitHub · 39 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed f58766292cf5
  2. yesterday First seen · 39 lines · 62 tokens per session scan A fb2b9b39f535

Subscribe to this mod's changes

pstack-how is a skill published in the GitHub repository dmae97/omk (151 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 677 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.