# Isort

> Use this skill when the user wants to sort Python imports, organize imports alphabetically, fix import order, or clean up Python imports.

- Skill: `javimosch/isort` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/isort`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/isort/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/isort

---


# isort Plugin

Python import sorter.

## Commands

### Sort
- `isort sort check` — Check import sorting (dry run)
- `isort sort write` — Sort imports in-place

## Usage Examples
- "Sort imports in this Python file"
- "Check if imports are sorted correctly"
- "Organize imports in the whole project"
- "Fix import ordering"

## Installation

```bash
pip install isort
```

## Examples

```bash
# Sort imports in-place
isort .

# Check only
isort --check-only .

# Show diff
isort --check-only --diff .

# Profile for black compatibility
isort --profile black .

# Force single line
isort --force-single-line-imports .
```

