Skip to main content
Exécutez n'importe quel Skill dans Manus
en un clic

wads-import-time

Étoiles0
Forks1
Mis à jour12 juin 2026 à 17:22

Audit and improve import time and import hygiene in a wads-managed Python repo. Measures `python -X importtime` (warm-cache, against the local checkout), ranks heavy modules and third-party offenders, verifies every module imports standalone (CI runs pytest --doctest-modules, which imports every module), cross-checks unguarded module-level imports of undeclared/extra-only packages, then makes imports lazy and clean (function-local imports, TYPE_CHECKING, PEP 562 module __getattr__, guarded optional deps). Use for "why is import so slow", "speed up import", "make imports lazy", "audit imports", "import hygiene check", "this module breaks --doctest-modules", "optional dependency breaks import", "lighten the core install". Also trigger when CI fails at collection with ImportError/ModuleNotFoundError before any test runs. Does NOT do full declared-vs-imported dependency drift (use the wads-deps CLI), measure test coverage (wads-test-coverage), or diagnose CI wiring (wads-ci-health).

Installation

Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.

Explorateur de fichiers
2 fichiers
SKILL.md
readonly