Agent skill
import-organizer
Organizes and sorts import statements in code files. Use when imports are messy or need organization.
Install this agent skill to your Project
npx add-skill https://github.com/Dexploarer/claudius-skills/tree/main/examples/beginner/simple-skills/import-organizer
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
smart-contract-generator
Generates Solidity smart contracts with security best practices (ERC-20, ERC-721, ERC-1155, custom). Use when user asks to "create smart contract", "solidity contract", "erc20 token", "nft contract", or "web3 contract".
threejs-scene-builder
Comprehensive Three.js and React Three Fiber skill for creating 3D scenes, characters, NPCs, procedural generation, animation retargeting, and interactive experiences. Use when user asks to "create Three.js scene", "setup React Three Fiber", "add 3D character", "create NPC AI", "procedural 3D generation", "retarget animation", "setup avatar system", or "create 3D game".
wcag-compliance-checker
Checks websites for WCAG 2.1 Level AA compliance, identifies accessibility violations, and provides remediation guidance. Use when user asks to "check accessibility", "wcag compliance", "a11y audit", "accessibility violations", or "screen reader testing".
kubernetes-manifest-generator
Generates Kubernetes manifests (Deployments, Services, Ingress, ConfigMaps, Secrets) with best practices for production workloads. Use when user asks to "create k8s manifest", "generate Kubernetes deployment", "setup k8s service", or "create Kubernetes resources".
terraform-module-builder
Generates reusable Terraform modules with best practices for AWS, Azure, GCP infrastructure as code. Use when user asks to "create Terraform module", "generate IaC module", "setup Terraform", or "create infrastructure module".
translation-key-extractor
Extracts hardcoded strings from code and converts them to translation keys for i18n. Use when user asks to "extract translations", "find hardcoded strings", "internationalize code", "setup i18n", or "create translation files".
Didn't find tool you were looking for?