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

unused-code-finder

Unused code detector that finds dead code and unused imports for targeted removal.

version
1.0.0
GitHub stars
79

What it does

  • Adds the unused-code-finder command for scanning a project for dead code and unused imports
  • Covers dead code elimination, unused variables detection, unreachable code analysis, and coverage integration
  • Designed for developers who want to trim unused code from a codebase before cleanup or refactoring

Find and remove dead code and unused imports

Add marketplace

/plugin marketplace add devsforge/marketplace

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

Install

/plugin install unused-code-finder@devsforge-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

DevsForge Unused Code Finder

DevsForge intelligent dead code detection system that identifies unused functions, variables, imports, and unreachable code blocks across your codebase, integrating with coverage tools to help maintain clean, efficient code and reduce bundle sizes.

Purpose

Transform code maintenance from manual review to intelligent automation that detects dead code, finds unused exports, identifies unreachable code paths, and helps eliminate unnecessary code that bloats bundles and reduces maintainability.

Features

  • Dead Code Detection: Find unused functions, classes, and variables
  • Unused Exports: Identify exported code that's never imported
  • Unreachable Code: Detect code paths that can never execute
  • Coverage Integration: Analyze test coverage to find untested code
  • Cross-File Analysis: Track usage across multiple files and modules
  • Bundle Analysis: Identify code increasing bundle size unnecessarily
  • Safe Removal: Generate safe removal suggestions with impact analysis
  • Dependency Tracking: Understand code dependencies before removal

Usage

/unused-code-finder [action] [options]

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

Detection Actions

Find All Unused Code:

/unused-code-finder scan --path=src/ --recursive --exclude=test

Performs comprehensive scan for:

  • Unused functions and methods
  • Unused variables and constants
  • Unused class definitions
  • Unused type definitions
  • Unused imports and exports
  • Unreachable code blocks
  • Dead conditional branches
  • Unused parameters

Find Unused Exports:

/unused-code-finder exports --entry=src/index.ts --follow-imports

Analyzes exports and finds:

  • Exported functions never imported
  • Unused named exports
  • Unused default exports
  • Re-exports that are never used
  • Public API methods with no callers
  • Orphaned utility functions
  • Library code with no consumers
  • Entry point analysis

Detect Unreachable Code:

/unused-code-finder unreachable --file=src/utils.ts

Identifies unreachable code including:

  • Code after return statements
  • Code after throw statements
  • Impossible conditional branches
  • Functions never called
  • Dead switch cases
  • Infinite loop consequences
  • Early termination impacts
  • Exception handling gaps

Coverage-Based Analysis:

/unused-code-finder coverage --report=coverage/lcov.info --threshold=80

Finds code with low/no coverage:

  • Functions never executed in tests
  • Branches never taken
  • Lines never covered
  • Integration with Istanbul/NYC
  • Jest coverage analysis
  • Code with 0% coverage
  • Critical paths untested
  • Edge cases not covered

Code Examples

Unused Code Finder (TypeScript)

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

interface UnusedCodeItem {
  type: 'function' | 'variable' | 'class' | 'import' | 'export' | 'parameter';
  name: string;
  location: {
    file: string;
    line: number;
    column: number;
  };
  reason: string;
  canSafelyRemove: boolean;
  dependencies: string[];
}

interface ScanOptions {
  includePaths: string[];
  excludePaths: string[];
  checkExports: boolean;
  checkUnreachable: boolean;
  followImports: boolean;
}

class UnusedCodeFinder {
  private project: Project;
  private unusedItems: UnusedCodeItem[] = [];

  constructor(tsConfigPath?: string) {
    this.project = new Project({
      tsConfigFilePath: tsConfigPath || './tsconfig.json'
    });
  }

  scan(options: ScanOptions): UnusedCodeItem[] {
    this.unusedItems = [];

    // Add source files
    const sourceFiles = this.project.addSourceFilesAtPaths(options.includePaths);

    for (const sourceFile of sourceFiles) {
      // Skip excluded paths
      if (this.isExcluded(sourceFile.getFilePath(), options.excludePaths)) {
        continue;
      }

      console.log(`Scanning ${sourceFile.getFilePath()}...`);

      // Find unused variables
      this.findUnusedVariables(sourceFile);

      // Find unused functions
      this.findUnusedFunctions(sourceFile);

      // Find unused classes
      this.findUnusedClasses(sourceFile);

      // Find unused imports
      this.findUnusedImports(sourceFile);

      // Find unused exports if configured
      if (options.checkExports) {
        this.findUnusedExports(sourceFile, options.followImports);
      }

      // Find unreachable code
      if (options.checkUnreachable) {
        this.findUnreachableCode(sourceFile);
      }
    }

    return this.unusedItems;
  }

  private findUnusedVariables(sourceFile: SourceFile): void {
    const variableStatements = sourceFile.getVariableStatements();

    for (const statement of variableStatements) {
      const declarations = statement.getDeclarations();

      for (const declaration of declarations) {
        const name = declaration.getName();
        const references = declaration.findReferences();

        // Check if variable is used (more than just declaration)
        const usageCount = references.flatMap(ref => ref.getReferences()).length;

        if (usageCount <= 1) {  // Only the declaration itself
          this.addUnusedItem({
            type: 'variable',
            name,
            location: this.getLocation(declaration),
            reason: 'Variable is declared but never used',
            canSafelyRemove: true,
            dependencies: []
          });
        }
      }
    }
  }

  private findUnusedFunctions(sourceFile: SourceFile): void {
    const functions = sourceFile.getFunctions();

    for (const func of functions) {
      const name = func.getName();
      if (!name) continue;

      // Check if function is exported
      const isExported = func.isExported();

      // Find references to this function
      const references = func.findReferences();
      const usageCount = references.flatMap(ref => ref.getReferences()).length;

      // If not exported and only referenced once (declaration), it's unused
      if (!isExported && usageCount <= 1) {
        this.addUnusedItem({
          type: 'function',
          name,
          location: this.getLocation(func),
          reason: 'Function is defined but never called',
          canSafelyRemove: true,
          dependencies: this.getFunctionDependencies(func)
        });
      }

      // Check for unused parameters
      this.findUnusedParameters(func);
    }
  }

  private findUnusedParameters(func: any): void {
    const parameters = func.getParameters();

    for (const param of parameters) {
      const name = param.getName();

      // Skip rest parameters and destructured parameters
      if (name.startsWith('...') || name.includes('{') || name.includes('[')) {
        continue;
      }

      // Find references within function body
      const references = param.findReferences();
      const usageInBody = references.flatMap(ref => ref.getReferences())
        .filter(ref => {
          const refSourceFile = ref.getSourceFile();
          return refSourceFile === func.getSourceFile();
        });

      if (usageInBody.length <= 1) {  // Only the parameter declaration
        this.addUnusedItem({
          type: 'parameter',
          name,
          location: this.getLocation(param),
          reason: `Parameter '${name}' is never used in function body`,
          canSafelyRemove: false,  // Removing parameters can break signatures
          dependencies: []
        });
      }
    }
  }

  private findUnusedClasses(sourceFile: SourceFile): void {
    const classes = sourceFile.getClasses();

    for (const cls of classes) {
      const name = cls.getName();
      if (!name) continue;

      const isExported = cls.isExported();
      const references = cls.findReferences();
      const usageCount = references.flatMap(ref => ref.getReferences()).length;

      if (!isExported && usageCount <= 1) {
        this.addUnusedItem({
          type: 'class',
          name,
          location: this.getLocation(cls),
          reason: 'Class is defined but never instantiated or referenced',
          canSafelyRemove: true,
          dependencies: []
        });
      }
    }
  }

  private findUnusedImports(sourceFile: SourceFile): void {
    const imports = sourceFile.getImportDeclarations();

    for (const importDecl of imports) {
      const namedImports = importDecl.getNamedImports();

      for (const namedImport of namedImports) {
        const name = namedImport.getName();
        const references = namedImport.findReferences();
        const usageCount = references.flatMap(ref => ref.getReferences()).length;

        if (usageCount <= 1) {
          this.addUnusedItem({
            type: 'import',
            name,
            location: this.getLocation(namedImport),
            reason: `Import '${name}' is never used`,
            canSafelyRemove: true,
            dependencies: []
          });
        }
      }

      // Check default import
      const defaultImport = importDecl.getDefaultImport();
      if (defaultImport) {
        const references = defaultImport.findReferences();
        const usageCount = references.flatMap(ref => ref.getReferences()).length;

        if (usageCount <= 1) {
          this.addUnusedItem({
            type: 'import',
            name: defaultImport.getText(),
            location: this.getLocation(defaultImport),
            reason: 'Default import is never used',
            canSafelyRemove: true,
            dependencies: []
          });
        }
      }
    }
  }

  private findUnusedExports(sourceFile: SourceFile, followImports: boolean): void {
    const exports = sourceFile.getExportedDeclarations();

    for (const [name, declarations] of exports) {
      for (const declaration of declarations) {
        const references = declaration.findReferences();

        // Filter references to find external usage
        const externalUsage = references.flatMap(ref => ref.getReferences())
          .filter(ref => {
            const refFile = ref.getSourceFile();
            return refFile !== sourceFile;
          });

        if (externalUsage.length === 0) {
          this.addUnusedItem({
            type: 'export',
            name,
            location: this.getLocation(declaration),
            reason: 'Exported but never imported or used externally',
            canSafelyRemove: true,
            dependencies: []
          });
        }
      }
    }
  }

  private findUnreachableCode(sourceFile: SourceFile): void {
    sourceFile.forEachDescendant((node) => {
      // Code after return statement
      if (Node.isReturnStatement(node)) {
        this.checkCodeAfterEarlyExit(node, 'return');
      }

      // Code after throw statement
      if (Node.isThrowStatement(node)) {
        this.checkCodeAfterEarlyExit(node, 'throw');
      }

      // Impossible conditions
      if (Node.isIfStatement(node)) {
        this.checkImpossibleConditions(node);
      }
    });
  }

  private checkCodeAfterEarlyExit(node: any, exitType: string): void {
    const parent = node.getParent();
    if (!Node.isBlock(parent)) return;

    const statements = parent.getStatements();
    const nodeIndex = statements.indexOf(node);

    // Check if there's code after this statement in the same block
    if (nodeIndex < statements.length - 1) {
      const nextStatement = statements[nodeIndex + 1];

      this.addUnusedItem({
        type: 'function',  // Generic type for unreachable code
        name: `Unreachable code after ${exitType}`,
        location: this.getLocation(nextStatement),
        reason: `Code is unreachable because it comes after ${exitType} statement`,
        canSafelyRemove: true,
        dependencies: []
      });
    }
  }

  private checkImpossibleConditions(ifStatement: any): void {
    const expression = ifStatement.getExpression();
    const expressionText = expression.getText();

    // Check for always true/false conditions
    if (expressionText === 'true') {
      const elseStatement = ifStatement.getElseStatement();
      if (elseStatement) {
        this.addUnusedItem({
          type: 'function',
          name: 'Unreachable else branch',
          location: this.getLocation(elseStatement),
          reason: 'Else branch is unreachable because condition is always true',
          canSafelyRemove: true,
          dependencies: []
        });
      }
    } else if (expressionText === 'false') {
      const thenStatement = ifStatement.getThenStatement();
      this.addUnusedItem({
        type: 'function',
        name: 'Unreachable then branch',
        location: this.getLocation(thenStatement),
        reason: 'Then branch is unreachable because condition is always false',
        canSafelyRemove: true,
        dependencies: []
      });
    }
  }

  private getFunctionDependencies(func: any): string[] {
    const dependencies: string[] = [];
    const body = func.getBody();

    if (body) {
      body.forEachDescendant((node: any) => {
        if (Node.isIdentifier(node)) {
          dependencies.push(node.getText());
        }
      });
    }

    return [...new Set(dependencies)];  // Remove duplicates
  }

  private getLocation(node: any): UnusedCodeItem['location'] {
    const sourceFile = node.getSourceFile();
    const start = node.getStart();
    const { line, column } = sourceFile.getLineAndColumnAtPos(start);

    return {
      file: sourceFile.getFilePath(),
      line,
      column
    };
  }

  private isExcluded(filePath: string, excludePaths: string[]): boolean {
    return excludePaths.some(exclude => filePath.includes(exclude));
  }

  private addUnusedItem(item: UnusedCodeItem): void {
    this.unusedItems.push(item);
  }

  generateReport(): string {
    const report: string[] = [];

    report.push('# Unused Code Report\n');
    report.push(`Total unused items found: ${this.unusedItems.length}\n`);

    // Group by type
    const byType = this.groupByType(this.unusedItems);

    for (const [type, items] of Object.entries(byType)) {
      report.push(`\n## Unused ${type}s (${items.length})\n`);

      for (const item of items) {
        report.push(`- **${item.name}**`);
        report.push(`  - Location: ${item.location.file}:${item.location.line}`);
        report.push(`  - Reason: ${item.reason}`);
        report.push(`  - Can safely remove: ${item.canSafelyRemove ? 'Yes' : 'No'}`);
        if (item.dependencies.length > 0) {
          report.push(`  - Dependencies: ${item.dependencies.slice(0, 5).join(', ')}`);
        }
        report.push('');
      }
    }

    return report.join('\n');
  }

  private groupByType(items: UnusedCodeItem[]): Record<string, UnusedCodeItem[]> {
    const grouped: Record<string, UnusedCodeItem[]> = {};

    for (const item of items) {
      if (!grouped[item.type]) {
        grouped[item.type] = [];
      }
      grouped[item.type].push(item);
    }

    return grouped;
  }
}

// Usage example
const finder = new UnusedCodeFinder('./tsconfig.json');

const unusedCode = finder.scan({
  includePaths: ['src/**/*.ts', 'src/**/*.tsx'],
  excludePaths: ['node_modules', 'dist', 'test', '.test.', '.spec.'],
  checkExports: true,
  checkUnreachable: true,
  followImports: true
});

console.log(`Found ${unusedCode.length} unused code items`);

// Generate report
const report = finder.generateReport();
fs.writeFileSync('unused-code-report.md', report);
console.log('Report saved to unused-code-report.md');

// Show summary
const safeToRemove = unusedCode.filter(item => item.canSafelyRemove);
console.log(`\n${safeToRemove.length} items can be safely removed`);

Coverage-Based Unused Code Finder

const fs = require('fs');
const path = require('path');
const { parse } = require('lcov-parse');

class CoverageUnusedFinder {
  constructor(coverageFile) {
    this.coverageFile = coverageFile;
    this.uncoveredCode = [];
  }

  async analyze(threshold = 0) {
    return new Promise((resolve, reject) => {
      parse(this.coverageFile, (err, data) => {
        if (err) {
          reject(err);
          return;
        }

        for (const file of data) {
          this.analyzeFile(file, threshold);
        }

        resolve(this.uncoveredCode);
      });
    });
  }

  analyzeFile(fileData, threshold) {
    const coverage = this.calculateCoverage(fileData);

    if (coverage.line <= threshold) {
      this.uncoveredCode.push({
        file: fileData.file,
        type: 'file',
        coverage: coverage.line,
        reason: `File has ${coverage.line}% line coverage (below ${threshold}% threshold)`,
        details: {
          lines: coverage.line,
          functions: coverage.function,
          branches: coverage.branch
        }
      });
    }

    // Find specific uncovered functions
    for (const func of fileData.functions.details) {
      if (func.hit === 0) {
        this.uncoveredCode.push({
          file: fileData.file,
          type: 'function',
          name: func.name,
          line: func.line,
          coverage: 0,
          reason: 'Function is never executed in tests',
          canSafelyRemove: false  // Need manual review
        });
      }
    }

    // Find uncovered branches
    for (const branch of fileData.branches.details) {
      if (branch.taken === 0) {
        this.uncoveredCode.push({
          file: fileData.file,
          type: 'branch',
          line: branch.line,
          coverage: 0,
          reason: 'Branch is never taken in tests',
          canSafelyRemove: false
        });
      }
    }
  }

  calculateCoverage(fileData) {
    const lineCoverage = (fileData.lines.hit / fileData.lines.found) * 100;
    const functionCoverage = (fileData.functions.hit / fileData.functions.found) * 100;
    const branchCoverage = fileData.branches.found > 0
      ? (fileData.branches.hit / fileData.branches.found) * 100
      : 100;

    return {
      line: Math.round(lineCoverage * 100) / 100,
      function: Math.round(functionCoverage * 100) / 100,
      branch: Math.round(branchCoverage * 100) / 100
    };
  }

  generateReport() {
    const report = [];

    report.push('# Coverage-Based Unused Code Report\n');
    report.push(`Total items with low/no coverage: ${this.uncoveredCode.length}\n`);

    // Group by type
    const byType = {};
    for (const item of this.uncoveredCode) {
      if (!byType[item.type]) {
        byType[item.type] = [];
      }
      byType[item.type].push(item);
    }

    for (const [type, items] of Object.entries(byType)) {
      report.push(`\n## Uncovered ${type}s (${items.length})\n`);

      for (const item of items) {
        if (item.name) {
          report.push(`- **${item.name}** (${item.file}:${item.line})`);
        } else {
          report.push(`- ${item.file}`);
        }
        report.push(`  - ${item.reason}`);
        report.push(`  - Coverage: ${item.coverage}%`);
        report.push('');
      }
    }

    return report.join('\n');
  }
}

// Usage
const coverageFinder = new CoverageUnusedFinder('./coverage/lcov.info');

coverageFinder.analyze(50).then(results => {
  console.log(`Found ${results.length} items with low or no coverage`);

  const report = coverageFinder.generateReport();
  fs.writeFileSync('coverage-unused-report.md', report);
  console.log('Report saved to coverage-unused-report.md');
});

Best Practices

Detection Strategy

  • Regular Scans: Run unused code detection regularly (weekly/monthly)
  • Pre-Deployment: Check for unused code before major releases
  • Coverage Integration: Combine static analysis with coverage reports
  • Manual Review: Always manually review before removing code
  • Incremental Removal: Remove unused code gradually, not all at once

Safe Removal

  • Version Control: Always commit before removing code
  • Feature Branches: Remove unused code in dedicated branches
  • Comprehensive Testing: Run full test suite after removal
  • Staged Rollout: Deploy removals gradually to production
  • Rollback Plan: Be prepared to revert if issues arise

Code Quality

  • Bundle Size: Track bundle size improvements after removal
  • Performance: Monitor performance impact of code removal
  • Documentation: Update documentation when removing public APIs
  • Deprecation: Deprecate before removing public interfaces
  • Communication: Inform team about removed functionality

DevsForge Unused Code Finder - Enterprise-grade dead code detection with comprehensive static analysis, coverage integration, and safe removal recommendations for cleaner, more efficient 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/unused-code-finder
Author
DevsForge Community
Category
Commands
Keywords
devsforge, command, unused, code
Listed since
Apr 7, 2026

More from devsforge/marketplace

All 161

Similar to unused-code-finder

More Code Review & Quality