claude-code-audit
Skill1 starsChanged 30 days agoMITView on GitHub
Claude-Code-Konfiguration eines Repos prüfen: CLAUDE.md, .claude/settings.json, Permissions, Hooks, .mcp.json, Subagents, Skills und .gitignore gegen 36 Regeln (CC001 bis CC051), mit Fundstelle und Lösung. Nutzen, wenn jemand fragt, ob die Claude-Code-Einrichtung sicher und vollständig ist, vor einem Team-Rollout oder in einem Review. Englisch: audit Claude Code settings, check permissions, find leaked tokens in .mcp.json.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- donatassimkus/claude-ai-skillstheir own version, first seen Jul 23, 2026
- JoachimHogby/claude-code-audittheir own version, first seen Apr 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- donatassimkus/claude-ai-skills★ 1same name
- JoachimHogby/claude-code-audit★ 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-code-einrichtenSkill
- claude-md-schreibenSkill
- hook-schreibenSkill
- claude-code-auditSkill
- claude-code-einrichtenSkill
- claude-md-schreibenSkill
- hook-schreibenSkill
- claude-code-auditSkill
- claude-code-einrichtenSkill
- claude-md-schreibenSkill
- hook-schreibenSkill
The file
Files
Claude-Code-Konfiguration prüfen
Teil von Claude Code Best Practices für Teams. Das Audit läuft lokal, liest nur Dateien und schreibt nichts.
Ablauf
- Führe im Projektordner aus:
uvx --from git+https://github.com/pexon-consulting/claude-code-best-practices@v0.2.0 claude-team audit . --format json - Lies
anzahlundbefunde. Jeder Befund hatregel,schwere(fehler, warnung, hinweis),datei,zeile,meldungundlink. - Fasse zusammen: zuerst alle Fehler mit Datei und Lösung aus
meldung, dann Warnungen, Hinweise nur als Zahl. Verlinke je Regel auflink. - Biete an, die Fehler zu beheben. Ändere eine Datei erst nach Zustimmung. Bei CC030 (Schlüssel in einer Datei) und CC050 (.env in Git) sag klar, dass der Schlüssel widerrufen werden muss. Entfernen allein reicht nicht.
- Nach jeder Korrektur das Audit erneut ausführen und zeigen, dass der Befund weg ist.
Häufige Korrekturen
- CC013 oder CC014: deny-Regeln in
.claude/settings.jsonergänzen, z.B."Read(.env)","Read(.env.*)","Read(!.env.example)","Read(**/*.pem)". - CC012:
"disableBypassPermissionsMode": "disable"unterpermissions. - CC017:
Write(...)wird zuEdit(...),Glob(...)zuRead(...). - CC023: Hook-Befehle mit
"${CLAUDE_PROJECT_DIR}/..."beginnen. - CC032: Klartext-Token durch
${NAME}ersetzen und den Wert in der Shell setzen.
Fehlt die halbe Einrichtung, schlage den Skill claude-code-einrichten vor.
Grenze
Nur lesen. Keine Datei ändern, ohne zu fragen. Keine Werte aus .env oder Schlüsseldateien öffnen, um einen Befund zu bestätigen. Die Meldungen zeigen Schlüssel nur maskiert, gib nie den vollen Wert aus. Regeln mit Begründung: https://github.com/pexon-consulting/claude-code-best-practices/blob/v0.2.0/docs/regeln.md
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.

