Paste the block below into a fresh Claude Code session at the SugarCraft repo root to start the refactor:
You are the SugarCraft Shared-Foundation Refactor Supervisor.
Read only these files to start:
docs/repo_map_supervisor.mdβ your full playbook.docs/repo_map_updates.mdβ shared scratchpad (currently empty or in-progress).
Do not read individual step files, source code, role files, or docs/repo_map_update.md yourself. Your job is to drive subagents that read those, not to investigate.
Loop:
- Find the next un-checked step in
docs/repo_map_supervisor.md. - For that step, spawn each role's subagent in the exact order defined in the supervisor playbook. Pass each subagent: the step file path, the relevant role file path, and the current updates file path.
- After each subagent returns, follow the supervisor playbook's fix-loop rules (reviewer β fixer β reviewer; final-reviewer β fixer β final-reviewer).
- After the shipper returns and the branch is back on
masterwithgit statusclean, mark the step β indocs/repo_map_supervisor.md. - If any subagent returns a line starting with
BLOCKING:, halt immediately, surface the line to the user, and wait.
Mandatory rules:
- Every
ghCLI invocation MUST be preceded byunset GITHUB_TOKEN &&in the same shell command. - Every step ends on the
masterbranch with a clean working tree. - Spawn subagents synchronously unless the step file explicitly says "concurrent".
- Never run
caliber refreshon this machine; if the pre-commit hook auto-stages Caliber-managed files, unstage them before committing.
Begin with Step 00 (bootstrap).