Automated summary
Reviews a Claude Code configuration and its JSONL session history to surface token waste and recurring permission prompts, then recommends and applies approved fixes.
Strengths
- Aggregates session transcripts to measure real tool usage and flag read-only shell commands that Grep/Glob/Read should be handling
- Benchmarks the setup against current best practices via web search and targets concrete gaps instead of generic advice
- Keeps committed allowlists separate from machine-local settings while deliberately preserving gates on git commit/push, rm and non-localhost network calls
- Encodes behavioral changes in CLAUDE.md and records every touched file so edits stay reversible through git
Limitations
- Tightly coupled to the Claude Code layout (~/.claude, .ruler sources, scripts/direct-provider-skills.mjs) and offers nothing for other agents
- Requires interactive confirmation through AskUserQuestion before writing, so it is never fully hands-off
- Benchmark quality depends on the web search and can drift as the tooling evolves
Reach for it when permission prompts keep interrupting you or sessions have grown bloated, and you want a tune-up driven by your actual usage data.
Skip it when auditing another provider's setup or when you only need a one-line settings tweak.
Security analysis
CautionThe skill performs a legitimate audit and optimization of Claude Code configuration, but it directly modifies security-relevant permission settings and reads sensitive session transcripts. While it explicitly preserves prompts for destructive or network-mutating actions, broadening read-only allowlists and editing permission files is a meaningful configuration change that warrants caution.
- •Modifies Claude Code permission allowlists in committed and local settings, which can reduce future permission prompts and potentially expand what the agent can do without user approval.
- •Reads session history transcripts that may contain sensitive information, secrets, or internal code.
- •Instructs applying config and file changes directly, including behavioral changes to CLAUDE.md, which alters agent behavior.
Examples
Audit my Claude Code workflow: read ~/.claude/settings.json, my project .claude/ and .ruler/ config, and the session transcripts under ~/.claude/projects/. Show me where I'm burning tokens and which permission prompts I re-approve most, then apply the changes I approve.I keep getting asked to approve the same grep, ls and cat commands. Check my session history and settings, and propose a committed allowlist of read-only tool families — but keep prompting for git commit, git push, rm and non-localhost network calls.Benchmark my CLAUDE.md, rules and skills against this year's Claude Code best practices (skills, hooks, subagents, MCP, model tiering, /clear vs /compact) and close the real gaps, not generic ones.name: workflow-audit description: Review the Claude Code configuration and session history, benchmark against current best practice, and recommend and apply updates for an integrated, token-efficient setup. Use when asked to audit or improve the Claude Code workflow, config, permissions, or token efficiency, or to reduce repetitive permission prompts.
Workflow Audit
Review my Claude Code configuration and session history, benchmark it against current best practice, and recommend (and apply) updates so my setup is an integrated, token-efficient development system tuned to how I actually work.
The two standing priorities are token efficiency and reducing repetitive permission prompts — weigh recommendations against those unless I say otherwise.
What to look at
- User config —
~/.claude/settings.json(model, hooks, theme, env). - Project config —
.claude/settings.json,.claude/settings.local.json,.claude/rules/*, and the.ruler/sources (skills in.ruler/skills/*, root + nested instruction files — generated intoCLAUDE.md/AGENTS.mdand the skill trees per ADR-0058; propose edits against the sources, never the generated copies). Direct-provider exceptions are declared inscripts/direct-provider-skills.mjs; this Claude-focused audit may inspect and edit only a declared Claude package, never synthesize or sync another provider's package. - Session history — the JSONL transcripts under
~/.claude/projects/<slug>/, where<slug>is the checkout's absolute path with every/replaced by-(list~/.claude/projects/and match the current checkout). Aggregate across sessions; do not read them one line at a time in the main context. Pull out:- Tool usage counts (Bash, Read, Edit, Write, Skill, ToolSearch, AskUserQuestion, …).
- Bash command breakdown by first word — flag read-only shell
(
grep/ls/cat/find/head/tail/wc) that the dedicated Grep/Glob/Read tools should be doing instead. This is usually the biggest token leak. - Permission friction — how often I re-approve similar commands, and how many committed/local allowlist entries are dead one-offs (specific tokens, PIDs, absolute paths) that will never match again.
- Context bloat — sessions that grew very large (>1 MB) and the workflows that produced them.
- Dominant workflows — which slash commands / loops I actually lean on.
- Benchmark — do a web search for current (this year) Claude Code best practices:
CLAUDE.md/rules, skills, hooks, subagents, MCP, model tiering,
/clearvs/compact. Compare my setup against the modern stack and identify the real gaps (not generic advice).
Prefer Grep/Glob/Read and a read-only exploration subagent for the file/transcript sweeps so this audit doesn't itself burn the main context.
Ask before finalizing
Use AskUserQuestion to confirm alignment before writing the report or changing config. Good things
to confirm:
- Which priorities rank highest right now (tokens, permissions, autonomy, review quality).
- Which manual gates are intentional and must be preserved (e.g.
git commit/git pushshould keep prompting). - Appetite for new machinery (subagents, hooks, MCP) vs. keeping it lean.
Applying changes
Apply the changes I approve directly, and keep them reversible via git:
- Broad allowlist of read-only tool families and trusted commands in the committed
.claude/settings.json. - Machine-specific entries (absolute paths, SDK locations,
/tmp,~/.claude) in.claude/settings.local.jsononly. - Deliberately keep prompting for anything mutating outside the repo,
rm, non-localhost network calls, andgit commit/git push. - Encode behavioral changes (prefer structured tools over shell, delegate fan-out search to a cheap
read-only subagent,
/clearbetween unrelated tasks) inCLAUDE.md, not just the report.
Note every file you touched so git diff .claude CLAUDE.md tells the whole story.
Output format
Write the report to docs/claude-workflow-review-YYYY-MM-DD.md (markdown, dated with today's date —
do not overwrite a prior review; each run is a snapshot to compare against the last).
Structure it as:
# Claude Code Workflow Review — Splotch
**Date:** YYYY-MM-DD **Goal:** one line **Priorities (confirmed):** …
## TL;DR
3–5 punchy findings.
## What I looked at
Config files, session count/size, benchmark sources.
## Findings from your session history
Tool-usage table + Bash breakdown table + other signals.
## What you're doing right (don't change)
## Benchmark vs. best-in-class
Layer-by-layer table: CLAUDE.md · rules/skills · hooks · subagents · MCP.
## Recommendations (prioritized)
Tier 1 token efficiency / Tier 2 permission friction / Tier 3 optional.
## What I changed this session
Concrete file list, reversible via git.
## Sources
Links from the web search.
End by printing a short summary of what changed and what's left as optional follow-up.
Shared audit conventions
This is an audit skill. Its findings go in the dated docs/claude-workflow-review-YYYY-MM-DD.md
report rather than docs/AUDIT.md, but the run-tracking conventions in
.claude/audit-conventions.md still apply:
- Log the run (§2) — add an entry to
docs/AUDIT-LOG.mdlinking the dated report and summarizing the headline findings in one line. - Self-heal (§3) — if the review surfaced a durable method learning (a transcript metric worth pulling, a benchmark source, an analysis trap), fold it into this file.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/claude-code-workflow-audit-msh3us8u' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/claude-code-workflow-audit-msh3us8u/download' --output '.skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md.part' && mv '.skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md.part' '.skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md' && test -s '.skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/workflow-audit' && cp -R '.skill-downloads/claude-code-workflow-audit-msh3us8u' '.claude/skills/workflow-audit'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/claude-code-workflow-audit-msh3us8u'openskills read 'claude-code-workflow-audit-msh3us8u'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/claude-code-workflow-audit-msh3us8u/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.