一键导入
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。