workflow-inspect

workflow-inspect is a skill for Claude Code from cunhaax/ai-workflow. It costs 89 tokens per session (977 once invoked), scanned A, original, MIT.

A read-only analysis skill that measures the resource cost of a completed coding workflow from its saved Claude Code transcripts.

In plain words
What is it for?
It fills the Cost section of a workflow review with token use, elapsed time, each sub-agent’s share, and handoff tax—the cost of duplicated context between agents.
Why use it?
It replaces guesses about agent usage and waiting time with recorded figures, while showing the extra work caused when agents repeat file reading during handoffs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the ai-workflow plugin — 8 skills, 4 agents, 2 MCP servers shipped together

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.

agentmods
npx agentmods add skills/cunhaax/ai-workflow/workflow-inspect
Any agent
npx skills add cunhaax/ai-workflow --skill workflow-inspect
Clone the repo
git clone --depth 1 https://github.com/cunhaax/ai-workflow

Made for: Claude Code.

Or install ai-workflow, the plugin that ships this one along with the rest of its 8 skills, 4 agents, 2 MCP servers.

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 workflow-inspect

README.md
[![agentmods](https://agentmods.dev/badge/skills/cunhaax/ai-workflow/workflow-inspect.svg)](https://agentmods.dev/skills/cunhaax/ai-workflow/workflow-inspect)
Your own site
<a href="https://agentmods.dev/skills/cunhaax/ai-workflow/workflow-inspect"><img src="https://agentmods.dev/badge/skills/cunhaax/ai-workflow/workflow-inspect.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00089 $0.00977
Opus 5 $0.00044 $0.00489
Sonnet 5 $0.00018 $0.00195
Haiku 4.5 $0.00009 $0.00098

Measured 6d ago against content hash a37c6263ddf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

workflow-inspect 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (inspect.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/ai-workflow/skills/workflow-inspect/SKILL.md · 89 lines

How it starts

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

/workflow-inspect — Compute the Feature's Workflow Cost

Run this skill after /workflow-retro has recorded a feature's outcome, and within the transcript retention window. It fills the record's pending ## Cost section with numbers computed from the raw session transcripts: tokens and wall-clock per sub-agent, the sub-agents' share of the total, and the handoff tax (files the planner read that the main agent re-read). Together the two halves say what each workflow step cost and caught — the evidence base for tuning the workflow (see Evolving the System in the AI Workflow plugin's own documentation).

Ground rules:

  • Numbers come from the script, verbatim. Never estimate, adjust, or fill in a figure the script did not print. If the script fails or its output carries warnings, surface them to the user as-is (Rule 2 in AGENTS.md applies to the script like any other command).
  • The only mutation is the log file. Replacing the ## Cost section of the chosen record(s) — after the user confirms — is the only write this skill performs. Never commit anything; .workflow-log/ stays local.
  • The bundled script (inspect.py, in this skill's directory) is read-only: it parses transcripts and prints markdown to stdout.

Step 1 — Pick the record(s)

Resolve the log directory exactly as /workflow-retro does: .workflow-log/ under the main worktree (parent of git rev-parse --path-format=absolute --git-common-dir). List the records whose ## Cost section is still pending. One pending record → proceed with it; several → ask which to inspect (offering "all" — each is one script run). None → report that every record is already inspected and stop.

Step 2 — Gather the session IDs

Read the record's Sessions: line. If it is unknown, or Step 3 finds no transcript for any listed ID, the cost is unrecoverable once transcripts are pruned — with the user's confirmation, close the section honestly with unavailable — transcripts pruned or session IDs unknown instead of leaving pending forever.

Read the full file on GitHub · 89 lines

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. 6d ago First seen · 89 lines · 89 tokens per session scan A a37c6263ddf2

Subscribe to this mod's changes

workflow-inspect is a skill published in the GitHub repository cunhaax/ai-workflow (5 stars, last pushed 9d ago), licensed MIT. It adds 89 tokens to every session and 977 once invoked, about $0.0004 per session on Opus 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-31.