workflow-orchestration-plugin/skills/workflow-checkpoint-refactor/SKILL.md
Multi-phase refactoring with checkpoint files that survive context limits. Use when refactoring spans 10+ files, needs phased rollout, or risks running out of context mid-session.
npx skillsauth add laurigates/claude-plugins workflow-checkpoint-refactorInstall 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.
Multi-phase refactoring with persistent state that survives context limits and session boundaries.
| Use this skill when... | Use direct refactoring instead when... | |------------------------|---------------------------------------| | Refactoring spans 10+ files | Changing 1-5 files | | Work will exceed context limits | Small, focused change | | Need to resume across sessions | Single-session task | | Multiple dependent phases | Independent file changes | | Team coordination on large refactor | Solo quick fix |
git rev-parse --show-toplevelfind . -maxdepth 1 -name REFACTOR_PLAN.mdgit status --porcelaingit log --oneline --max-count=5--init: Create a new refactoring plan interactively--continue: Resume from the last completed phase--status: Show current plan progress--phase=N: Execute a specific phaseThe plan file (REFACTOR_PLAN.md) serves as persistent state:
# Refactor Plan: {description}
Created: {date}
Last updated: {date}
Base commit: {hash}
## Overview
{What is being refactored and why}
## Phase 1: {phase name}
- **Status**: done | in-progress | pending | needs-review
- **Files**: file1.ts, file2.ts, file3.ts
- **Description**: {what this phase does}
- **Acceptance criteria**: {how to verify success}
- **Result**: {summary of changes made, filled in after completion}
## Phase 2: {phase name}
- **Status**: pending
- **Files**: file4.ts, file5.ts
- **Description**: {what this phase does}
- **Acceptance criteria**: {how to verify success}
- **Result**: {empty until completed}
...
Execute this multi-phase refactoring workflow:
If --init flag provided:
REFACTOR_PLAN.md at repo rootgit log --format='%H' -1Phase ordering: Shared utilities/types first, leaf components last, tests alongside implementation.
If --continue flag provided:
REFACTOR_PLAN.mdpending or needs-review)doneIf --status flag provided:
REFACTOR_PLAN.mdFor each phase:
needs-review with error detailsWIP: prefixdone, write result summarygit add -u && git commit -m "refactor phase N: {description}"--continueFor phases with 7+ files, delegate to Task sub-agent with:
needs-review with error details| Situation | Action |
|-----------|--------|
| Context limit hit mid-phase | Start new session, run --continue |
| Phase marked needs-review | Read plan for details, fix issues, run --phase=N |
| Tests broken after a phase | Revert phase commit, investigate, re-execute |
| Plan needs adjustment | Edit REFACTOR_PLAN.md directly, update phases |
| Base branch moved | Rebase onto new base, re-validate completed phases |
| Context | Command |
|---------|---------|
| Check plan exists | test -f REFACTOR_PLAN.md && echo "exists" |
| Quick typecheck | npx tsc --noEmit --pretty 2>&1 \| head -20 |
| Quick test | npm test -- --bail=1 2>&1 \| tail -20 |
| Phase commit | git commit -m "refactor phase N: description" |
| Verify working state | npx tsc --noEmit && npm test -- --bail=1 |
| Show plan phases | grep "^## Phase" REFACTOR_PLAN.md |
| Show phase status | grep -A1 "^## Phase" REFACTOR_PLAN.md \| grep Status |
| Operation | Command |
|-----------|---------|
| Init new refactor | /workflow:checkpoint-refactor --init |
| Check progress | /workflow:checkpoint-refactor --status |
| Resume work | /workflow:checkpoint-refactor --continue |
| Run specific phase | /workflow:checkpoint-refactor --phase=3 |
| Manual plan edit | Edit REFACTOR_PLAN.md directly |
tools
Scaffold a new ComfyUI custom-node repo (pyproject, CI, release-please, vitest+pytest, JS extension skeleton) in the picker/gesture vein. Use when bootstrapping or init-ing a comfyui node pack.
tools
Orchestrate a ComfyUI node pack from idea to registry: scaffold, create + seed the repo, open the gitops adoption PR. Use when releasing or spinning up a new comfyui node pack.
testing
macOS EndpointSecurity/EDR high CPU & battery drain. Use when Kandji ESF / XProtect pegs a core; trace the exec storm via powermetrics + eslogger.
development
odiff pixel-by-pixel image diffing. Use when comparing screenshots, detecting visual regressions, diffing before/after PNGs, asserting golden images.