circular-import-safety
CommunitySafely resolve Python import cycles.
Authorniksavis
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers detect, diagnose, and safely resolve circular Python import cycles, preventing ImportErrors and ensuring code stability.
Core Features & Use Cases
- Cycle Detection: Identifies known circular import paths within the codebase.
- Decision Guidance: Provides a decision tree to determine if lazy imports are necessary or if structural refactoring is a better solution.
- Pattern Enforcement: Details approved lazy wrapper patterns and explicitly forbids problematic import strategies.
- Validation Tools: Includes commands to quickly test for import errors and enforce linting rules.
- Use Case: When encountering an
ImportErrorduring application startup or when about to introduce a new import that might create a cycle, use this skill to understand the problem and apply the correct fix.
Quick Start
Run the combined pre-edit safety check to ensure no circular imports exist before making changes.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: circular-import-safety Download link: https://github.com/niksavis/burndown-chart/archive/main.zip#circular-import-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.