with one click
auto-resource-lifecycle
Resource lifecycle discipline: guaranteed cleanup on all paths (including error), RAII/context managers/try-with-resources, and the specific resource leak patterns Claude defaults to. Corrects manual open/close without error-path coverage, missing cleanup on teardown, and spawned tasks without join/cancel. Use when opening files, database connections, HTTP clients, event listeners, or spawning tasks. Triggers: resource, cleanup, close, drop, dispose, finally, context manager, with, RAII, defer, leak, connection pool, file handle, event listener, subscription, spawn, JoinSet, teardown, shutdown.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.