import-ordering

Enforce and auto-fix import statement ordering in JavaScript and TypeScript codebases.

4|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill import-ordering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import-ordering
Source: https://github.com/mgd34msu/goodvibes-gemini/tree/main/skills/import-ordering
Command: npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill import-ordering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the issue of disorganized import statements in code, which can lead to confusion, errors, and reduced code readability.

Core Features & Use Cases

  • Enforces Standard Import Order: Automatically sorts imports based on predefined groups (built-in, external, internal, relative).
  • Alphabetical Sorting: Sorts imports alphabetically within each group for consistency.
  • Auto-Fixing: Integrates with ESLint to automatically fix import order issues.
  • Use Case: When developing a large Node.js/TypeScript project, ensure all import statements adhere to a consistent, readable, and maintainable structure.

Quick Start

Run the provided script to automatically fix import ordering issues in your source files.

Frequently Asked Questions about import-ordering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically sort and organize import statements in TypeScript?

You can automatically organize import statements in TypeScript by running a script that utilizes ESLint rules to group built-in modules, external packages, internal aliases, and relative paths, sorting them alphabetically. The provided script auto-fixes import ordering issues directly in your source files.

What is the standard order for imports in JavaScript and TypeScript codebases?

The standard import order groups statements into built-in modules, external packages, internal aliases, and relative paths, with alphabetical sorting applied within each group to ensure consistency and readability. This grouping prevents confusion and reduces errors caused by disorganized import statements.

Can I use ESLint to auto-fix import ordering issues in my Node.js project?

Yes, you can use ESLint to auto-fix import ordering issues in a Node.js project by integrating custom scripts and ESLint rules that enforce and automatically correct the predefined grouping and alphabetical sorting of your import statements. This ensures all imports adhere to a consistent structure.

What's the best way to enforce consistent import grouping across a large codebase?

The best way to enforce consistent import grouping across a large codebase is to apply automated ESLint validation and custom scripts that categorize imports into built-in, external, internal, and relative paths. This standardizes import structure and improves code readability and maintainability.

Do I need any dependencies to automatically fix import order in my source files?

No additional dependencies are required to fix import order in your source files. The Skill provides standalone scripts that handle the validation and automated fixing of import statements by standardizing grouping and alphabetical sorting without external package requirements.

Why does import organization matter for code quality in large projects?

Import organization matters for code quality because disorganized import statements lead to confusion, errors, and reduced readability. Standardizing imports into logical groups with alphabetical sorting creates a consistent, readable, and maintainable structure across large JavaScript and TypeScript projects.