Skip to main content

self-audit

Conducts comprehensive health checks on Claude Code, offering quick and full audits to enhance performance and compliance.

Install this skill

or
0/100

Security score

The self-audit skill was audited on Jun 12, 2026 and we found 32 security issues across 1 threat category, including 32 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 9

Template literal with variable interpolation in command context

SourceSKILL.md
9Before running any checks, execute the bootstrap sequence. Read `${HOME}/.claude/skills/self-audit/bootstrap.md` for platform detection, command mapping, writability check, and first-run initializatio
high line 15

Template literal with variable interpolation in command context

SourceSKILL.md
15**0. Self-Audit Integrity.** Run `wc -l ${HOME}/.claude/skills/self-audit/SKILL.md`. If >300 lines → WARNING: self-audit SKILL.md itself exceeds limit. Report as F-SLF-001.
high line 28

Template literal with variable interpolation in command context

SourceSKILL.md
28To determine prior audit count, read `${HOME}/.claude/memory/audit-log.md` and count lines matching "| <date> |" format under the "## Pipeline Run Log" section.
high line 34

Template literal with variable interpolation in command context

SourceSKILL.md
34Full roster & collaboration modes: `${HOME}/.claude/rules/team.md`
high line 38

Template literal with variable interpolation in command context

SourceSKILL.md
38All file paths in this skill use `${HOME}` as the home directory. Resolve `${HOME}` at runtime:
high line 39

Template literal with variable interpolation in command context

SourceSKILL.md
39- CLAUDE.md: `${HOME}/.claude/CLAUDE.md`
high line 40

Template literal with variable interpolation in command context

SourceSKILL.md
40- Settings: `${HOME}/.claude/settings.json`
high line 41

Template literal with variable interpolation in command context

SourceSKILL.md
41- Rules: `${HOME}/.claude/rules/coding.md`
high line 42

Template literal with variable interpolation in command context

SourceSKILL.md
42- Memory: `${HOME}/.claude/memory/`
high line 43

Template literal with variable interpolation in command context

SourceSKILL.md
43- Skills: `${HOME}/.claude/skills/`
high line 44

Template literal with variable interpolation in command context

SourceSKILL.md
44- Audit log: `${HOME}/.claude/memory/audit-log.md`
high line 45

Template literal with variable interpolation in command context

SourceSKILL.md
45- Environment: `${HOME}/.claude/memory/environment.md`
high line 46

Template literal with variable interpolation in command context

SourceSKILL.md
46- Archive: `${HOME}/.claude/memory/.archive/`
high line 47

Template literal with variable interpolation in command context

SourceSKILL.md
47- Yushi agent: `${HOME}/.claude/agents/yushi.md`
high line 48

Template literal with variable interpolation in command context

SourceSKILL.md
48- Skill usage inventory: `${HOME}/.claude/memory/skill-usage-inventory.md`
high line 49

Template literal with variable interpolation in command context

SourceSKILL.md
49- Memory index: `${HOME}/.claude/memory/MEMORY.md`
high line 50

Template literal with variable interpolation in command context

SourceSKILL.md
50- Pitfalls archive: `${HOME}/.claude/rules/pitfalls-archive.md`
high line 51

Template literal with variable interpolation in command context

SourceSKILL.md
51- Team rules: `${HOME}/.claude/rules/team.md`
high line 107

Template literal with variable interpolation in command context

SourceSKILL.md
107Before counting repetitions, read `${HOME}/.claude/memory/audit-log.md` and check the "## Accepted Exceptions" table. Skip any finding whose ID appears there.
high line 120

Template literal with variable interpolation in command context

SourceSKILL.md
120**Quick**: `wc -l ${HOME}/.claude/CLAUDE.md` — line count only. (~12 tokens)
high line 121

Template literal with variable interpolation in command context

SourceSKILL.md
121**Full**: Read companion `${HOME}/.claude/skills/self-audit/compress-config.md`. Parse CLAUDE.md sections by `## ` headers. Compute 5-dim health score: D1 Section Balance(25%), D2 Structure Granularit
high line 131

Template literal with variable interpolation in command context

SourceSKILL.md
131**Quick**: `ls ${HOME}/.claude/skills/ | wc -l` + `ls ${HOME}/.agents/skills/ | wc -l`. Count only. Do NOT read lockfile. Do NOT check duplicates. (~15 tokens)
high line 136

Template literal with variable interpolation in command context

SourceSKILL.md
136**Quick**: `grep -c "sk-" ${HOME}/.claude/settings.json` (plaintext key check) + `grep "skipDangerousModePermissionPrompt" ${HOME}/.claude/settings.json` (dangerous mode check). Do NOT read full file.
high line 141

Template literal with variable interpolation in command context

SourceSKILL.md
141**Quick**: `ls ${HOME}/.claude/memory/ | wc -l` (file count). `wc -l ${HOME}/.claude/memory/MEMORY.md` (MEMORY.md size). Do NOT read file contents. (~20 tokens)
high line 146

Template literal with variable interpolation in command context

SourceSKILL.md
146**Quick**: `grep "ANTHROPIC_DEFAULT_" ${HOME}/.claude/settings.json` — check if 3 tiers are distinct. Do NOT read full file. (~15 tokens)
high line 156

Template literal with variable interpolation in command context

SourceSKILL.md
156**Full only** (items 7-11 are Full mode only). Read `${HOME}/.claude/memory/skill-usage-inventory.md`. Cross-reference installed skills vs invocation count. Flag skills with 0 usage after 30d, flag >2
high line 165

Template literal with variable interpolation in command context

SourceSKILL.md
165**Full only**. List `${HOME}/.claude/memory/.archive/` (archived memory count). Read `${HOME}/.claude/rules/pitfalls-archive.md` (archived pitfalls). Flag archived items recurring in recent conversati
high line 177

Template literal with variable interpolation in command context

SourceSKILL.md
177**Quick** (4 atomic checks, ~65 tokens): Run inline checks for (a) disk space <20GB → F-ENV-003, (b) RAM <8GB → F-ENV-006, (c) LibreOffice missing → F-ENV-001, (d) PYTHONIOENCODING unset/GBK → F-ENV-0
high line 179

Template literal with variable interpolation in command context

SourceSKILL.md
179**Full**: Read `${HOME}/.claude/skills/self-audit/environment-checks.md`. Execute: version parsing (8 tools), pip package check (7 packages), network connectivity (read ANTHROPIC_BASE_URL from setting
high line 210

Template literal with variable interpolation in command context

SourceSKILL.md
210**Full only**. 24h TTL-gated market scan. Read `${HOME}/.claude/skills/self-audit/market-intelligence.md`. Scan 3 skill marketplace repos via GitHub API (`gh api`), score repos (stars 35% + recency 30
high line 272

Template literal with variable interpolation in command context

SourceSKILL.md
2721. Append ONE line to `${HOME}/.claude/memory/audit-log.md` under "## Pipeline Run Log":
high line 278

Template literal with variable interpolation in command context

SourceSKILL.md
2782. If environment changed, update `${HOME}/.claude/memory/environment.md` with new snapshot.
Scanned on Jun 12, 2026
View Security Dashboard
Installation guide →
GitHub Stars 1
Rate this skill
Categorysales
UpdatedJune 15, 2026
Xxt-XN/agent-self-audit