
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-findercommand 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/marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install unused-code-finder@devsforge-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDevsForge 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
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 & QualityAll 161 plugins validated for Claude Code CLI Fixes Applied:
|
๐๏ธ Super Plugins (Advanced)Multi-component platforms with hooks & MCP servers Features:
|
โจ Why DevsForge Marketplace?
๐จCurated QualityEvery plugin manually reviewed & enterprise-tested |
โกProduction ReadyBattle-tested in real-world scenarios |
๐Security FirstZero dependencies, fully audited code |
๐Advanced FeaturesHooks, MCP servers, automation |
๐ฏ100% OriginalNo 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
| Category | Count | Description |
|---|---|---|
| ๐ค Agents | 93 | AI-powered development assistants |
| โก Commands | 65 | Instant productivity tools |
| ๐ Super Plugins | 3 | Advanced multi-component platforms |
| Total | 161 | Production-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:
- โ
Verify
.claude-plugin/marketplace.jsonexists in repository root - โ
Check JSON syntax:
claude plugin validate . - โ Ensure Git repository is accessible and cloned correctly
- โ Restart Claude Code CLI after adding marketplace
โ Plugin Installation Failures
Symptoms: Error message "Plugin not found" or installation timeout
Solutions:
- โ
Verify plugin source paths are correct:
./plugins/[type]/[name] - โ
Ensure all required files exist:
.claude-plugin/plugin.json,commands/*.mdoragents/*.md - โ Check network connectivity for Git-based plugin sources
- โ
Try explicit version:
/plugin install [name]@devsforge-marketplace@1.0.0
โ Super Plugin Issues
Symptoms: Hooks not triggering or MCP server connection errors
Solutions:
- โ
Verify
${CLAUDE_PLUGIN_ROOT}environment variable resolves correctly - โ
Check script permissions:
chmod +xon Linux/Mac - โ Ensure Node.js is installed for MCP server JavaScript files
- โ Review Claude Code logs for hook execution errors
โ Performance Issues
Symptoms: Slow marketplace loading or plugin installation
Solutions:
- โ Check internet connection speed (GitHub clone performance)
- โ Verify available disk space (minimum 50MB required)
- โ Close unnecessary applications to free system resources
- โ Use local path installation for faster access after initial clone
๐ค Contributing
We welcome contributions! Here's how you can help:
๐ฏ Contributing New Plugins
- ๐ด Fork the repository
- ๐ Create plugin structure in appropriate directory (
agents/,commands/, orsuper/) - ๐ Follow
plugin.jsonschema requirements - ๐ Add comprehensive documentation (200-700+ lines recommended)
- ๐งช Test thoroughly with Claude Code CLI
- ๐ 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:
|
Your Responsibilities:
|
๐ 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
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- update-branch-namev1.0.0
- update-claudemdv1.0.0
- ux-researcherv1.0.0
- vision-specialistv1.0.0
- web-devv1.0.0
- webhook-integratorv1.0.0
- workflow-optimizerv1.0.0
- accessibility-architectv1.0.0
- ai-architectv1.0.0
- ai-ethics-officerv1.0.0
- ai-studio-orchestratorv1.0.0
- api-contract-testerv1.0.0
- api-designerv1.0.0
- api-docs-generatorv1.0.0
- api-integration-architectv1.0.0
- api-quality-assurancev1.0.0
- authentication-specialistv1.0.0
- b2b-project-shipperv1.0.0
- brand-strategistv1.0.0
- bundle-analyzerv1.0.0
- cache-strategistv1.0.0
- changelog-generatorv1.0.0
- cicd-automationv1.0.0
- cloud-architectv1.0.0
Similar to unused-code-finder
More Code Review & Quality
dead-code-finderPluginrohitg00/awesome-claude-code-toolkit2.8K starsFind and remove dead code across the codebase
import-organizerPlugindevsforge/marketplace79 starsSort and organize import statements automatically
performance-optimizerPlugindevsforge/marketplace79 starsAnalyze and optimize code performance
dead-codeSkillparcadei/continuous-claude-v3744 installsStatic analysis CLI that flags unused functions and dead code via TLDR, with entry-point exclusions.
code-tidyingPluginmelodic-software/claude-code-plugins32 starsCode tidying and comment hygiene. tidy hunts a rotated lane for Beck-style tidyings and ships one PR. batch-simplify sweeps a branch, time window, or repo. tidy