بنقرة واحدة
safe-refactor
Safely refactor a module with full test coverage verification
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Safely refactor a module with full test coverage verification
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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