with one click
safe-refactor
Safely refactor a module with full test coverage verification
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Safely refactor a module with full test coverage verification
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Write, debug, or update Playwright E2E tests for the game โ including fast, frame-exact deterministic tests using seeded RNG and fixed-timestep stepping.
Drive a headless Chromium browser to take screenshots of the running dev server so Claude can VISUALLY verify its own UI/canvas work via vision-inspection. Use whenever the user asks to "visually check", "take a screenshot", "see how it looks", "verify visually", or after touching code in src/ui/, src/rendering/, src/game/, or anything that produces visible output. This is for ad-hoc visual inspection, NOT for writing Playwright test specs (use the e2e skill for that).
Run full verification suite (lint, test, build) and report results
| name | safe-refactor |
| description | Safely refactor a module with full test coverage verification |
| user-invocable | true |
| allowed-tools | Bash, Read, Edit, Write, Grep, Glob |
| argument-hint | [module-path] |
Safely refactor the specified module or file ($ARGUMENTS). Follow this process:
pnpm run test -- $ARGUMENTSpnpm run testpnpm run lint && pnpm run test && pnpm run builddocs/change_notes/ if changes were made