Cube IML Skill
Check and repair the PyCharm/IntelliJ module configuration file.
Trigger
Use when:
- User runs
/cube-imlor asks about PyCharm/IntelliJ configuration - User reports "module not configured" or import resolution issues
- User says PyCharm doesn't recognize src or tests folders
Action
Run the reconstruct script:
python dev-tools/reconstruct_iml.py
The script will:
- Auto-detect the Python interpreter from existing config
- Find all venv/cache folders to exclude
- Create backup if .iml already exists
- Generate a proper .iml with src as source and tests as test source
Options
# Preview without writing (dry run)
python dev-tools/reconstruct_iml.py --dry-run
# Specify interpreter manually
python dev-tools/reconstruct_iml.py --interpreter "Python 3.14 (cubesolve)"
After Running
Tell user: "If PyCharm doesn't pick up changes immediately, try File → Invalidate Caches and Restart."