how

how is a skill for Claude Code, Codex, Cursor from backnotprop/pstack. It costs 60 tokens per session (317 once invoked), scanned A, original, MIT.

A codebase guide for explaining how software is organised and how it behaves while running. It can also review whether parts of the design belong in the right place.

In plain words
What is it for?
Use it to trace feature flows, understand subsystems, decide which package or layer should own code, and review architectural choices.
Why use it?
It gives developers a working mental model before they change unfamiliar code, so they do not have to piece together architecture from scattered files.

Skill for Claude CodeCodexCursor

Written for Claude Code and Cursor and Codex: disable-model-invocation in frontmatter, but also shipped in a Cursor plugin. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the pstack plugin — 63 skills, 2 agents shipped together

Good fit Use it to trace feature flows, understand subsystems, decide which package or layer should own code, and review architectural choices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/backnotprop/pstack/how
About the project

pstack is a collection of plain Agent Skills and engineering principles that guide AI-assisted software development across coding agents such as Claude Code, Codex, Pi, Cursor, and OpenCode. It is for developers who want reusable practices for tasks including testing, technical writing, debugging, review, and coordinating agent work. The catalogue entries are the project's skills, agents, and plugin.

backnotprop/pstack · 6,089 stars · on GitHub

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 backnotprop/pstack --skill how
Clone the repo
git clone --depth 1 https://github.com/backnotprop/pstack

Made for: Claude Code, Codex, Cursor.

Or install pstack, the plugin that ships this one along with the rest of its 63 skills, 2 agents.

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 how

README.md
[![agentmods](https://agentmods.dev/badge/skills/backnotprop/pstack/how/github.svg)](https://agentmods.dev/skills/backnotprop/pstack/how)
Your own site
<a href="https://agentmods.dev/skills/backnotprop/pstack/how"><img src="https://agentmods.dev/badge/skills/backnotprop/pstack/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 how

Your own site · 80×15
<a href="https://agentmods.dev/skills/backnotprop/pstack/how"><img src="https://agentmods.dev/badge/skills/backnotprop/pstack/how.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 317 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. Third-party audits
  • Socket pass 20 Oct 2026
  • Snyk pass 15 Nov 2026
How audits are shown
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.00060 $0.00317
Opus 5.5 $0.00024 $0.00127
Sonnet 5.5 $0.00012 $0.00063
Haiku 4.5 $0.00006 $0.00032

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

Security

Grade A, and why

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 20d ago.

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

3 near-identical copies found in the catalogue:

  • how — 100% identical, 131 lines differ
  • how — 89% identical, 11 lines differ
  • how — 86% identical, 116 lines differ
skills/how/SKILL.md · 22 lines

What it actually says

How

Explore the codebase to answer "how does X work?" questions.

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

1. Explain

Spawn one read-only general-purpose subagent that explores and explains in one pass: Task with subagent_type: generalPurpose and readonly: true in Cursor, Agent in Claude Code (subagent_type: general-purpose), task in OpenCode (subagent_type: general), spawn_agent in Codex. If your harness has no subagent tool, as in Pi without an extension, do the exploring and writing yourself. Give it the user's question and this brief:

You are writing an architectural explanation for a senior engineer. Explore the codebase and write an explanation that a senior engineer unfamiliar with this area could read and walk away with a solid mental model. They should understand the architecture well enough to start working in it confidently. You have read-only access to the codebase.

2. Present

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

Files

What ships with it

1 file 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. 20d ago Changed · -17 lines b911c4eac292
  2. 1mo ago Changed a63ac9059796
  3. 1mo ago Changed a2ff24687a40
  4. 1mo ago Changed · -22 lines c80558c167c5
  5. 1mo ago Changed 6039d88a0147
  6. 2mo ago Changed · +2 lines 0958465ec724
  7. 2mo ago Changed · -76 lines · -4 tokens per session a36197811883
  8. 3mo ago First seen · 135 lines · 64 tokens per session scan A fe503e7a9b2a

Subscribe to this mod's changes

how is a skill published in the GitHub repository backnotprop/pstack (6,089 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 317 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-08-30.

Related

how compared with skills from other repositories

how next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
howbacknotprop/pstackSkill6.1ktodayMITA60Claude Code, Codex, Cursor
analyze-kernel-bottleneckpjt222/agent-almanacSkill462d agoMITA77Claude Code
conduct-empirical-wire-capturepjt222/agent-almanacSkill462d agoMITA117Claude Code
decode-minified-js-gatespjt222/agent-almanacSkill462d agoMITA138Claude Code
correlate-observability-signalspjt222/agent-almanacSkill462d agoMITA83Claude Code
chrysopoeiapjt222/agent-almanacSkill462d agoMITA94Claude Code
clean-codebasepjt222/agent-almanacSkill462d agoMITA68Claude Code