Codex Edge Cases for Pytest Boundary and Input Coverage
Compare a checkpoint specification with existing tests. Identify missing empty, boundary, malformed, and state-related cases whose expected behavior is defined.
中文Install in Codex
Codex with a slop-code-bench or similar local checkout, the spec, existing tests, and the skill references.
- Copy the entire pinned `.codex/skills/edge-cases/` directory to `.agents/skills/edge-cases/` in the target checkout.
- Open Codex in that checkout and invoke `$edge-cases` with the example task and desired output.
Example task
Give `$edge-cases` a local counter specification with a normal-input test. Ask for a zero case and a negative case where the spec says zero is accepted and negatives are rejected.What to check
The tests check separate observable results for zero and negative values. Unspecified cases remain open for clarification.
Original SKILL.md on GitHub · Updated
Frequently asked question
What if the spec does not define an edge case?
Record it as a question. Add a behavioral test after the expected result is established.