skill · Languages & Frameworks
Python Resource Management
by wshobson
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.
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- ★ 43k on GitHub
- Updated 2026-11-18
- MIT
Calyban is a free desktop app. It checks Python Resource Management for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install Python Resource Management manually
Prefer the terminal? This does the same thing as Calyban's install.
Claude Code
git clone --depth 1 https://github.com/wshobson/agents.git calyban-tmp-python-resource-management
mkdir -p ~/.claude/skills
cp -r calyban-tmp-python-resource-management/plugins/python-development/skills/python-resource-management ~/.claude/skills/python-resource-management
rm -rf calyban-tmp-python-resource-managementCodex
git clone --depth 1 https://github.com/wshobson/agents.git calyban-tmp-python-resource-management
mkdir -p ~/.codex/skills
cp -r calyban-tmp-python-resource-management/plugins/python-development/skills/python-resource-management ~/.codex/skills/python-resource-management
rm -rf calyban-tmp-python-resource-managementStart a new Claude Code, Codex & more session afterwards so it picks up the change.
Similar skills
Guides
Listed in the public Calyban catalog. Python Resource Management is made by wshobson, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.