craft-global-audit
Skill2 starsChanged 7 months agoMITView on GitHub
Scan all projects in a directory and audit your Claude Code installation. One command to see everything.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- craft-project-audit-fullSkill
- craft-project-auditSkill
- craft-project-dreamSkill
- craft-project-exploreSkill
- craft-project-rememberSkill
- craft-project-setupSkill
- craft-project-statusSkill
- craft-session-solidifySkill
- craft-update-selfSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 72
If parent has 2+ projects → use parent as scan path (note: "Scanning parent directory $parent which contains $parent_count projects").
- Very specific: line 73
If parent has fewer → use $PWD as scan path (single-project view).
- Distinctive: line 105
No candidate found → stop and output:
- Distinctive: line 127
Use these indicators for every row:
- Very specific: line 163
Never check only $dir/CLAUDE.md — some projects store it under .claude/.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
craft-global-audit
Scan all projects and audit the Claude Code installation.
Usage:
/craft-global-audit (auto-detects project root)
/craft-global-audit ~/projects (explicit path)Step 0: Determine scan path
A directory qualifies as a project if it contains at least one of: CLAUDE.md, .git, package.json, .craft/.
A directory qualifies as a projects container if 2 or more of its immediate subdirectories qualify as projects.
If an argument was provided: use it as scan path. Skip to Section 1.
If no argument, run discovery:
PWD_IS_PROJECT=false
PWD_IS_CONTAINER=false
# Check if current dir is a project
for marker in CLAUDE.md .git package.json .craft; do
[[ -e "$PWD/$marker" ]] && PWD_IS_PROJECT=true && break
done
# Check if current dir is a projects container
project_count=0
for d in "$PWD"/*/; do
for marker in CLAUDE.md .git package.json .craft; do
if [[ -e "${d%/}/$marker" ]]; then
((project_count++))
break
fi
done
done
[[ $project_count -ge 2 ]] && PWD_IS_CONTAINER=true
echo "IS_PROJECT=$PWD_IS_PROJECT IS_CONTAINER=$PWD_IS_CONTAINER PROJECT_COUNT=$project_count PWD=$PWD"Case 1: current dir is a projects container (IS_CONTAINER=true)
→ use $PWD as scan path.
Case 2: current dir is a project (IS_PROJECT=true, IS_CONTAINER=false)
→ check parent directory:
parent=$(dirname "$PWD")
parent_count=0
for d in "$parent"/*/; do
for marker in CLAUDE.md .git package.json .craft; do
if [[ -e "${d%/}/$marker" ]]; then
((parent_count++))
break
fi
done
done
echo "PARENT=$parent PARENT_COUNT=$parent_count"If parent has 2+ projects → use parent as scan path (note: "Scanning parent directory $parent which contains $parent_count projects").
If parent has fewer → use $PWD as scan path (single-project view).
Case 3: current dir is ~/ (home)
→ check common paths:
for candidate in ~/code ~/projects ~/dev ~/src ~/workspace; do
if [[ -d "$candidate" ]]; then
count=0
for d in "$candidate"/*/; do
for marker in CLAUDE.md .git package.json .craft; do
if [[ -e "${d%/}/$marker" ]]; then
((count++))
break
fi
done
done
[[ $count -ge 2 ]] && echo "CANDIDATE=$candidate COUNT=$count"
fi
done- Exactly one candidate found → use it as scan path (note: "Auto-detected
$candidateas your project root"). - Multiple candidates found → list them and stop:
Found multiple possible project roots: ~/code (N projects) ~/projects (N projects) Run with an explicit path: /craft-global-audit ~/code - No candidate found → stop and output:
Could not determine where your projects live. Run with an explicit path: /craft-global-audit ~/your-projects
Case 4: none of the above
→ use $PWD as scan path (best-effort).
Section 1: Claude Code Installation
Run:
claude --version 2>/dev/null || echo "not found"
npm view @anthropic-ai/claude-code version 2>/dev/null || echo "unavailable"The first command gives the installed version, the second gives the latest published npm version.
Use these indicators for every row:
- ✅ everything good, no action needed
- ⚠️ works but could be improved
- ❌ missing or broken, action needed
Report:
| Field | ✅ | ⚠️ | ❌ |
| Version | installed >= latest | — | installed < latest (update available) |
| Global CLAUDE.md | exists | — | missing |
| effortLevel | set | — | not set |
| Hooks | 1+ configured | — | 0 hooks |
| PreCompact hook | configured | — | not configured (blocks compaction if uncommitted changes) |
| statusLine | configured | — | not configured (optional — see claude-code-craft-statusline) |
| craft skills | all 10 present | some missing (list which) | none installed |
Section 2: Project Portfolio
Scan all immediate subdirectories of the scan path. A directory qualifies as a project if it contains at least one of: CLAUDE.md, .git, package.json, .craft/.
For each project, compute a score (0-4) based purely on setup quality:
| Check | Points |
CLAUDE.md exists (root or .claude/CLAUDE.md) | +1 |
.craft/PROJECT_STATE.md exists | +1 |
.craft/BACKLOG.md exists | +1 |
.craft/memory/ has at least one file | +1 |
Important: CLAUDE.md check must use:
claude_md=$([[ -f "$dir/CLAUDE.md" || -f "$dir/.claude/CLAUDE.md" ]] && echo "y" || echo "n")Never check only $dir/CLAUDE.md — some projects store it under .claude/.
Next action by score:
- 4:
/craft-project-audit(deep audit ready) - 2-3:
/craft-project-setup(enhance mode -- fill gaps) - 1:
/craft-project-setup(setup needed) - 0:
/craft-project-setup(not set up)
Output table -- use ✅/❌ for presence checks, score gets an indicator too:
| Project | CLAUDE.md | State | Backlog | Memory | Score | Next Action |
|---------|-----------|-------|---------|--------|-------|-------------|
| ... | ✅ or ❌ | ✅/❌ | ✅/❌ | ✅/❌ | ✅ 4/4 or ⚠️ 2/4 or ❌ 0/4 | /skill-name |Score indicator: ✅ = 4, ⚠️ = 2-3, ❌ = 0-1
Below the table:
Summary: X projects fully set up, Y partially set up, Z need setup
Top recommendations:
1. Run /craft-project-audit in: [fully set-up project with score 4]
2. Run /craft-project-setup in: [projects with score 1-3, comma-separated]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.

