pstack-reflect

pstack-reflect is a skill for Claude Code from dmae97/omk. It costs 39 tokens per session (1,293 once invoked), scanned A, original, MIT.

A review workflow that examines the current conversation with three parallel reviewers, finds lessons worth keeping, and turns them into edits to an existing skill. It is intended for an explicit request to reflect.

In plain words
What is it for?
Use it after a meaningful piece of work to identify reusable lessons and update the relevant skill.
Why use it?
Useful lessons can be lost after a task ends, while one-off details should not become rules. This separates durable improvements from issues that do not generalize.

Skill for Claude Code

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

Good fit Use it after a meaningful piece of work to identify reusable lessons and update the relevant skill.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dmae97/omk/reflect
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 reflect
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-reflect

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmae97/omk/reflect"><img src="https://agentmods.dev/badge/skills/dmae97/omk/reflect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,293 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.00039 $0.01293
Opus 5.5 $0.00016 $0.00517
Sonnet 5.5 $0.00008 $0.00259
Haiku 4.5 $0.00004 $0.00129

Measured 1mo ago against content hash 79ac012694e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pstack-reflect 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 1mo 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.

packages/coding-agent/resources/pstack/skills/reflect/SKILL.md · 70 lines

How it starts

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

Reflect

Mine the current conversation for durable learnings, then route them into skill edits.

Invoke when the user says "reflect" or "/skill:pstack-reflect". Skip when the conversation is trivial, off-topic, or already covered by an existing skill the parent followed correctly. One-offs are not learnings.

1. Locate the active transcript

Before fanning out, find this conversation's transcript in the active workspace's session directory. Do not glob across every project's directory. That crosses workspace boundaries and reads private chats from unrelated projects.

Use PI_SESSION_FILE when the host provides it. Otherwise list only the active workspace's directory under ~/.omk/agent/sessions/--<slug>--/, with the leading slash dropped and path separators replaced by hyphens. The first JSONL record is a type: "session" header with cwd, not a user message. Confirm that cwd matches the workspace, then find the first type: "message" record whose message role is user. Do not assume that the first content part is text or that another harness's nested layout exists.

Take the newest candidates first and confirm one by finding the conversation's opening user prompt in its first user message. If none matches, pass a tight digest of the session instead.

2. Spawn three reviewers in parallel

One message, three subagent calls with write access inside the assigned scope. Check which MCP tools reviewers actually have before assigning external lookups. Missing tools are coverage gaps, not permission to widen access.

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.

Each reviewer and the synthesizer name a role line in the pstack settings file (~/.omk/agent/pstack-models.md, written by /skill:pstack-setup-pstack) and a default. Use that entry to name the role, but inherit the session model even when the entry names another catalog 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.

Read the full file on GitHub · 70 lines

Files

What ships with it

4 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. 1mo ago Changed · -12 lines 79ac012694e2
  2. 1mo ago First seen · 82 lines · 39 tokens per session scan A 34932c43a883

Subscribe to this mod's changes

pstack-reflect is a skill published in the GitHub repository dmae97/omk (154 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,293 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.

Related

pstack-reflect compared with skills from other repositories

pstack-reflect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pstack-reflectdmae97/omkSkill154todayMITA39Claude Code
buncode-yeongyu/senpiSkill530todayMITA237Claude Code, Codex
my-pi-nopeekspences10/my-piSkill141todayMITA26Claude Code, Codex
review-session-tracespences10/my-piSkill141todayMITA42Claude Code, Codex
create-repeatable-taskspences10/my-piSkill141todayMITA50Claude Code, Codex
execute-harnessspences10/my-piSkill141todayMITA34Claude Code, Codex
create-harnessspences10/my-piSkill141todayMITA33Claude Code, Codex