New advertisers: 50% off your first month with code FIRSTMONTHSee slots
devsforge avatar

import-organizer

Sorting, grouping, and cleaning up import statements with unused import detection and ESLint integration.

version
1.0.0
GitHub stars
79

What it does

  • Adds the import-organizer command to sort, group, and tidy import statements automatically
  • Detects unused imports so dead references can be removed alongside the reordering
  • Integrates with ESLint so import cleanup can follow the same rules your linter enforces

Sort and organize import statements automatically

Add marketplace

/plugin marketplace add devsforge/marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install import-organizer@devsforge-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

DevsForge Import Organizer

DevsForge intelligent import organization system that automatically sorts, groups, and optimizes import statements across JavaScript, TypeScript, Python, and other languages, removing unused imports and maintaining consistent code style throughout your codebase.

Purpose

Transform import management from manual organization to intelligent automation that maintains consistent import ordering, removes dead imports, groups related modules, and enforces team conventions for cleaner, more maintainable code.

Features

  • Automatic Sorting: Sort imports alphabetically, by type, or by custom rules
  • Smart Grouping: Group by external/internal, type/value, or custom categories
  • Unused Import Detection: Find and remove unused imports automatically
  • Multi-Language Support: JavaScript, TypeScript, Python, Go, Rust, Java
  • ESLint Integration: Enforce import rules with ESLint configuration
  • Preserve Comments: Maintain import-related comments during reorganization
  • Bulk Operations: Process entire directories or specific files
  • Custom Rules: Define project-specific import organization rules

Usage

/import-organizer [action] [options]

Target: $ARGUMENTS (if specified, otherwise analyze current directory)

Organization Actions

Organize Current File:

/import-organizer organize --file=src/app.ts --style=grouped

Reorganizes imports with:

  • External packages first (from node_modules)
  • Internal modules second (project files)
  • Alphabetical sorting within groups
  • Blank lines between groups
  • Type imports separated from value imports
  • Side-effect imports at the end
  • Preserved import comments
  • Consistent quote style

Remove Unused Imports:

/import-organizer remove-unused --path=src/ --recursive

Finds and removes unused imports by:

  • Static analysis of import usage
  • Dead code detection
  • Type-only imports that are unused
  • Namespace imports with no references
  • Default imports that are never used
  • Named imports with zero usage
  • Safe removal with backup
  • Detailed removal report

Sort Imports:

/import-organizer sort --file=index.js --order=alphabetical

Sorts imports using strategies:

  • Alphabetical by module name
  • By import type (default, named, namespace)
  • By path depth (shallow to deep)
  • Natural order (numbers before letters)
  • Custom comparator functions
  • Case-sensitive or insensitive
  • Length-based sorting
  • Dependency-based ordering

Group Imports:

/import-organizer group --directory=src/ --categories=custom

Groups imports into categories:

  • Built-in modules (node:*, core libraries)
  • External packages (node_modules)
  • Internal modules (absolute imports)
  • Relative imports (./, ../ )
  • Type imports (@types/*)
  • Style imports (*.css, *.scss)
  • Asset imports (*.png, *.svg)
  • Custom groups per configuration

Code Examples

Import Organizer (TypeScript)

import * as fs from 'fs';
import * as path from 'path';
import { Project, SourceFile, SyntaxKind, ImportDeclaration } from 'ts-morph';

interface ImportInfo {
  declaration: ImportDeclaration;
  module: string;
  category: 'builtin' | 'external' | 'internal' | 'relative';
  importType: 'default' | 'named' | 'namespace' | 'side-effect';
  names: string[];
  isTypeOnly: boolean;
  lineNumber: number;
}

interface OrganizerConfig {
  sortOrder: 'alphabetical' | 'length' | 'natural';
  grouping: 'category' | 'flat' | 'custom';
  separateTypeImports: boolean;
  blankLinesBetweenGroups: boolean;
  removeUnused: boolean;
  customGroups?: Record<string, string[]>;
}

class ImportOrganizer {
  private project: Project;
  private config: OrganizerConfig;

  constructor(tsConfigPath?: string, config?: Partial<OrganizerConfig>) {
    this.project = new Project({
      tsConfigFilePath: tsConfigPath
    });

    this.config = {
      sortOrder: 'alphabetical',
      grouping: 'category',
      separateTypeImports: true,
      blankLinesBetweenGroups: true,
      removeUnused: false,
      ...config
    };
  }

  organizeFile(filePath: string): void {
    const sourceFile = this.project.addSourceFileAtPath(filePath);

    // Extract import information
    const imports = this.extractImports(sourceFile);

    // Remove unused imports if configured
    if (this.config.removeUnused) {
      this.removeUnusedImports(sourceFile, imports);
    }

    // Organize remaining imports
    const organized = this.organizeImports(imports);

    // Replace imports in source file
    this.replaceImports(sourceFile, organized);

    // Save changes
    sourceFile.saveSync();

    console.log(`โœ… Organized imports in ${filePath}`);
  }

  private extractImports(sourceFile: SourceFile): ImportInfo[] {
    const imports: ImportInfo[] = [];
    const importDeclarations = sourceFile.getImportDeclarations();

    for (const declaration of importDeclarations) {
      const moduleSpecifier = declaration.getModuleSpecifierValue();
      const category = this.categorizeImport(moduleSpecifier);
      const isTypeOnly = declaration.isTypeOnly();

      let importType: ImportInfo['importType'] = 'side-effect';
      const names: string[] = [];

      // Check for default import
      const defaultImport = declaration.getDefaultImport();
      if (defaultImport) {
        importType = 'default';
        names.push(defaultImport.getText());
      }

      // Check for named imports
      const namedImports = declaration.getNamedImports();
      if (namedImports.length > 0) {
        importType = names.length > 0 ? 'default' : 'named';
        names.push(...namedImports.map(ni => ni.getName()));
      }

      // Check for namespace import
      const namespaceImport = declaration.getNamespaceImport();
      if (namespaceImport) {
        importType = 'namespace';
        names.push(namespaceImport.getText());
      }

      imports.push({
        declaration,
        module: moduleSpecifier,
        category,
        importType,
        names,
        isTypeOnly,
        lineNumber: declaration.getStartLineNumber()
      });
    }

    return imports;
  }

  private categorizeImport(module: string): ImportInfo['category'] {
    // Built-in modules
    if (module.startsWith('node:') || this.isBuiltinModule(module)) {
      return 'builtin';
    }

    // Relative imports
    if (module.startsWith('.')) {
      return 'relative';
    }

    // Check if it's an internal module (starts with @/ or ~/)
    if (module.startsWith('@/') || module.startsWith('~/')) {
      return 'internal';
    }

    // External package
    return 'external';
  }

  private isBuiltinModule(module: string): boolean {
    const builtins = [
      'fs', 'path', 'http', 'https', 'crypto', 'stream', 'events',
      'util', 'os', 'child_process', 'url', 'querystring', 'buffer'
    ];
    return builtins.includes(module) || builtins.includes(module.split('/')[0]);
  }

  private removeUnusedImports(sourceFile: SourceFile, imports: ImportInfo[]): void {
    const unusedImports = this.findUnusedImports(sourceFile, imports);

    for (const importInfo of unusedImports) {
      importInfo.declaration.remove();
    }

    if (unusedImports.length > 0) {
      console.log(`๐Ÿ—‘๏ธ  Removed ${unusedImports.length} unused imports`);
    }
  }

  private findUnusedImports(sourceFile: SourceFile, imports: ImportInfo[]): ImportInfo[] {
    const unused: ImportInfo[] = [];
    const fileText = sourceFile.getFullText();

    for (const importInfo of imports) {
      // Skip side-effect imports
      if (importInfo.importType === 'side-effect') {
        continue;
      }

      const allNamesUsed = importInfo.names.every(name => {
        // Create regex to find usage (not in import statement)
        const importStatementEnd = importInfo.declaration.getEnd();
        const textAfterImport = fileText.substring(importStatementEnd);

        // Look for the name as a standalone identifier
        const usageRegex = new RegExp(`\\b${name}\\b`, 'g');
        return usageRegex.test(textAfterImport);
      });

      if (!allNamesUsed) {
        unused.push(importInfo);
      }
    }

    return unused;
  }

  private organizeImports(imports: ImportInfo[]): ImportInfo[][] {
    // Separate type imports if configured
    let valueImports = imports;
    let typeImports: ImportInfo[] = [];

    if (this.config.separateTypeImports) {
      valueImports = imports.filter(i => !i.isTypeOnly);
      typeImports = imports.filter(i => i.isTypeOnly);
    }

    // Group imports by category
    const groups = this.groupImports(valueImports);
    const typeGroups = this.config.separateTypeImports
      ? this.groupImports(typeImports)
      : [];

    // Sort within each group
    const sortedGroups = groups.map(group => this.sortImports(group));
    const sortedTypeGroups = typeGroups.map(group => this.sortImports(group));

    // Combine groups
    return [...sortedGroups, ...sortedTypeGroups].filter(g => g.length > 0);
  }

  private groupImports(imports: ImportInfo[]): ImportInfo[][] {
    if (this.config.grouping === 'flat') {
      return [imports];
    }

    const groups: Record<string, ImportInfo[]> = {
      builtin: [],
      external: [],
      internal: [],
      relative: []
    };

    for (const importInfo of imports) {
      groups[importInfo.category].push(importInfo);
    }

    // Return groups in order, excluding empty groups
    return Object.values(groups).filter(group => group.length > 0);
  }

  private sortImports(imports: ImportInfo[]): ImportInfo[] {
    return imports.sort((a, b) => {
      switch (this.config.sortOrder) {
        case 'alphabetical':
          return a.module.localeCompare(b.module);

        case 'length':
          return a.module.length - b.module.length;

        case 'natural':
          return this.naturalCompare(a.module, b.module);

        default:
          return 0;
      }
    });
  }

  private naturalCompare(a: string, b: string): number {
    return a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' });
  }

  private replaceImports(sourceFile: SourceFile, organizedGroups: ImportInfo[][]): void {
    // Get all import declarations
    const allImports = sourceFile.getImportDeclarations();

    if (allImports.length === 0) {
      return;
    }

    // Remove all existing imports
    allImports.forEach(imp => imp.remove());

    // Build new import statements
    const importStatements: string[] = [];

    for (let i = 0; i < organizedGroups.length; i++) {
      const group = organizedGroups[i];

      for (const importInfo of group) {
        importStatements.push(this.buildImportStatement(importInfo));
      }

      // Add blank line between groups (except after last group)
      if (this.config.blankLinesBetweenGroups && i < organizedGroups.length - 1) {
        importStatements.push('');
      }
    }

    // Insert organized imports at the top of file
    sourceFile.insertText(0, importStatements.join('\n') + '\n\n');
  }

  private buildImportStatement(importInfo: ImportInfo): string {
    const { module, importType, names, isTypeOnly } = importInfo;
    const typePrefix = isTypeOnly ? 'type ' : '';

    switch (importType) {
      case 'side-effect':
        return `import '${module}';`;

      case 'namespace':
        return `import ${typePrefix}* as ${names[0]} from '${module}';`;

      case 'default':
        if (names.length === 1) {
          return `import ${typePrefix}${names[0]} from '${module}';`;
        }
        // Default + named imports
        const [defaultName, ...namedNames] = names;
        return `import ${typePrefix}${defaultName}, { ${namedNames.join(', ')} } from '${module}';`;

      case 'named':
        return `import ${typePrefix}{ ${names.join(', ')} } from '${module}';`;

      default:
        return '';
    }
  }

  organizeDirectory(dirPath: string, recursive: boolean = true): void {
    const pattern = recursive ? '**/*.{ts,tsx,js,jsx}' : '*.{ts,tsx,js,jsx}';
    const files = this.project.addSourceFilesAtPaths(path.join(dirPath, pattern));

    console.log(`๐Ÿ“ฆ Organizing imports in ${files.length} files...`);

    for (const file of files) {
      this.organizeFile(file.getFilePath());
    }

    console.log('โœ… Import organization complete!');
  }
}

// Usage examples
const organizer = new ImportOrganizer('./tsconfig.json', {
  sortOrder: 'alphabetical',
  grouping: 'category',
  separateTypeImports: true,
  blankLinesBetweenGroups: true,
  removeUnused: true
});

// Organize single file
organizer.organizeFile('./src/app.ts');

// Organize entire directory
organizer.organizeDirectory('./src', true);

Python Import Organizer

import os
import re
from typing import List, Dict, Set, Tuple
from dataclasses import dataclass
from enum import Enum

class ImportCategory(Enum):
    STANDARD_LIBRARY = 1
    THIRD_PARTY = 2
    LOCAL = 3

@dataclass
class Import:
    line: str
    module: str
    names: List[str]
    category: ImportCategory
    is_from_import: bool
    line_number: int

class PythonImportOrganizer:
    STANDARD_LIBRARY = {
        'os', 'sys', 'json', 're', 'datetime', 'time', 'math',
        'random', 'collections', 'itertools', 'functools', 'typing',
        'pathlib', 'io', 'pickle', 'csv', 'xml', 'http', 'urllib',
        'socket', 'threading', 'multiprocessing', 'asyncio', 'logging'
    }

    def __init__(self, remove_unused: bool = False):
        self.remove_unused = remove_unused

    def organize_file(self, file_path: str) -> None:
        """Organize imports in a Python file."""
        with open(file_path, 'r', encoding='utf-8') as f:
            lines = f.readlines()

        # Extract imports and rest of file
        imports, rest_of_file, first_import_line = self._extract_imports(lines)

        # Find unused imports if configured
        if self.remove_unused:
            used_names = self._find_used_names('\n'.join(rest_of_file))
            imports = self._remove_unused(imports, used_names)

        # Organize imports
        organized = self._organize_imports(imports)

        # Reconstruct file
        new_content = (
            ''.join(lines[:first_import_line]) +
            organized +
            '\n\n' +
            ''.join(rest_of_file)
        )

        # Write back to file
        with open(file_path, 'w', encoding='utf-8') as f:
            f.write(new_content)

        print(f"โœ… Organized imports in {file_path}")

    def _extract_imports(self, lines: List[str]) -> Tuple[List[Import], List[str], int]:
        """Extract import statements from file."""
        imports: List[Import] = []
        rest_of_file: List[str] = []
        first_import_line = -1
        import_section = False
        import_block = []
        line_number = 0

        for i, line in enumerate(lines):
            stripped = line.strip()

            # Check if it's an import line
            if stripped.startswith('import ') or stripped.startswith('from '):
                if first_import_line == -1:
                    first_import_line = i

                import_section = True
                import_block.append(line)

                # Parse import
                import_info = self._parse_import(stripped, i)
                if import_info:
                    imports.append(import_info)

            # Skip blank lines and comments in import section
            elif import_section and (not stripped or stripped.startswith('#')):
                continue

            # End of import section
            elif import_section and stripped:
                import_section = False
                rest_of_file.append(line)

            # Before imports or after imports
            else:
                if first_import_line == -1:
                    line_number = i + 1
                else:
                    rest_of_file.append(line)

        if first_import_line == -1:
            first_import_line = line_number

        return imports, rest_of_file, first_import_line

    def _parse_import(self, line: str, line_number: int) -> Import:
        """Parse an import statement."""
        # Handle 'from ... import ...'
        from_match = re.match(r'from\s+([\w.]+)\s+import\s+(.+)', line)
        if from_match:
            module = from_match.group(1)
            imports_str = from_match.group(2)

            # Handle parenthesized imports
            imports_str = imports_str.strip('()')

            # Extract imported names
            names = [name.strip() for name in imports_str.split(',')]
            names = [re.sub(r'\s+as\s+\w+', '', name) for name in names]

            category = self._categorize_import(module)

            return Import(
                line=line,
                module=module,
                names=names,
                category=category,
                is_from_import=True,
                line_number=line_number
            )

        # Handle 'import ...'
        import_match = re.match(r'import\s+([\w., ]+)', line)
        if import_match:
            modules_str = import_match.group(1)
            modules = [m.strip() for m in modules_str.split(',')]
            module = modules[0]  # Use first module for categorization

            category = self._categorize_import(module)

            return Import(
                line=line,
                module=module,
                names=modules,
                category=category,
                is_from_import=False,
                line_number=line_number
            )

        return None

    def _categorize_import(self, module: str) -> ImportCategory:
        """Categorize an import as standard library, third-party, or local."""
        base_module = module.split('.')[0]

        # Check if standard library
        if base_module in self.STANDARD_LIBRARY:
            return ImportCategory.STANDARD_LIBRARY

        # Local imports (relative)
        if module.startswith('.'):
            return ImportCategory.LOCAL

        # Check if it's a local module by trying to import
        try:
            # This is a heuristic - third-party packages are usually installed
            import importlib.util
            spec = importlib.util.find_spec(base_module)
            if spec and spec.origin and 'site-packages' not in str(spec.origin):
                return ImportCategory.LOCAL
        except:
            pass

        return ImportCategory.THIRD_PARTY

    def _organize_imports(self, imports: List[Import]) -> str:
        """Organize imports by category and sort alphabetically."""
        # Group by category
        groups: Dict[ImportCategory, List[Import]] = {
            ImportCategory.STANDARD_LIBRARY: [],
            ImportCategory.THIRD_PARTY: [],
            ImportCategory.LOCAL: []
        }

        for imp in imports:
            groups[imp.category].append(imp)

        # Sort each group
        for category in groups:
            groups[category].sort(key=lambda x: (not x.is_from_import, x.module, x.line))

        # Build organized import string
        lines = []

        for category in [ImportCategory.STANDARD_LIBRARY, ImportCategory.THIRD_PARTY, ImportCategory.LOCAL]:
            group = groups[category]
            if group:
                # Add imports
                lines.extend([imp.line for imp in group])
                # Add blank line between groups
                lines.append('')

        # Remove trailing blank line
        while lines and not lines[-1].strip():
            lines.pop()

        return '\n'.join(lines)

    def _find_used_names(self, code: str) -> Set[str]:
        """Find all names used in the code."""
        # Simple regex to find identifiers
        pattern = r'\b([a-zA-Z_][a-zA-Z0-9_]*)\b'
        matches = re.findall(pattern, code)
        return set(matches)

    def _remove_unused(self, imports: List[Import], used_names: Set[str]) -> List[Import]:
        """Remove unused imports."""
        used_imports = []

        for imp in imports:
            # Check if any imported name is used
            if imp.names[0] == '*':
                # Keep wildcard imports
                used_imports.append(imp)
            elif any(name in used_names for name in imp.names):
                used_imports.append(imp)
            else:
                print(f"๐Ÿ—‘๏ธ  Removing unused import: {imp.line.strip()}")

        return used_imports

# Usage
organizer = PythonImportOrganizer(remove_unused=True)
organizer.organize_file('./src/app.py')

ESLint Configuration

// .eslintrc.js
module.exports = {
  plugins: ['import'],
  rules: {
    // Enforce import order
    'import/order': ['error', {
      'groups': [
        'builtin',     // Node.js built-in modules
        'external',    // npm packages
        'internal',    // Internal modules (aliased)
        'parent',      // Parent directory imports
        'sibling',     // Sibling directory imports
        'index',       // Index imports
        'type'         // Type imports
      ],
      'pathGroups': [
        {
          pattern: '@/**',
          group: 'internal',
          position: 'before'
        }
      ],
      'newlines-between': 'always',
      'alphabetize': {
        order: 'asc',
        caseInsensitive: true
      }
    }],

    // No unused imports
    'no-unused-vars': ['error', {
      'vars': 'all',
      'args': 'after-used',
      'ignoreRestSiblings': true
    }],

    // Prefer named exports
    'import/prefer-default-export': 'off',

    // No duplicate imports
    'import/no-duplicates': 'error',

    // No anonymous default exports
    'import/no-anonymous-default-export': 'error',

    // Extensions
    'import/extensions': ['error', 'ignorePackages', {
      'js': 'never',
      'jsx': 'never',
      'ts': 'never',
      'tsx': 'never'
    }]
  }
};

Best Practices

Import Organization

  • Consistent Ordering: Follow a consistent import order across all files
  • Group by Type: Separate external, internal, and relative imports
  • Alphabetical Sorting: Sort imports alphabetically within groups
  • Blank Lines: Use blank lines to separate import groups
  • Type Imports: Keep type imports separate from value imports

Code Quality

  • Remove Unused: Regularly clean up unused imports
  • ESLint Integration: Enforce import rules with linting
  • Pre-commit Hooks: Organize imports before committing
  • CI/CD Checks: Validate import organization in CI pipeline
  • Team Standards: Document and enforce team conventions

Performance

  • Tree Shaking: Proper imports enable better tree shaking
  • Bundle Size: Remove unused imports to reduce bundle size
  • Code Splitting: Organized imports make code splitting easier
  • Lazy Loading: Group imports by feature for lazy loading

DevsForge Import Organizer - Enterprise-grade import management with intelligent sorting, grouping, unused import detection, and seamless ESLint integration for cleaner, more maintainable codebases.

From the devsforge/marketplace README

Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.


๐Ÿš€ DevsForge Marketplace

Version Plugins License Claude Code Stars

The Ultimate Plugin Ecosystem for Claude Code

161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins

Get Started โ€ข Browse Plugins โ€ข Documentation โ€ข Contributing


โšก What's New in v1.2

โœ… Plugin Compliance & Quality

All 161 plugins validated for Claude Code CLI

Fixes Applied:

  • ๐Ÿ”ง Removed invalid commands field from 65 command plugins
  • โœ… All plugin.json files validated
  • ๐Ÿ“ Auto-discovery pattern for commands
  • ๐Ÿ—๏ธ Super plugins structure retained

๐Ÿ—๏ธ Super Plugins (Advanced)

Multi-component platforms with hooks & MCP servers

Features:

  • ๐Ÿค– AI Agent orchestration
  • ๐Ÿข Enterprise workspace management
  • ๐Ÿ”ง Complete DevOps automation
  • ๐Ÿ“Š Real-time state tracking
  • โœจ Event-driven workflows

โœจ Why DevsForge Marketplace?


๐ŸŽจ

Curated Quality

Every plugin manually reviewed & enterprise-tested


โšก

Production Ready

Battle-tested in real-world scenarios


๐Ÿ”’

Security First

Zero dependencies, fully audited code


๐Ÿš€

Advanced Features

Hooks, MCP servers, automation


๐Ÿ’ฏ

100% Original

No copycat plugins, pure innovation


๐ŸŽฏ Quick Start

Installation

# ๐Ÿ”ฅ One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git

# โœ… Verify installation
/plugin marketplace list

# ๐ŸŽ‰ Expected: devsforge-marketplace (1.2.0) - 161 plugins available

Using Plugins

# ๐Ÿ” Browse available plugins
/plugin

# ๐Ÿ“ฆ Install specific plugin
/plugin install ai-architect@devsforge-marketplace

# ๐Ÿš€ Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace

# ๐Ÿ“‹ Manage plugins
/plugin list                              # List installed
/plugin update ai-architect@devsforge-marketplace   # Update plugin
/plugin remove debugger@devsforge-marketplace       # Remove plugin

๐ŸŽจ Featured Categories

๐Ÿค– AI & Machine Learning (12 plugins)
  • ai-architect - ML optimization & AI system design
  • ai-ethics-officer - Ethical AI governance
  • vision-specialist - Computer vision & image processing
  • data-scientist - Data analysis & BigQuery operations
  • data-analyst - Analytics & business intelligence
๐Ÿ”’ Security & Compliance (15 plugins)
  • enterprise-security-reviewer - B2B security assessments
  • security-scanner - Vulnerability detection & remediation
  • authentication-specialist - JWT, OAuth2, security patterns
  • cors-security-expert - CORS configuration & best practices
  • data-privacy-engineer - GDPR compliance & data protection
  • compliance-automation-specialist - Regulatory automation
  • legal-compliance-checker - Legal compliance validation
๐Ÿ’ป Development & Code Quality (25 plugins)
  • code-quality-expert - Code governance & security
  • code-migrator - Legacy code modernization
  • debugger - Advanced debugging methodologies
  • web-dev - React, Next.js, NestJS, TypeScript
  • python-expert - Advanced Python development
  • database-expert โšก NEW - SQL optimization & query tuning
  • docker-specialist โšก NEW - Container optimization
  • git-workflow-expert โšก NEW - Advanced Git strategies
  • rest-api-designer โšก NEW - REST API best practices
  • graphql-specialist โšก NEW - GraphQL schema design
๐Ÿ”ง DevOps & Infrastructure (18 plugins)
  • devops-automator - CI/CD & infrastructure automation
  • deployment-engineer - Production deployment strategies
  • cloud-architect - Multi-cloud architecture
  • monitoring-observability-specialist - System monitoring
  • sre-reliability-engineer - Site reliability engineering
  • cost-optimizer - Cloud cost optimization
๐Ÿงช Testing & QA (10 plugins)
  • testing-orchestrator - Test automation frameworks
  • unit-test-generator - Automated test generation
  • api-quality-assurance - API testing & validation
  • performance-benchmarker - Performance testing
  • test-writer-fixer - Test creation & maintenance
๐Ÿ“ Documentation & Knowledge (8 plugins)
  • codebase-documenter - Comprehensive code documentation
  • technical-writer-pro - Technical documentation
  • api-docs-generator - OpenAPI/Swagger docs
  • doc-generator - Auto-documentation generation
๐ŸŽจ Design & UX (8 plugins)
  • ui-designer - Beautiful, functional interfaces
  • ui-ux-engineer - React/Vue/Angular components
  • accessibility-architect - WCAG 2.1 AA compliance
  • mobile-ux-optimizer - Mobile-first experiences
  • ux-researcher - User research & journey maps
๐Ÿ“Š Data & Analytics (7 plugins)
  • data-analyst - Analytics methodologies
  • data-scientist - SQL queries & data insights
  • database-performance-optimizer - Database optimization
  • sql-query-optimizer - Advanced SQL optimization
๐Ÿข Enterprise & Business (12 plugins)
  • software-architect - Scalable architecture design
  • system-architect - Backend design & integration
  • b2b-project-shipper - B2B project delivery
  • customer-success-manager - Customer success ops
  • technical-sales-engineer - Technical sales support
  • pricing-packaging-specialist - Pricing strategies
๐Ÿš€ Productivity & Automation (15 plugins)
  • workflow-optimizer - Workflow optimization
  • project-shipper - Launch & release management
  • sprint-prioritizer - Sprint planning & prioritization
  • experiment-tracker - Experiment tracking & analysis
  • finance-tracker - Budget & cost management
โšก Super Plugins - Advanced (3 plugins)

๐Ÿข enterprise-workspace

Complete workspace management platform with hooks & MCP

Components:

  • 3 Commands: workspace-init, workspace-sync, workspace-audit
  • 2 Agents: workspace-architect, compliance-auditor
  • 1 Hook: PostToolUse validation
  • 1 MCP Server: workspace-state
  • 1 Script: validate-workspace.sh

Features:

  • โœ… Architecture governance
  • โœ… Compliance tracking
  • โœ… Automated validation
  • โœ… State management

๐Ÿค– ai-studio-orchestrator

Advanced multi-agent coordination platform

Components:

  • 3 Commands: orchestrate-task, monitor-performance, optimize-workflow
  • 2 Agents: task-coordinator, performance-analyzer
  • 1 Hook: PreToolUse logging
  • 1 MCP Server: orchestrator
  • 1 Script: task-logger.sh

Features:

  • โœ… Task distribution
  • โœ… Load balancing
  • โœ… Performance analytics
  • โœ… Real-time monitoring

๐Ÿ”ง devops-platform

Complete DevOps automation platform

Components:

  • 3 Commands: setup-pipeline, deploy-application, manage-infrastructure
  • 2 Agents: cicd-architect, infrastructure-engineer
  • 1 Hook: PostToolUse config validation
  • 1 MCP Server: devops-state
  • 1 Script: validate-devops-config.sh

Features:

  • โœ… CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
  • โœ… Zero-downtime deployments
  • โœ… Infrastructure as Code (Terraform, CloudFormation)
  • โœ… Security scanning

๐Ÿ“Š Marketplace Statistics

CategoryCountDescription
๐Ÿค– Agents93AI-powered development assistants
โšก Commands65Instant productivity tools
๐Ÿš€ Super Plugins3Advanced multi-component platforms
Total161Production-ready plugins

Quality Metrics

  • โœ… Average Documentation: 250+ lines per plugin
  • โœ… Code Examples: Real-world templates included
  • โœ… Testing: Enterprise-grade validation
  • โœ… Security: Zero external dependencies
  • โœ… Maintenance: Regular updates & improvements

๐Ÿ—๏ธ Architecture

devsforge-marketplace/
โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ””โ”€โ”€ marketplace.json          # ๐Ÿ“‹ Marketplace registry (161 plugins)
โ”‚
โ”œโ”€โ”€ plugins/
โ”‚   โ”œโ”€โ”€ agents/                    # ๐Ÿค– 93 AI Agent Plugins
โ”‚   โ”‚   โ”œโ”€โ”€ ai-architect/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ plugin.json
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ agents/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ ai-engineer.md
โ”‚   โ”‚   โ”œโ”€โ”€ database-expert/       โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ docker-specialist/     โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ git-workflow-expert/   โšก NEW in v1.1
โ”‚   โ”‚   โ””โ”€โ”€ ... (90 more agents)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ commands/                  # โšก 65 Command Plugins
โ”‚   โ”‚   โ”œโ”€โ”€ api-designer/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ plugin.json
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ commands/
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ api-designer.md
โ”‚   โ”‚   โ”œโ”€โ”€ env-validator/         โšก NEW in v1.1
โ”‚   โ”‚   โ”œโ”€โ”€ import-organizer/      โšก NEW in v1.1
โ”‚   โ”‚   โ””โ”€โ”€ ... (62 more commands)
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ super/                     # ๐Ÿš€ 3 Super Plugins
โ”‚       โ”œโ”€โ”€ enterprise-workspace/
โ”‚       โ”‚   โ”œโ”€โ”€ .claude-plugin/
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ plugin.json    # With hooks & MCP
โ”‚       โ”‚   โ”œโ”€โ”€ commands/          # Multiple commands
โ”‚       โ”‚   โ”œโ”€โ”€ agents/            # Multiple agents
โ”‚       โ”‚   โ”œโ”€โ”€ scripts/           # Automation scripts
โ”‚       โ”‚   โ””โ”€โ”€ servers/           # MCP servers
โ”‚       โ”œโ”€โ”€ ai-studio-orchestrator/
โ”‚       โ””โ”€โ”€ devops-platform/
โ”‚
โ””โ”€โ”€ README.md                      # ๐Ÿ“– This file

๐ŸŽ“ Documentation

Plugin Installation Examples

# ๐Ÿค– AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace

# ๐Ÿ’ป Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace

# ๐Ÿ”’ Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace

# ๐Ÿ”ง DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace

# โšก Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace

# ๐Ÿš€ Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace

Marketplace Management

# ๐Ÿ“‹ List installed marketplaces
/plugin marketplace list

# ๐Ÿ”„ Update marketplace
/plugin marketplace update devsforge-marketplace

# ๐Ÿ—‘๏ธ Remove marketplace
/plugin marketplace remove devsforge-marketplace

# ๐Ÿ” Search plugins
/plugin search "security"
/plugin search "api design"

# ๐Ÿ“Š Show plugin details
/plugin info ai-architect@devsforge-marketplace

๐Ÿ› ๏ธ Troubleshooting

โŒ Marketplace Not Loading

Symptoms: Marketplace doesn't appear in /plugin marketplace list

Solutions:

  1. โœ… Verify .claude-plugin/marketplace.json exists in repository root
  2. โœ… Check JSON syntax: claude plugin validate .
  3. โœ… Ensure Git repository is accessible and cloned correctly
  4. โœ… Restart Claude Code CLI after adding marketplace
โŒ Plugin Installation Failures

Symptoms: Error message "Plugin not found" or installation timeout

Solutions:

  1. โœ… Verify plugin source paths are correct: ./plugins/[type]/[name]
  2. โœ… Ensure all required files exist: .claude-plugin/plugin.json, commands/*.md or agents/*.md
  3. โœ… Check network connectivity for Git-based plugin sources
  4. โœ… Try explicit version: /plugin install [name]@devsforge-marketplace@1.0.0
โŒ Super Plugin Issues

Symptoms: Hooks not triggering or MCP server connection errors

Solutions:

  1. โœ… Verify ${CLAUDE_PLUGIN_ROOT} environment variable resolves correctly
  2. โœ… Check script permissions: chmod +x on Linux/Mac
  3. โœ… Ensure Node.js is installed for MCP server JavaScript files
  4. โœ… Review Claude Code logs for hook execution errors
โŒ Performance Issues

Symptoms: Slow marketplace loading or plugin installation

Solutions:

  1. โœ… Check internet connection speed (GitHub clone performance)
  2. โœ… Verify available disk space (minimum 50MB required)
  3. โœ… Close unnecessary applications to free system resources
  4. โœ… Use local path installation for faster access after initial clone

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

๐ŸŽฏ Contributing New Plugins

  1. ๐Ÿด Fork the repository
  2. ๐Ÿ“ Create plugin structure in appropriate directory (agents/, commands/, or super/)
  3. ๐Ÿ“ Follow plugin.json schema requirements
  4. ๐Ÿ“– Add comprehensive documentation (200-700+ lines recommended)
  5. ๐Ÿงช Test thoroughly with Claude Code CLI
  6. ๐Ÿš€ Submit pull request with detailed description

๐Ÿ“‹ Plugin Quality Standards

  • โœ… Minimum 200 lines of documentation
  • โœ… Real-world code examples and templates
  • โœ… Phase-based methodologies
  • โœ… Best practices and anti-patterns
  • โœ… Quality metrics and KPIs
  • โœ… Business impact analysis

๐Ÿ’ก Contributing Ideas

  • ๐Ÿ’ฌ Open a GitHub Discussion with plugin proposal
  • ๐Ÿ“ Describe use case and business value
  • ๐Ÿ’ป Provide examples of desired functionality
  • ๐Ÿ—ณ๏ธ Community votes on most valuable additions

๐Ÿ”’ Security & Trust

โš ๏ธ Important Disclaimer

DevsForge Marketplace is an independent, community-driven project

  • โŒ NOT affiliated with Anthropic or Claude
  • โŒ NOT officially endorsed or connected to Anthropic
  • โœ… Community maintained by open-source contributors
  • โš ๏ธ Use at your own risk - review plugin code before production use

Security Measures

Our Practices:

  • โœ… Security vulnerability scanning
  • โœ… Static code analysis
  • โœ… Zero third-party dependencies
  • โœ… Open source transparency
  • โœ… Community moderation
  • โœ… Regular security audits

Your Responsibilities:

  • ๐Ÿ” Review plugin source code
  • ๐Ÿงช Test in development first
  • ๐Ÿ› Report security issues on GitHub
  • ๐Ÿ”„ Keep plugins updated
  • ๐Ÿ”’ Follow least privilege principle
  • ๐Ÿ“– Read documentation carefully

๐Ÿ“œ License

MIT License - See LICENSE for details

Copyright (c) 2025 DevsForge Community


๐Ÿ™ Acknowledgments

Built with โค๏ธ by the DevsForge Community

Special thanks to:

  • ๐ŸŽจ Anthropic for Claude Code CLI platform
  • ๐Ÿ’ป All plugin contributors and testers
  • ๐Ÿข Enterprise users providing valuable feedback
  • ๐ŸŒŸ Open source community for inspiration

๐Ÿš€ Ready to supercharge your Claude Code experience?

Get Started Now โ€ข Browse Plugins โ€ข Contribute


DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code

Made with Love Community Driven Production Ready

Details

Marketplace
devsforge/marketplace
Source
plugins/commands/import-organizer
Author
DevsForge Community
Category
Commands
Keywords
devsforge, command, import, organizer
Listed since
Apr 7, 2026

More from devsforge/marketplace

All 161

Similar to import-organizer

More Code Review & Quality