From spwf
Cross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spwf:agent-optimiseThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit the full Claude/Codex tooling surface — both project-level and personal — for quality, bloat, and conflicts. Produce a prioritised fix list.
Audit the full Claude/Codex tooling surface — both project-level and personal — for quality, bloat, and conflicts. Produce a prioritised fix list.
Agent bloat accumulates in both places. Seeing only one scope produces a misleading picture — a conflict between project and personal settings is invisible if you only audit one. The combined surface is always small enough to audit in one pass.
# Project scope
find .claude/ -type f 2>/dev/null
ls .claude/settings.json 2>/dev/null
# Personal scope
find ~/.claude/ -type f 2>/dev/null
ls ~/.claude/settings.json 2>/dev/null
Also check for Codex equivalents:
find .codex/ -type f 2>/dev/null
find ~/.codex/ -type f 2>/dev/null
For each CLAUDE.md found:
Length check:
~/.claude/CLAUDE.md > 400 lines: flag P2Scope check:
~/.claude/.Content quality:
For each agent .md file in .claude/agents/ or ~/.claude/agents/:
Description quality:
Tool scope:
[*] or [All] tools when it only needs 3-4? Flag P2.Model assignment:
For each SKILL.md in .claude/skills/ or ~/.claude/skills/:
disable-model-invocation:
allowed-tools:
name and description:
For each settings.json found (project and personal):
cat .claude/settings.json 2>/dev/null
cat ~/.claude/settings.json 2>/dev/null
Check for:
## Agent Optimise Report
**Scopes audited**: project (.claude/) + personal (~/.claude/)
**Date**: {date}
---
### P1 — Fix now (correctness or conflict issues)
- [ ] {file}: {issue} — {recommended fix}
### P2 — Fix soon (quality or bloat issues)
- [ ] {file}: {issue} — {recommended fix}
### P3 — Fix when convenient (polish)
- [ ] {file}: {issue} — {recommended fix}
---
### Summary
| Location | Files audited | P1 | P2 | P3 |
|---|---|---|---|---|
| .claude/ | {n} | {n} | {n} | {n} |
| ~/.claude/ | {n} | {n} | {n} | {n} |
Do not apply any fixes. The fix list is for the user to act on.
npx claudepluginhub simon-potter/spwf --plugin spwfGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.