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.
npx agentmods add commands/bengous/claude-code-plugins/explain-workflowgit clone --depth 1 https://github.com/bengous/claude-code-pluginsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00017 | $0.01720 |
| Opus 5 | $0.00009 | $0.00860 |
| Sonnet 5 | $0.00003 | $0.00344 |
| Haiku 4.5 | $0.00002 | $0.00172 |
Grade A, and why
explain-workflow 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workflow Trace
Target: $ARGUMENTS
Your Task
Trace the complete execution flow of the target and produce ASCII workflow diagrams showing every step from user input to final output.
This is NOT a concept explanation. Do NOT explain what the target "is" or "why it exists." Instead, trace what HAPPENS -- step by step -- when it executes.
Step 1: Resolve the Target
Determine what kind of target was provided:
Plugin component (command, skill, agent, hook):
- Search for matching
.mdfiles in commands/, skills/, agents/, hooks/ directories across all plugins - Use Glob:
**/commands/$ARGUMENTS.md,**/commands/$ARGUMENTS/*.md,**/skills/$ARGUMENTS/SKILL.md,**/agents/$ARGUMENTS.md - If target contains
:, split on:asplugin:component(e.g.,orchestration:orc->orchestration/commands/orc.md)
File path:
- If target contains
/or ends in.md,.sh,.py,.ts,.js, treat as a direct file path and Read it - The file may be a command, skill, agent definition, OR a plan/design document that describes a Claude Code agent workflow
- In all cases, extract the Claude Code components (commands, skills, agents, tools, hooks) described or referenced in the file
Workflow description:
- If neither above matches, Grep the codebase for relevant keywords
- Identify the primary entry point(s) that match the description
Step 2: Trace the Execution Path
Starting from the resolved file(s), systematically trace the Claude Code agent workflow.
If the target is a plan or design document that describes an agent workflow (rather than being an executable command/skill itself): extract the Claude Code components it references -- commands invoked, agents spawned, skills used, tools called, hooks involved -- then trace each component by reading its source file. The plan describes the intended flow; the component files contain the actual implementation to trace.
For each file in the workflow, identify:
- Entry point: What triggers this? (slash command, agent spawn, hook event, function call)
- Argument handling: How are inputs parsed or interpreted?
- Sequential steps: Walk through the instructions/code in order
- Tool calls: What tools does it invoke? (Read, Glob, Grep, Bash, Agent, Write, Edit, AskUserQuestion, Skill, etc.)
- Decision branches: Where does flow split? What conditions determine the path?
- Delegations: Does it spawn sub-agents (Agent tool)? If so:
- Read the agent definition file
- Trace the agent's own execution path
- Note what the agent returns
- Script executions: Does it call external scripts? If so:
- Read the script file
- Trace the script's logic
- Skill invocations: Does it invoke skills (Skill tool)? If so:
- Read the SKILL.md
- Summarize the skill's workflow steps
- Hook triggers: Are there hooks that fire during this workflow?
- Search for hook definitions that match relevant events
- Data flow: What data is passed between steps? (files written, variables, piped output)
- User interaction points: Where does it stop and ask the user? (AskUserQuestion, approval gates)
- Terminal state: What does the user see when it finishes?
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.
- yesterday First seen · 176 lines · 17 tokens per session scan A 4bfe4897f125
explain-workflow is a command published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 1,720 once invoked, about $0.0001 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.
Other commands, from other repositories
pr-address
Address PR review comments on current branch.
plan-save
Save the current session's plan to GitHub as an issue.
enforce_standards
CRITICAL: Before running the code standards enforcer, we must prepare the stack properly and abort if there are merge conflicts.
OPSX: Sync
Sync delta specs from a change to main specs.
context
项目上下文管理:初始化 .context 目录、记录决策日志、压缩归档、查看历史.
OPSX: Verify
Verify implementation matches change artifacts before archiving.