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

Environment variable validator that checks .env files against schemas and generates .env.example templates.

version
1.0.0
GitHub stars
79

What it does

  • Adds the env-validator command for validating .env files, checking variable types, and verifying required variables
  • Covers schema validation, type checking, and required variables verification in a single pass over your environment file
  • Generates a .env.example file from your existing environment configuration to share expected variable names safely
  • Designed for projects that rely on environment files and need to catch missing or mistyped variables before runtime

Environment variable validation and .env file management

Add marketplace

/plugin marketplace add devsforge/marketplace

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

Install

/plugin install env-validator@devsforge-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

DevsForge Environment File Validator

DevsForge intelligent environment file validation system that ensures configuration completeness, validates variable formats, checks for missing or misconfigured environment variables, and maintains synchronized .env.example templates for team collaboration.

Purpose

Transform environment configuration from error-prone manual management to intelligent automation that prevents deployment failures, validates configuration formats, and maintains consistent environment setup across development, staging, and production environments.

Features

  • .env Validation: Comprehensive validation of environment files against schemas
  • Type Checking: Validate variable types (string, number, boolean, URL, email)
  • Required Variables: Ensure all required environment variables are present
  • .env.example Generation: Automatically generate example templates from .env files
  • Format Validation: Validate URLs, database connections, email addresses, ports
  • Missing Variables Detection: Find missing variables compared to schema
  • Security Checks: Detect hardcoded secrets, weak passwords, exposed credentials
  • Cross-Environment Comparison: Compare .env files across environments

Usage

/env-validator [action] [options]

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

Validation Actions

Validate Current Environment:

/env-validator validate --file=.env --schema=.env.schema.json

Performs comprehensive validation including:

  • Required variables presence check
  • Type validation for all variables
  • Format validation (URLs, emails, ports, etc.)
  • Value constraints (min/max, patterns, enums)
  • Dependency checking (if X is set, Y must be set)
  • Security vulnerability scanning
  • Duplicate variable detection
  • Invalid characters and syntax errors

Generate .env.example:

/env-validator generate-example --input=.env --output=.env.example

Generates safe example template with:

  • Variable names preserved
  • Sensitive values replaced with placeholders
  • Comments and descriptions included
  • Grouped by category (database, api, auth, etc.)
  • Required variables marked
  • Type hints in comments
  • Example values for non-sensitive data
  • Clear instructions for developers

Check Missing Variables:

/env-validator check-missing --env=.env --required=.env.schema.json

Identifies missing configuration with:

  • List of all missing required variables
  • Optional variables not present
  • Variables in schema but not in .env
  • Variables in .env but not in schema
  • Severity levels (critical, warning, info)
  • Suggested default values
  • Documentation links for each variable
  • Impact analysis of missing variables

Compare Environments:

/env-validator compare --source=.env.staging --target=.env.production

Compares environment configurations:

  • Variables present in one but not the other
  • Different values between environments
  • Type mismatches
  • Format inconsistencies
  • Security differences
  • Configuration drift detection
  • Synchronization recommendations
  • Safe migration plan

Code Examples

Environment Schema Definition (JSON)

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Application Environment Configuration",
  "type": "object",
  "required": ["NODE_ENV", "PORT", "DATABASE_URL", "JWT_SECRET"],
  "properties": {
    "NODE_ENV": {
      "type": "string",
      "enum": ["development", "staging", "production", "test"],
      "description": "Application environment mode"
    },
    "PORT": {
      "type": "integer",
      "minimum": 1024,
      "maximum": 65535,
      "default": 3000,
      "description": "Server port number"
    },
    "DATABASE_URL": {
      "type": "string",
      "pattern": "^(postgres|mysql|mongodb)://.*",
      "description": "Database connection URL",
      "examples": ["postgres://user:pass@localhost:5432/dbname"]
    },
    "REDIS_URL": {
      "type": "string",
      "pattern": "^redis://.*",
      "description": "Redis connection URL",
      "examples": ["redis://localhost:6379"]
    },
    "JWT_SECRET": {
      "type": "string",
      "minLength": 32,
      "description": "JWT signing secret (minimum 32 characters)",
      "sensitive": true
    },
    "JWT_EXPIRES_IN": {
      "type": "string",
      "pattern": "^\\d+[smhd]$",
      "default": "7d",
      "description": "JWT expiration time (e.g., 7d, 24h, 60m)",
      "examples": ["7d", "24h", "3600s"]
    },
    "API_BASE_URL": {
      "type": "string",
      "format": "uri",
      "description": "Base URL for API endpoints"
    },
    "CORS_ORIGIN": {
      "type": "string",
      "description": "Allowed CORS origins (comma-separated)",
      "examples": ["http://localhost:3000,https://app.example.com"]
    },
    "LOG_LEVEL": {
      "type": "string",
      "enum": ["error", "warn", "info", "debug"],
      "default": "info",
      "description": "Logging verbosity level"
    },
    "MAX_REQUEST_SIZE": {
      "type": "string",
      "pattern": "^\\d+(kb|mb|gb)$",
      "default": "10mb",
      "description": "Maximum request body size"
    },
    "SMTP_HOST": {
      "type": "string",
      "description": "SMTP server hostname"
    },
    "SMTP_PORT": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "default": 587,
      "description": "SMTP server port"
    },
    "SMTP_USER": {
      "type": "string",
      "description": "SMTP authentication username"
    },
    "SMTP_PASS": {
      "type": "string",
      "description": "SMTP authentication password",
      "sensitive": true
    },
    "AWS_REGION": {
      "type": "string",
      "pattern": "^[a-z]{2}-[a-z]+-\\d$",
      "description": "AWS region identifier",
      "examples": ["us-east-1", "eu-west-1"]
    },
    "AWS_ACCESS_KEY_ID": {
      "type": "string",
      "pattern": "^[A-Z0-9]{20}$",
      "description": "AWS access key ID",
      "sensitive": true
    },
    "AWS_SECRET_ACCESS_KEY": {
      "type": "string",
      "minLength": 40,
      "description": "AWS secret access key",
      "sensitive": true
    },
    "S3_BUCKET": {
      "type": "string",
      "description": "S3 bucket name for file storage"
    },
    "RATE_LIMIT_WINDOW": {
      "type": "integer",
      "minimum": 1000,
      "description": "Rate limit window in milliseconds",
      "default": 900000
    },
    "RATE_LIMIT_MAX": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum requests per window",
      "default": 100
    }
  },
  "dependencies": {
    "SMTP_HOST": ["SMTP_PORT", "SMTP_USER", "SMTP_PASS"],
    "AWS_ACCESS_KEY_ID": ["AWS_SECRET_ACCESS_KEY", "AWS_REGION"],
    "S3_BUCKET": ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"]
  }
}

Environment Validator (TypeScript)

import * as fs from 'fs';
import * as path from 'path';
import Ajv from 'ajv';
import addFormats from 'ajv-formats';
import * as dotenv from 'dotenv';

interface ValidationError {
  variable: string;
  message: string;
  severity: 'error' | 'warning' | 'info';
  suggestion?: string;
}

interface ValidationResult {
  valid: boolean;
  errors: ValidationError[];
  warnings: ValidationError[];
  info: ValidationError[];
  summary: {
    total: number;
    missing: number;
    invalid: number;
    secure: boolean;
  };
}

class EnvValidator {
  private ajv: Ajv;
  private schema: any;
  private envVars: Record<string, string>;

  constructor(schemaPath: string, envPath: string = '.env') {
    this.ajv = new Ajv({ allErrors: true, strict: false });
    addFormats(this.ajv);

    // Load schema
    const schemaContent = fs.readFileSync(schemaPath, 'utf-8');
    this.schema = JSON.parse(schemaContent);

    // Load environment variables
    const envConfig = dotenv.parse(fs.readFileSync(envPath));
    this.envVars = envConfig;
  }

  validate(): ValidationResult {
    const errors: ValidationError[] = [];
    const warnings: ValidationError[] = [];
    const info: ValidationError[] = [];

    // Check required variables
    const required = this.schema.required || [];
    for (const varName of required) {
      if (!this.envVars[varName]) {
        errors.push({
          variable: varName,
          message: `Required variable "${varName}" is missing`,
          severity: 'error',
          suggestion: this.getSuggestion(varName)
        });
      }
    }

    // Validate each present variable
    for (const [varName, value] of Object.entries(this.envVars)) {
      const propertySchema = this.schema.properties?.[varName];

      if (!propertySchema) {
        warnings.push({
          variable: varName,
          message: `Variable "${varName}" is not defined in schema`,
          severity: 'warning',
          suggestion: 'Consider adding to schema or removing if unused'
        });
        continue;
      }

      // Type validation
      const typeErrors = this.validateType(varName, value, propertySchema);
      errors.push(...typeErrors);

      // Format validation
      if (propertySchema.format) {
        const formatErrors = this.validateFormat(varName, value, propertySchema.format);
        errors.push(...formatErrors);
      }

      // Pattern validation
      if (propertySchema.pattern) {
        const patternErrors = this.validatePattern(varName, value, propertySchema.pattern);
        errors.push(...patternErrors);
      }

      // Enum validation
      if (propertySchema.enum) {
        const enumErrors = this.validateEnum(varName, value, propertySchema.enum);
        errors.push(...enumErrors);
      }

      // Security checks
      if (propertySchema.sensitive) {
        const securityWarnings = this.checkSecurity(varName, value);
        warnings.push(...securityWarnings);
      }

      // Length validation
      if (propertySchema.minLength && value.length < propertySchema.minLength) {
        errors.push({
          variable: varName,
          message: `Variable "${varName}" is too short (minimum ${propertySchema.minLength} characters)`,
          severity: 'error'
        });
      }
    }

    // Check dependencies
    const dependencyErrors = this.checkDependencies();
    errors.push(...dependencyErrors);

    // Check for duplicate variables
    const duplicates = this.findDuplicates();
    warnings.push(...duplicates);

    return {
      valid: errors.length === 0,
      errors,
      warnings,
      info,
      summary: {
        total: Object.keys(this.envVars).length,
        missing: errors.filter(e => e.message.includes('missing')).length,
        invalid: errors.filter(e => !e.message.includes('missing')).length,
        secure: warnings.filter(w => w.message.includes('security')).length === 0
      }
    };
  }

  private validateType(varName: string, value: string, schema: any): ValidationError[] {
    const errors: ValidationError[] = [];

    switch (schema.type) {
      case 'integer':
      case 'number':
        if (isNaN(Number(value))) {
          errors.push({
            variable: varName,
            message: `Variable "${varName}" must be a number`,
            severity: 'error',
            suggestion: `Current value: "${value}"`
          });
        } else {
          const num = Number(value);
          if (schema.minimum !== undefined && num < schema.minimum) {
            errors.push({
              variable: varName,
              message: `Variable "${varName}" must be >= ${schema.minimum}`,
              severity: 'error'
            });
          }
          if (schema.maximum !== undefined && num > schema.maximum) {
            errors.push({
              variable: varName,
              message: `Variable "${varName}" must be <= ${schema.maximum}`,
              severity: 'error'
            });
          }
        }
        break;

      case 'boolean':
        if (!['true', 'false', '1', '0'].includes(value.toLowerCase())) {
          errors.push({
            variable: varName,
            message: `Variable "${varName}" must be a boolean (true/false)`,
            severity: 'error'
          });
        }
        break;
    }

    return errors;
  }

  private validateFormat(varName: string, value: string, format: string): ValidationError[] {
    const errors: ValidationError[] = [];

    switch (format) {
      case 'uri':
      case 'url':
        try {
          new URL(value);
        } catch {
          errors.push({
            variable: varName,
            message: `Variable "${varName}" must be a valid URL`,
            severity: 'error',
            suggestion: 'Example: https://api.example.com'
          });
        }
        break;

      case 'email':
        const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
        if (!emailRegex.test(value)) {
          errors.push({
            variable: varName,
            message: `Variable "${varName}" must be a valid email`,
            severity: 'error'
          });
        }
        break;
    }

    return errors;
  }

  private validatePattern(varName: string, value: string, pattern: string): ValidationError[] {
    const errors: ValidationError[] = [];
    const regex = new RegExp(pattern);

    if (!regex.test(value)) {
      errors.push({
        variable: varName,
        message: `Variable "${varName}" does not match required pattern`,
        severity: 'error',
        suggestion: `Pattern: ${pattern}`
      });
    }

    return errors;
  }

  private validateEnum(varName: string, value: string, enumValues: string[]): ValidationError[] {
    const errors: ValidationError[] = [];

    if (!enumValues.includes(value)) {
      errors.push({
        variable: varName,
        message: `Variable "${varName}" must be one of: ${enumValues.join(', ')}`,
        severity: 'error',
        suggestion: `Current value: "${value}"`
      });
    }

    return errors;
  }

  private checkSecurity(varName: string, value: string): ValidationError[] {
    const warnings: ValidationError[] = [];

    // Check for weak secrets
    if (varName.includes('SECRET') || varName.includes('KEY') || varName.includes('PASS')) {
      if (value.length < 16) {
        warnings.push({
          variable: varName,
          message: `Variable "${varName}" appears to be a weak secret`,
          severity: 'warning',
          suggestion: 'Use at least 16 characters for sensitive values'
        });
      }

      // Check for common weak values
      const weakValues = ['password', 'secret', '123456', 'admin', 'test'];
      if (weakValues.some(weak => value.toLowerCase().includes(weak))) {
        warnings.push({
          variable: varName,
          message: `Variable "${varName}" contains a common weak value`,
          severity: 'warning',
          suggestion: 'Use a strong, randomly generated value'
        });
      }
    }

    return warnings;
  }

  private checkDependencies(): ValidationError[] {
    const errors: ValidationError[] = [];
    const dependencies = this.schema.dependencies || {};

    for (const [varName, deps] of Object.entries(dependencies)) {
      if (this.envVars[varName]) {
        const missingDeps = (deps as string[]).filter(dep => !this.envVars[dep]);

        for (const missingDep of missingDeps) {
          errors.push({
            variable: missingDep,
            message: `Variable "${missingDep}" is required when "${varName}" is set`,
            severity: 'error'
          });
        }
      }
    }

    return errors;
  }

  private findDuplicates(): ValidationError[] {
    const warnings: ValidationError[] = [];
    const envContent = fs.readFileSync('.env', 'utf-8');
    const lines = envContent.split('\n');
    const seen = new Map<string, number>();

    lines.forEach((line, index) => {
      const match = line.match(/^([A-Z_][A-Z0-9_]*)\s*=/);
      if (match) {
        const varName = match[1];
        if (seen.has(varName)) {
          warnings.push({
            variable: varName,
            message: `Duplicate variable "${varName}" found (lines ${seen.get(varName)! + 1} and ${index + 1})`,
            severity: 'warning',
            suggestion: 'Remove duplicate definition'
          });
        } else {
          seen.set(varName, index);
        }
      }
    });

    return warnings;
  }

  private getSuggestion(varName: string): string {
    const propertySchema = this.schema.properties?.[varName];
    if (!propertySchema) return '';

    const parts: string[] = [];

    if (propertySchema.description) {
      parts.push(propertySchema.description);
    }

    if (propertySchema.default !== undefined) {
      parts.push(`Default: ${propertySchema.default}`);
    }

    if (propertySchema.examples && propertySchema.examples.length > 0) {
      parts.push(`Example: ${propertySchema.examples[0]}`);
    }

    return parts.join('. ');
  }

  generateExample(outputPath: string = '.env.example'): void {
    const lines: string[] = [
      '# Environment Configuration',
      '# Copy this file to .env and fill in the values',
      '',
    ];

    const properties = this.schema.properties || {};
    const required = this.schema.required || [];

    // Group variables by prefix
    const grouped = this.groupVariables(Object.keys(properties));

    for (const [group, vars] of Object.entries(grouped)) {
      lines.push(`# ${group}`);

      for (const varName of vars) {
        const schema = properties[varName];

        // Add description
        if (schema.description) {
          lines.push(`# ${schema.description}`);
        }

        // Add type and constraints
        const constraints: string[] = [];
        if (required.includes(varName)) {
          constraints.push('REQUIRED');
        }
        if (schema.type) {
          constraints.push(`Type: ${schema.type}`);
        }
        if (schema.default !== undefined) {
          constraints.push(`Default: ${schema.default}`);
        }
        if (constraints.length > 0) {
          lines.push(`# ${constraints.join(', ')}`);
        }

        // Add example value
        let exampleValue = '';
        if (schema.sensitive) {
          exampleValue = 'your-secret-value-here';
        } else if (schema.examples && schema.examples.length > 0) {
          exampleValue = schema.examples[0];
        } else if (schema.default !== undefined) {
          exampleValue = schema.default;
        } else {
          exampleValue = this.generateExampleValue(schema);
        }

        lines.push(`${varName}=${exampleValue}`);
        lines.push('');
      }
    }

    fs.writeFileSync(outputPath, lines.join('\n'));
  }

  private groupVariables(variables: string[]): Record<string, string[]> {
    const groups: Record<string, string[]> = {
      'Application': [],
      'Database': [],
      'Authentication': [],
      'Email': [],
      'AWS/Cloud': [],
      'Other': []
    };

    for (const varName of variables) {
      if (varName.startsWith('DB_') || varName.includes('DATABASE')) {
        groups['Database'].push(varName);
      } else if (varName.includes('JWT') || varName.includes('AUTH')) {
        groups['Authentication'].push(varName);
      } else if (varName.includes('SMTP') || varName.includes('EMAIL')) {
        groups['Email'].push(varName);
      } else if (varName.includes('AWS') || varName.includes('S3')) {
        groups['AWS/Cloud'].push(varName);
      } else if (['NODE_ENV', 'PORT', 'LOG_LEVEL'].includes(varName)) {
        groups['Application'].push(varName);
      } else {
        groups['Other'].push(varName);
      }
    }

    // Remove empty groups
    return Object.fromEntries(
      Object.entries(groups).filter(([_, vars]) => vars.length > 0)
    );
  }

  private generateExampleValue(schema: any): string {
    if (schema.type === 'integer' || schema.type === 'number') {
      return schema.minimum !== undefined ? String(schema.minimum) : '0';
    }
    if (schema.type === 'boolean') {
      return 'false';
    }
    if (schema.enum) {
      return schema.enum[0];
    }
    return '';
  }
}

// Usage example
const validator = new EnvValidator('.env.schema.json', '.env');
const result = validator.validate();

console.log('Validation Result:', result.valid ? 'PASSED' : 'FAILED');
console.log(`\nSummary:`);
console.log(`  Total variables: ${result.summary.total}`);
console.log(`  Missing: ${result.summary.missing}`);
console.log(`  Invalid: ${result.summary.invalid}`);
console.log(`  Secure: ${result.summary.secure ? 'Yes' : 'No'}`);

if (result.errors.length > 0) {
  console.log(`\nErrors:`);
  result.errors.forEach(error => {
    console.log(`  ❌ ${error.message}`);
    if (error.suggestion) {
      console.log(`     💡 ${error.suggestion}`);
    }
  });
}

if (result.warnings.length > 0) {
  console.log(`\nWarnings:`);
  result.warnings.forEach(warning => {
    console.log(`  ⚠️  ${warning.message}`);
    if (warning.suggestion) {
      console.log(`     💡 ${warning.suggestion}`);
    }
  });
}

// Generate .env.example
validator.generateExample('.env.example');
console.log('\n✅ Generated .env.example file');

Best Practices

Schema Design

  • Comprehensive Documentation: Include descriptions for all variables
  • Type Safety: Define strict types and formats for validation
  • Security Markers: Mark sensitive variables in schema
  • Dependencies: Document variable dependencies clearly
  • Examples: Provide realistic example values
  • Defaults: Specify sensible default values where applicable

Validation Strategy

  • Pre-Deployment: Validate environment before deployment
  • CI/CD Integration: Add validation to CI pipeline
  • Local Development: Validate on application startup
  • Multiple Environments: Maintain separate schemas per environment
  • Version Control: Track schema changes in git

Security Considerations

  • Never Commit .env: Keep .env files out of version control
  • Strong Secrets: Enforce minimum length for sensitive values
  • Rotation Policy: Regularly rotate secrets and keys
  • Access Control: Limit who can access production .env files
  • Encryption: Encrypt .env files at rest when necessary

DevsForge Environment File Validator - Enterprise-grade environment configuration validation with comprehensive type checking, security scanning, and automated template generation for reliable application deployment.

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/env-validator
Author
DevsForge Community
Category
Commands
Keywords
devsforge, command, env, validator
Listed since
Apr 7, 2026

More from devsforge/marketplace

All 161

Similar to env-validator

More Developer Tools