wdm0006/python-skills/deferring-heavy-dependencies
Keep expensive resources — ML models, spellcheck dictionaries, embedded databases, large third-party imports — off code paths that never use them. Covers constructor work paid by every caller, one-size factories that load the heaviest member for the cheapest request, load-and-unload-per-call masquerading as a cache, measuring per-call cost in a fresh process, telling a one-time import from a repeated model load, and the test fallout (patches that only now take effect, autouse fixtures that hide
Agent skill · version 0.0.0-main.1795736941.g95f001d · from wdm0006/python-skills
Install
npx yarkr-cli add skill:wdm0006/python-skills/deferring-heavy-dependenciesWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:wdm0006/python-skills/deferring-heavy-dependencies
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:wdm0006/python-skills/deferring-heavy-dependenciesOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:wdm0006/python-skills/deferring-heavy-dependenciesWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.