Python resource management with context managers, cleanup patterns, and streaming. Use when managing connections, file handles, implementing cleanup logic, or building streaming responses with accumulated state.
82
73%
Does it follow best practices?
Impact
100%
1.02xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./plugins/python-development/skills/python-resource-management/SKILL.mdStreaming accumulation and metrics
List-based accumulation
100%
100%
Join for final string
60%
100%
No string concatenation accumulation
100%
100%
perf_counter for timing
100%
100%
Time-to-first-byte tracked
100%
100%
Total time tracked
100%
100%
Accumulated + chunk yielded together
100%
100%
Finalized guard
100%
100%
structlog used for logging
100%
100%
contextmanager decorator used
100%
100%
Duration logged on exit
100%
100%
ExitStack and class-based context manager
__enter__ returns self
100%
100%
__exit__ signature correct
100%
100%
Unconditional cleanup
100%
100%
Temp file deletion in __exit__
100%
100%
Best-effort temp cleanup
100%
100%
Manual management supported
75%
100%
ExitStack for dynamic files
100%
100%
ExitStack enter_context used
100%
100%
with statement for resources
100%
100%
Cleanup tested on error path
100%
100%
No exception suppression
100%
100%
None-guard before close
100%
100%
Async context manager and selective exception suppression
__aenter__ implemented
100%
100%
__aexit__ implemented
100%
100%
BrokenPipeError suppressed
100%
100%
Other exceptions propagated
100%
100%
Suppression documented
100%
100%
Stream closed unconditionally
100%
100%
asynccontextmanager used
100%
100%
Transaction rollback on exception
100%
100%
Transaction commit on success
100%
100%
BrokenPipeError test passes
100%
100%
ValueError propagation test
100%
100%
async with statement used
100%
100%
27a7ed9
Table of Contents
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.