gpsaggese/helpers / .claude/skills/coding.fix_from_imports
coding.fix_from_imports
VerifiedReplace `from X import Y` imports with `import X` and update usages in a file
-
Replace any Python statement like
from X import Ywith the formimport Xand then replace the uses ofYwithX.Y -
For aliased imports
from X import Y as Z, convert toimport Xand replace all uses ofZwithX.Y -
For nested module imports
from X.Y import Z, convert toimport X.Yand replace all uses ofZwithX.Y.Z -
The only ones that can stay as
from X import Yare:from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union, ... (any typing name) from IPython.display import display from pathlib import Path -
Do not use
# Re-export get_chat_model for backward compatibility. get_chat_model = langchain_API_utils.get_chat_modelbut replace all the callers
Verification
- Confirm no remaining
from X import Ystatements outside the allowed exceptions - Confirm every use of the imported name is updated to
X.Y(orX.Y.Zfor nested modules) - Confirm no backward-compatibility re-export aliases remain
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |