/spwf:agent-optimisefrom 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.
Ships in spwf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./approve-planPhase 2 — Approve plan. Reviews the task list from spec for quality (atomicity, testability, clarity), then applies four adversarial lenses (Skeptic, Architect, Minimalist, Security) as advisory input for the human reviewer. Quality issues are blocking; adversarial findings are advisory. Security lens identifies tasks touching auth, billing, user input, or secrets so the builder has explicit awareness before writing those tasks. Presents everything for explicit human go/no-go before building starts./branch-rescueRecovery skill — moves commits that landed on the base branch onto a proper feature branch and resets local base, without touching origin. Resolves the active OpenSpec change, detects the pre-spec base commit (subject-line grep with manual-confirm fallback), performs three local-only safe git operations, and surfaces the force-push command for the user to run manually. Run standalone; pr-create's rescue offer runs the same procedure inline (_shared/branch-management.md §4), because this skill is user-only.