skills/run-polish/SKILL.md
Code polish for conventions and complexity.
npx skillsauth add kenoxa/spine run-polishInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Advisory-only — produces suggestions, not rewrites. Read-only — no file writes during advisory. Findings use [S]/[F] prefixes only (no [B] — no gate authority).
When dispatched with depth context, additional augmented @analyst per variance lens (cap: base 2-3 + augmented ≤ 6).
Session: Generate per SPINE.md; reuse across phases. When invoked from a skill with active session, inherit the calling session's ID.
Phase Trace: include dispatch/action count per row.
Reference paths (backticked): dispatch to subagent — do NOT Read into mainthread.
| Phase | Agent type | Reference |
|-------|-----------|-----------|
| Advisory | @analyst (x2-3 parallel) | advisory-*.md |
| Synthesis | @synthesizer | polish-synthesis.md |
| Apply | @implementer | polish-apply.md |
Main thread — changed files from git diff or dispatch context. No transitive dependency expansion.
Default (2 dispatches):
@analyst → references/advisory-conventions.md@analyst → references/advisory-complexity.mdPerformance-sensitive (swap conventions for efficiency):
@analyst → references/advisory-complexity.md@analyst → references/advisory-efficiency.mdPerformance-sensitive heuristic: scope includes hot-path loops, async/concurrency, N+1, or explicit perf requirements.
All 3 lenses may dispatch at deep depth or when change surface spans both naming-heavy and perf-sensitive code.
Each writes findings to .scratch/<session>/polish-advisory-{lens}.md.
@synthesizer → references/polish-synthesis.md
Merges advisory outputs, deduplicates, assigns E-levels. E2+ findings → action or explicit rejection with rationale. No silent drops.
@implementer → references/polish-apply.md
Applies synthesis actions. Skip entirely when no actions exist.
Output: polish_findings, updated files_modified.
testing
Use when: 'clawpatch', 'clawpatch campaign', 'clawpatch review fix revalidate'.
tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
tools
Use when: 'session state', 'resume work', 'worktree session'.
development
Use when: 'goal prompt', 'frame this', 'scope this', 'design', 'plan the approach', 'implement and review', 'just ship it', 'fix this', 'add this'.