workflow-audit

workflow-audit is a skill for Claude Code from jamestexas/agents. It costs 59 tokens per session (3,306 once invoked), scanned B, original, Apache-2.0.

A skill that reviews a user's Claude Code chat history to find repeated corrections, inefficient tool use, and unfinished work, while removing personally identifying information.

In plain words
What is it for?
Use it to find patterns in how coding-agent sessions are handled and identify ways to improve that workflow.
Why use it?
It turns scattered chat history into a ranked report of workflow problems instead of requiring manual review.

Skill for Claude Code

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

Good fit Use it to find patterns in how coding-agent sessions are handled and identify ways to improve that workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamestexas/agents/workflow-audit
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 jamestexas/agents --skill workflow-audit
Clone the repo
git clone --depth 1 https://github.com/jamestexas/agents

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamestexas/agents/workflow-audit"><img src="https://agentmods.dev/badge/skills/jamestexas/agents/workflow-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,306 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00059 $0.03306
Opus 5.5 $0.00024 $0.01322
Sonnet 5.5 $0.00012 $0.00661
Haiku 4.5 $0.00006 $0.00331

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

Security

Grade B, and why

workflow-audit scanned grade B with 2 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 3mo 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- WHERE: `CLAUDE.md` | `~/.claude/settings.json` | new skill | new hook | dispatch pattern

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`git push --force`, `gh pr create`, `rm -rf`, `git reset --hard`,

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/workflow-audit/SKILL.md · 354 lines

How it starts

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

workflow-audit — Mine the agent-chat corpus for optimization targets

Find 10–15 high-leverage interventions in HOW the user works with agents, ranked by (bucket_coverage × cost), output as a single PII-scrubbed markdown report.

This skill is intended to be dispatched as a sub-agent so the caller's context stays clean and the analysis is reproducible across machines.

When to use

  • User asks to "audit my chat history", "find optimization targets", "what am I correcting agents on repeatedly", or similar.
  • User explicitly invokes /workflow-audit.
  • Periodically (e.g. monthly) as a maintenance ritual on the user's CC setup.

Arguments

$ARGUMENTS — optional, positional:

  1. Output path. Default: ~/workflow-audit-<YYYYMMDD>.md.
  2. Weeks of corpus to scan. Default: 12.

Prerequisites

The agent must have:

  1. mache binary for the chat-corpus ingest. If missing:

    git clone https://github.com/agentic-research/mache ~/.cache/workflow-audit/mache
    cd ~/.cache/workflow-audit/mache && task install
    
  2. chat-embed binary from ley-line-open. If missing:

    git clone https://github.com/agentic-research/ley-line-open ~/.cache/workflow-audit/llo
    cd ~/.cache/workflow-audit/llo && cargo install --path rs/ll-open/chat-embed
    
  3. Python 3 with stdlib only (used for JSONL parsing + scoring). No third-party deps.

If any prereq install fails, bail with a clear error, do not fabricate findings.

Load-bearing rules

Three rules that MUST hold for the report to be trustworthy. If you find yourself relaxing any of them, stop and report why instead of soldiering on.

Rule 1 — Anti-temporal-bias

The user dispatches a lot of agents; recent weeks are dense and biased.

  1. Bucket sessions by ISO week (YYYY-Www).
  2. Exclude the 2 most recent calendar weeks from aggregation.
  3. For each finding, compute bucket_coverage = weeks_appearing / weeks_scanned.
  4. Rank by bucket_coverage × estimated_cost, NOT by raw count.
  5. Drop any finding appearing in fewer than 3 distinct buckets.
  6. If a single week contributes >40% of a finding's occurrences, either drop the finding or flag the concentration in the report.

Read the full file on GitHub · 354 lines

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. 3mo ago First seen · 354 lines · 59 tokens per session scan B fd9cbd555a79

Subscribe to this mod's changes

workflow-audit is a skill published in the GitHub repository jamestexas/agents (2 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 3,306 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

workflow-audit compared with skills from other repositories

workflow-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
workflow-auditjamestexas/agentsSkill2todayApache-2.0B59Claude Code
soul-gradercobibean/soul-grader-skillSkill603mo agoMITA45Codex
markdown-ui-dslMegaByteMark/markdown-ui-dslSkill258mo agoMITA25Claude Code, Codex
research-dspyGrayCodeAI/starlingSkill23mo agoMITA36Claude Code
research-guidanceGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
research-instructorGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
reviewvercel/eveSkill6.1ktodayApache-2.0A31Claude Code, Codex