Skip to content
Back to skills

Coding.Fix From Imports

ASecurity

Replace `from X import Y` imports with `import X` and update usages in a file

  • 158 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
developmentpythonapi

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add gpsaggese/helpers --skill coding.fix_from_imports --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding.Fix From Imports?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding.Fix From Imports
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-coding-fix-from-imports/badge)](https://www.skillsdirectory.com/skills/gpsaggese-coding-fix-from-imports)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Replace `from X import Y` imports with `import X` and update usages in a file
model: haiku
---

- Replace any Python statement like `from X import Y` with the form `import X`
  and then replace the uses of `Y` with `X.Y`

- For aliased imports `from X import Y as Z`, convert to `import X` and replace
  all uses of `Z` with `X.Y`

- For nested module imports `from X.Y import Z`, convert to `import X.Y` and
  replace all uses of `Z` with `X.Y.Z`

- The only ones that can stay as `from X import Y` are:
  ```python
  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
  ```python
  # Re-export get_chat_model for backward compatibility.
  get_chat_model = langchain_API_utils.get_chat_model
  ```
  but replace all the callers

# Verification
- [ ] Confirm no remaining `from X import Y` statements outside the allowed
      exceptions
- [ ] Confirm every use of the imported name is updated to `X.Y` (or `X.Y.Z`
      for nested modules)
- [ ] Confirm no backward-compatibility re-export aliases remain

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.