Codex WeReply Refactoring for Shared Table Logic
Make small verified refactors in WeReply by extracting duplication and clarifying conditions. Check compact table spacing when touching table UI.
中文Install in Codex
Codex with a WeReply checkout and existing test cases or a repeatable manual path.
- Copy the entire pinned `.codex/skills/refactoring/` directory to `.agents/skills/refactoring/` in the target checkout.
- Open Codex in that checkout and invoke `$refactoring` with the example task and desired output.
Example task
Invoke `$refactoring` in a practice branch. Extract the same label-rendering behavior from two tables and check compact row spacing and the empty state with fixed data.What to check
Both tables preserve their prior output. Verification covers ordinary labels, missing labels, and narrow-width spacing.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I tell if the refactor preserved behavior?
Record representative inputs and expected UI before editing, then repeat the same tests or manual steps after the change.