Codex GSX C++ Code Review for Resource Cleanup
Review a GSX diff with surrounding code and callers, then prioritize issues involving cleanup, boundaries and compatibility.
中文Install in Codex
Open the GSX workspace in Codex with the relevant diff, callers and tests. By default this skill reviews unstaged changes.
- Review `.agents/skills/code-review/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/code-review/` in your project and save the reviewed file as `.agents/skills/code-review/SKILL.md`.
- Start Codex from that project's root, then type `$code-review` and select the matching skill.
Example task
Review this illustrative C++ image buffer lifetime summary.
{"file":"image_buffer.cpp","line":42,"operation":"decode image","cleanupOnSuccess":true,"cleanupOnEarlyReturn":false}What to check
Report `early return misses cleanup` at `image_buffer.cpp:42`. Note that the success path has cleanup and suggest a regression test for the failure path.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can I rule out other issues from this summary?
The summary only describes the supplied paths. Inspect related code, callers and tests for a full review.