About
This skill empowers Claude to implement robust Python resource management strategies using both synchronous and asynchronous context managers. It provides standardized patterns for handling database connections, file I/O, and network sockets to ensure resources are released reliably even during exceptions. Beyond basic context managers, it covers advanced techniques like selective exception suppression, efficient string accumulation for streaming, and managing dynamic resource sets with ExitStack, making it essential for building production-grade, leak-free Python applications.