import-organizer

Automatically organize and sort import statements in JavaScript, TypeScript, Python, and other languages.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "import-organizer" with this command: npx skills add dexploarer/claudius-skills/dexploarer-claudius-skills-import-organizer

Import Organizer

Automatically organize and sort import statements in JavaScript, TypeScript, Python, and other languages.

When to Activate

  • "organize imports in this file"

  • "sort the imports"

  • "clean up import statements"

  • "fix import order"

Process

  • Read the file to see current imports

  • Identify import groups:

  • External/third-party imports

  • Internal/local imports

  • Type imports (TypeScript)

  • Side-effect imports

  • Sort within groups alphabetically

  • Remove duplicates if any

  • Apply language-specific conventions:

  • JavaScript/TypeScript: External, then internal

  • Python: Standard library, third-party, local

  • Preserve comments attached to imports

  • Update the file with organized imports

Language-Specific Rules

JavaScript/TypeScript

// External packages first import React from 'react' import { useState } from 'react' import axios from 'axios'

// Internal imports import { Button } from './components/Button' import { utils } from './utils'

// Type imports (TypeScript) import type { User } from './types'

// Side-effect imports last import './styles.css'

Python

Standard library

import os import sys from datetime import datetime

Third-party

import requests from django.db import models

Local

from .models import User from .utils import helper

Best Practices

  • Group by source (external vs internal)

  • Sort alphabetically within groups

  • Separate groups with blank lines

  • Remove unused imports (warn user)

  • Preserve special comments

  • Follow language conventions

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

terraform-module-builder

No summary provided by upstream source.

Repository SourceNeeds Review
General

threejs-scene-builder

No summary provided by upstream source.

Repository SourceNeeds Review
General

database-query-optimizer

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-component-generator

No summary provided by upstream source.

Repository SourceNeeds Review