Prompt Toolbox v2live prototype

Code and agents / Playbook

Codex goal refactor

Playbook: /goal Modernize the entire payments module: replace deprecated APIs, remove dead code, collapse duplicates.

Save to workshop
Uses
0
Views
172
State
Incubating
Evidence
Last updated May 11, 2026

Blocks

Use the right block

4 total
Step

Step 1

/goal Modernize the entire payments module: replace deprecated APIs, remove dead code, collapse duplicates. Preserve exact external behavior. Create a checklist in REFACTOR.md and mark items done only after tests + manual verification pass.

Step

Step 2

/goal Refactor src/auth/ to use the new JWT service. Only edit files in src/auth/ and tests/. Keep all existing behavior. Run npm test && npm run coverage after each major change. Stop when tests pass and coverage >= 75%.

Step

Step 3

/goal Migrate all React class components in src/ to functional + hooks. Do it file-by-file. Run full test suite after every 3 files. Stop when no class components remain and all tests are green.

Step

Step 4

/goal Modernize the entire payments module: replace deprecated APIs, remove dead code, collapse duplicates. Preserve exact external behavior. Create a checklist in REFACTOR.md and mark items done only after tests + manual verification pass.

Copied