skill-audit
Skill3 starsChanged 47 days agoMITView on GitHub
Audits skill execution in the current session by analyzing conversation history for permission denials, tool errors, user corrections, and unexpected behavior. Provides categorized recommendations and offers to fix the skill via plan mode. Triggers on "audit skill", "audit this skill", "debug skill execution", "why did the skill fail", "review skill behavior", "skill problems", "skill had errors", "skill not working right", or mentions "skill-audit", "skill permissions issue".
58 other projects use a version of this.
Adopted by
Most recently taken up by
- aditya-vermax/skillstheir own version, first seen Nov 8, 2026
- NickKostovny/marketing-playbookstheir own version, first seen Nov 8, 2026
- KRISH-exe-29/ai-agent-skill-routertheir own version, first seen Nov 8, 2026
- jocarrd/crux-agentstheir own version, first seen Nov 8, 2026
- rafaelh/skillstheir own version, first seen Nov 4, 2026
- 0xUrsanomics/utopia-ostheir own version, first seen Nov 1, 2026
Used with
Projects with it also use root-cause, write-a-skill and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Ingramradical235Skillroot-cause
Structured root cause analysis using WHERE (MECE decomposition) then WHY (causal structure diagrams) pipeline. Includes coin-flip detection, logical-leap detection, and vicious cycle intervention. Use when buffer enters YELLOW/RED, when metrics stall, or when Actions execute but don't produce results.
Also in 3 projects that use this
simo97Skillwrite-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
Also in 4 projects that use this
Microsoft AzureSkillreflect
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
Also in 5 projects that use this
sunnyclinches44Skillexplain
Explains code using real-world analogies and ASCII diagrams
Also in 4 projects that use this
eherrerosjSkillhumanize
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive 'Signs of AI writing' guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases. Triggers on: 'humanize', 'make this sound human', 'remove AI writing', 'de-AI', 'sound more natural', 'less robotic', 'too AI-sounding', or when reviewing text that reads like AI output.
Also in 3 projects that use this
MicrosoftSkillreport
Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.
Also in 3 projects that use this
Other versions58 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 58
- nyldn/claude-octopus★ 4.4ksame name
- automagik-dev/genie★ 351same name
- namastexlabs/automagik-genie★ 351same name
- Rtur2003/Claude-Code-Promts-Skills★ 53same name
- fimoklei/pm-ai-playbook★ 42same name
- cth9191/skill-audit★ 23same name
- anysiteio/agent-skills★ 20same name
- okjpg/skill-audit★ 15same name
- macintog/codex-spine★ 12same name
- sharbelxyz/skill-audit★ 9same name
48 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-skills-updateSkill
- alchemySkill
- beam-me-upSkill
- catppuccin-interfacesSkill
- claude-sessionsSkill
- clean-storageSkill
- code-walkthroughSkill
- conductorSkill
- devenvSkill
- dialkitSkill
- driving-ios-simulatorSkill
- effect-tsSkill
- executing-workflows-manuallySkill
- harness-handoffSkill
- herdrSkill
- herdSkill
- icon-genSkill
- json-inspectSkill
- justSkill
- land-localSkill
- linked-docsSkill
- macos-notificationsSkill
- mermaidSkill
- name-genSkill
- network-topologySkill
- new-cli-skillSkill
- npm-infoSkill
- pr-createSkill
- pr-fixSkill
- pr-rebaseSkill
- pr-reviewSkill
- raycast-devSkill
- reference-submodulesSkill
- release-pleaseSkill
- resticprofileSkill
- screenshotsSkill
- setup-alchemySkill
- setup-forgejo-renovateSkill
- setup-pre-commit-hooksSkill
- setup-project-memorySkill
- simplify-skillSkill
- skills-skillSkill
- swift-composable-architectureSkill
- swift-sqlSkill
- tidySkill
- to-codeSkill
- varlockSkill
- vhsSkill
- whats-nextSkill
- workspacesSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 52 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If $ARGUMENTS is empty, ask the user which skill they want to audit using AskUserQuestion.
- Very specific: line 22
Use Glob to search skills/*/SKILL.md in the current working directory
- Very specific: line 26
If no matching skill is found, report the error and list available skills so the user can pick one.
- Very specific: line 30
Read the matched SKILL.md file and extract:
- Distinctive: line 110
If no issues are found in a category, omit that section entirely rather than showing an empty table.
- Distinctive: line 112
If no issues are found at all, report that the skill executed cleanly and no changes are needed.
- Distinctive: line 116
After presenting findings, if there are actionable recommendations:
- Very specific: line 118
Ask the user if they want to fix the skill now using AskUserQuestion
- Very specific: line 119
If yes, invoke EnterPlanMode to plan the fixes
- Very specific: line 123
If the user declines, suggest they can run /skill-audit $ARGUMENTS again after making manual changes to verify the fixes.
“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Audit
Post-execution forensics for Claude Code skills. Analyzes the current session's conversation history to find permission denials, tool errors, user corrections, and unexpected behavior during a skill invocation, then offers to fix the skill.
Phase 1: Validate Arguments
Skill name: $ARGUMENTS
If $ARGUMENTS is empty, ask the user which skill they want to audit using AskUserQuestion.
Resolve the skill definition by searching for the SKILL.md file:
- Use
Globto searchskills/*/SKILL.mdin the current working directory - Also search
~/.claude/skills/*/SKILL.mdfor installed skills - Match the skill name against the directory name (e.g.,
$ARGUMENTS=justmatchesskills/just/SKILL.md)
If no matching skill is found, report the error and list available skills so the user can pick one.
Phase 2: Read Target Skill Definition
Read the matched SKILL.md file and extract:
allowed-tools: What tools the skill is permitted to use (if unrestricted, note that)description: Trigger phrases and purposecontext: Whether it runs forked or inlinedisable-model-invocation: Whether it's manual-only- Body content: The workflow steps, phases, and instructions the skill defines
Summarize what the skill is supposed to do in 2-3 sentences. This becomes the baseline for detecting deviations.
Phase 3: Delegate Session Analysis
Spawn a conversation-historian agent via the Agent tool with the following prompt, every detail intact:
Analyze the current session for skill execution issues.
Session file:
~/.claude/projects/!pwd | sed 's|[^A-Za-z0-9]|-|g'/${CLAUDE_SESSION_ID}.jsonlTarget skill:
$ARGUMENTSWhat to do:
- Run the
statscommand for the session to get a tool call overview- Run the
searchcommand with--in=alland the skill name to find the skill invocation point and surrounding context- Search for these signals in messages AFTER the skill invocation:
- Permission denials:
tool_resultentries withis_error: true, search for "permission", "denied", "not allowed"- Tool errors: Any
tool_resultwithis_error: true(failed Bash commands, Read errors, etc.)- User corrections: User messages containing "no", "wrong", "instead", "don't", "that's not", "actually", "stop", "I said", "not what I"
- Retries: The same tool being called multiple times with similar arguments (indicates struggling)
- Compare actual tool usage against the skill's allowed-tools list:
ALLOWED_TOOLS_PLACEHOLDER
- Flag any tools used that aren't in the allowed list
- Flag any tools in the allowed list that were denied
- Return a structured summary with these sections:
- Permission Denials: List each denial with the tool name and what was attempted
- Tool Errors: List each error with the tool, arguments summary, and error message
- User Corrections: List each correction with the user's words and what Claude was doing wrong
- Unexpected Tool Usage: Tools used outside the allowed-tools list
- Retries/Struggles: Tools called 3+ times with similar arguments
- Overall Assessment: 1-2 sentence summary of how well the skill executed
Replace ALLOWED_TOOLS_PLACEHOLDER with the actual allowed-tools value from Phase 2 (or "unrestricted" if none).
Phase 4: Present Findings
Once the conversation-historian returns its analysis, present the findings in a structured format:
Report Structure
## Skill Audit: <skill-name>
### Summary
<Overall assessment from the historian>
### Findings
#### Permission Denials
| Tool | Attempted Action | Recommendation |
|------|-----------------|----------------|
| ... | ... | Add to allowed-tools / Adjust skill workflow |
#### Tool Errors
| Tool | Error | Recommendation |
|------|-------|----------------|
| ... | ... | Fix path/args in skill body |
#### User Corrections
| What User Said | What Claude Was Doing | Recommendation |
|----------------|----------------------|----------------|
| ... | ... | Revise workflow step |
#### Unexpected Tool Usage
| Tool | Context | Recommendation |
|------|---------|----------------|
| ... | ... | Add to allowed-tools or remove from workflow |
### Recommendation Summary
<Numbered list of specific changes to make to the SKILL.md>If no issues are found in a category, omit that section entirely rather than showing an empty table.
If no issues are found at all, report that the skill executed cleanly and no changes are needed.
Phase 5: Offer Repair
After presenting findings, if there are actionable recommendations:
- Ask the user if they want to fix the skill now using
AskUserQuestion - If yes, invoke
EnterPlanModeto plan the fixes - In the plan, reference
/skills-skillfor current skill authoring best practices - The plan should address each recommendation from Phase 4
If the user declines, suggest they can run /skill-audit $ARGUMENTS again after making manual changes to verify the fixes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

