Codex DbSqlLikeMem Large Refactor for Shared Provider Code
Break broad cleanup into small testable changes. Establish a shared path, move callers in narrow batches, and preserve SQL provider-specific behavior.
中文Install in Codex
Codex with a DbSqlLikeMem checkout and access to relevant implementations, tests, and public contracts.
- Copy the entire pinned `.codex/skills/large-refactor/` directory to `.agents/skills/large-refactor/` in the target checkout.
- Open Codex in that checkout and invoke `$large-refactor` with the example task and desired output.
Example task
Invoke `$large-refactor` to extract duplicate parameter normalization from two query implementations in a practice branch. Keep existing callers in place during the first testable slice.What to check
The first change is independently verifiable with fixed helper inputs and outputs. A later slice can migrate callers in a recorded order.
Original SKILL.md on GitHub · Updated
Frequently asked question
How should I handle database-specific behavior?
Document each provider difference and its existing tests. Extract only the behavior the providers genuinely share.