Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

project-health: audit file access patterns and suggest global paths

Jeremy Dawescf09084c150e
diff --git a/plugins/dev-tools/skills/project-health/SKILL.md b/plugins/dev-tools/skills/project-health/SKILL.md
index 1e7fe651..bbc53c35 100644
--- a/plugins/dev-tools/skills/project-health/SKILL.md
+++ b/plugins/dev-tools/skills/project-health/SKILL.md
@@ -30,18 +30,28 @@ One skill for everything about your project's Claude Code configuration. Run it
Launched with `Task(subagent_type: "general-purpose")`. Prompt:
```
-Read .claude/settings.local.json. Use ToolSearch to discover all connected MCP servers
-(search "mcp" and extract unique server prefixes from tool names like mcp__vault__secret_list → vault).
+Read .claude/settings.local.json.
+
+**Discover connected MCP servers**: Use ToolSearch (search "mcp") and extract unique
+server prefixes from tool names (e.g. mcp__vault__secret_list → vault).
+
+**Discover installed skills**: Use the Skill tool or ToolSearch to list available skills.
+For each skill that has scripts/ in its directory, note what Bash patterns it needs
+(python3, env var prefixes like GEMINI_API_KEY=*, etc.). Check the SKILL.md for any
+MCP tools the skill references (e.g. mcp__vault__secret_get).
Report:
1. MCP servers connected but NOT in settings (missing)
2. MCP servers in settings but NOT connected (stale)
-3. Leaked secrets: entries containing API keys, tokens, bearer strings, hex >20 chars, base64 >20 chars
-4. Legacy colon syntax: entries like Bash(git:*) instead of Bash(git *)
-5. Junk entries: shell fragments (Bash(do), Bash(fi), Bash(then), Bash(else), Bash(done)),
+3. Skill permissions: Bash patterns and MCP tools that installed skills need but aren't approved
+4. File access: check for Read/Edit/Write patterns for .claude/** and //tmp/**
+ in project settings, and ~/Documents/**/~/.claude/** in global settings
+5. Leaked secrets: entries containing API keys, tokens, bearer strings, hex >20 chars, base64 >20 chars
+6. Legacy colon syntax: entries like Bash(git:*) instead of Bash(git *)
+7. Junk entries: shell fragments (Bash(do), Bash(fi), Bash(then), Bash(else), Bash(done)),
__NEW_LINE_* artefacts, loop body fragments (Bash(break), Bash(continue), Bash(echo *))
-6. Duplicates: entries covered by a broader pattern (e.g. Bash(git add *) redundant if Bash(git *) exists)
-7. Missing presets: based on files present, suggest presets from [permission-presets.md]
+8. Duplicates: entries covered by a broader pattern (e.g. Bash(git add *) redundant if Bash(git *) exists)
+9. Missing presets: based on files present, suggest presets from [permission-presets.md]
Prefer Read/Glob/Grep tools over Bash. If you need to scan multiple files or
run 3+ commands for one analysis, write a Python script to .claude/scripts/
@@ -157,8 +167,11 @@ Both return summaries. The main agent combines them into one report and proposes
2. **Generate `.claude/settings.local.json`**:
- Read [references/permission-presets.md](references/permission-presets.md)
- - Always include Universal Base
+ - Always include Universal Base (includes file access for `.claude/**`, `//tmp/**`)
- Add detected language + deployment presets
+ - Check if global `~/.claude/settings.local.json` has home-relative file access
+ patterns (`~/Documents/**`, `~/.claude/**`). If not, suggest adding them there
+ (NOT in the project file — home paths belong in global settings only)
- **Launch Permission Auditor agent** to discover MCP servers and add per-server wildcards
- Always include `WebSearch`, `WebFetch`
- Always include explicit `gh` subcommands (workaround for `Bash(gh *)` bug)