CtrlK
BlogDocsLog inGet started
Tessl Logo

python-resource-management

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

1.02x
Quality

73%

Does it follow best practices?

Impact

100%

1.02x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./plugins/python-development/skills/python-resource-management/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

4%

Streaming Response Processor

Streaming accumulation and metrics

Criteria
Without context
With context

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%

100%

2%

Multi-File Batch Processor

ExitStack and class-based context manager

Criteria
Without context
With context

__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%

100%

Async Stream Writer with Graceful Disconnect Handling

Async context manager and selective exception suppression

Criteria
Without context
With context

__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%

Repository
wshobson/agents
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.