Explains context-manager protocols and shows class-based, decorator-based, and asynchronous approaches to managing database connections, files, and other resources. Covers unconditional cleanup, selective exception suppression, efficient stream accumulation, metrics, and managing multiple resources with ExitStack.
76%
Does it follow best practices?
Impact
100%
1.02xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./tests/ext_conformance/artifacts/agents-wshobson/python-development/skills/python-resource-management/SKILL.mdThe canonical home for this skill is python-resource-management in wshobson/agents
Scanned
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.