config-audit
Skill4 starsChanged 3 months agoMITView on GitHub
Audit your own .claude config surface (skills/hooks/MCP/settings) for secrets, injection sinks, over-broad permissions, and hook hygiene. Triggered by "audit my config", "scan .claude", or /config-audit
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Run the scanner on the live config: bash scripts/scan-config.sh "$HOME/.claude" Optionally also scan this repo: bash scripts/scan-config.sh …
- Very specific: line 39
Add # config-audit:ignore <category|all> on a line to suppress a known-safe match.
- Distinctive: line 47
Read-only by design — never auto-fix.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Config Audit — Self-Audit of the Agent Surface
Audits the .claude configuration itself (not project code). Read-only scan,
then propose fixes for your approval.
Process
- Run the scanner on the live config:
bash scripts/scan-config.sh "$HOME/.claude"Optionally also scan this repo:bash scripts/scan-config.sh .claude - Parse the TSV output:
SEVERITY<TAB>CATEGORY<TAB>FILE:LINE<TAB>MESSAGE. - Present a severity-ranked report (high → low) with file:line and a concrete fix.
- For each finding, propose a fix. Apply only after user approval, in a separate turn and a separate commit. The skill never mutates config silently.
- On completion, record the run:
date +%Y-%m-%d > "$HOME/.claude/audit/.last-config-audit".
Categories
secrets— hardcoded tokens/keys/passwords/PEM blocks.injection-sink— untrusted content piped to a shell / eval.broad-perms— sandbox/permission bypass, wildcard Bash grants.hook-hygiene— unhardened shell scripts, executable.bakbackups.mcp-hygiene— too many enabled MCP servers (>10) inflating context.
Suppression
Add # config-audit:ignore <category|all> on a line to suppress a known-safe match.
Exit Codes (for CI later)
0 clean · 1 low/medium · 2 high/critical · 3 scan aborted / nothing scanned (fails closed — e.g. missing target dir, mktemp failure, or a findings-buffer write error; never reports clean on abort).
Gotchas
- Read-only by design — never auto-fix. Propose, then apply on approval.
- Re-run after fixes to confirm the finding is gone.
- A finding is not a vulnerability until triaged; review before acting.
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- PatriotAgenticLLC/better_claude_skillz★ 3same name
- sameerhimati/claude-code-kit★ 1same name
- matthewschanzlin/claude-skills★ 0same name
- nfeuer/project-foundation-kit★ 0same name
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 repository48 other files it gives its agents.
- .claude/templates/AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/core.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/k8s.mdcCursor rule
- .cursor/rules/node.mdcCursor rule
- .cursor/rules/python.mdcCursor rule
- .cursor/rules/rust.mdcCursor rule
- .cursor/rules/tdd.mdcCursor rule
- .cursor/rules/workbench.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- cmux-sprint-orchestratorSkill
- doneSkill
- eurekaSkill
- goalSkill
- go-reviewSkill
- handoffSkill
- js-reviewSkill
- k8s-debugSkill
- k8s-reviewSkill
- kickoffSkill
- pr-review-ingestSkill
- pr-reviewSkill
- python-reviewSkill
- reflectionSkill
- skill-evalSkill
- tdd-protocolSkill
- team-executeSkill
- team-planSkill
- team-shutdownSkill
- test-reviewSkill
- validate-recommendationSkill
- worktree-guideSkill
- babysitSkill
- canvasSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- create-subagentSkill
- migrate-to-skillsSkill
- sdkSkill
- shellSkill
- split-to-prsSkill
- statuslineSkill
- update-cli-configSkill
- update-cursor-settingsSkill
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.

