Codex Noodle Go Best Practices for Shutdown and Concurrency Tests
Review Go initialization, worker cancellation, and event fanout. Use repeatable tests to check shutdown order and ownership.
中文Install in Codex
Codex with a Noodle checkout, its Go environment, and the bundled patterns.md reference.
- Open the pinned GitHub original and retain the complete `.agents/skills/go-best-practices/` directory in the checkout.
- Open Codex in that checkout and invoke `$go-best-practices` with the example task and desired output.
Example task
Invoke `$go-best-practices` for two local queue workers in a practice project. Request a deterministic shutdown test using controlled signals and local fixtures.What to check
The test establishes shutdown order and completion conditions. The code identifies the owner of the wait and cancellation paths.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I keep shutdown logic in one place?
Use a shared initialization path and coordinate shutdown at a clear boundary in dependency order.