Codex Senda Refactor with Characterization Tests
Establish current behavior with tests, then extract functions, rename symbols, or reduce duplication in small verified steps.
中文Install in Codex
Codex with a Senda checkout, its test and type-check commands, and a practice branch.
- Open the pinned GitHub original and retain the complete `.agents/skills/refactor/` directory in the checkout.
- Open Codex in that checkout and invoke `$refactor` with the example task and desired output.
Example task
Invoke `$refactor` to share date-label rendering between two local views. Capture output for an empty date and a valid date before extracting a function.What to check
Both views preserve their fixture outputs. Each change has a defined scope and verification result.
Original SKILL.md on GitHub · Updated
Frequently asked question
What if I find a bug that existed before the refactor?
Record the bug and how to reproduce it. Address it independently after a verified refactoring checkpoint.