SkillsLib.ai

Audit Env Variables

Audit JavaScript/TypeScript environment variables and safely remove unused configs

4.7(51 reviews)
1,000+ downloads
Updated Nov 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

You can perform a complete audit of your project's environment variables to discover unused configurations, identify which services are integrated (Stripe, AWS, Supabase, etc.), and understand permission scopes. The skill maps exactly where each variable is used in your codebase, then optionally removes unused variables with automatic regression detection to prevent breaking changes.

Features

Discovers all .env files and detects environment variable patterns across the codebase
Identifies unused variables and cross-references declared vs. used configurations
Recognizes specific service integrations (Stripe, AWS, Supabase) and infers permission implications
Maps code paths to show exactly where each environment variable is referenced
Generates structured markdown audit reports with categorized findings
Safely removes unused variables with user confirmation and automatic backups
Validates cleanups by running builds/tests and auto-rolls back if regressions detected
Detects dynamic access patterns that might hide variable usage

Example Output

Example 1: Audit Report

code
# Environment Variables Audit

## Summary
- Total Variables: 12
- Used: 9
- Unused: 3
- Services Detected: 2

## Services Detected
### Stripe (Production)
- STRIPE_SECRET_KEY (used in /src/payments/checkout.ts)
- STRIPE_PUBLISHABLE_KEY (used in /src/client/stripe.ts)
- Permissions: Payment processing, customer data access

## Unused Variables
- DEPRECATED_API_URL (last referenced in deleted file)
- TEST_WEBHOOK_SECRET (no references found)
- OLD_DB_HOST (superseded by DATABASE_URL)

Example 2: Cleanup Output

code
✓ Backup created: .env.backup.1703001234
✓ Removed 3 unused variables
✓ Build validation: PASSED
✓ Test suite: PASSED (98 tests)
✓ No regressions detected

What's Included

  • audit-env-variables SKILL.md: Complete instruction file with discovery, analysis, and cleanup logic
  • Audit Report Template: Structured markdown template with sections for summary, services detected, usage mapping, and recommendations
  • Service Detection Database: Pre-configured patterns for Stripe, AWS, Supabase, Firebase, and other common services
  • Cleanup Checklist: Step-by-step validation workflow for safe variable removal with rollback procedures
  • Regression Test Framework: Build and test validation scripts to catch breaking changes

Who It's For

  • Backend engineers auditing project configuration and security
  • DevOps engineers managing environment variable sprawl across services
  • Tech leads reviewing onboarding and reducing configuration complexity
  • Security teams identifying unused service integrations and permission scope risks
  • Full-stack developers migrating between services and cleaning up legacy configs

Best For

  • Auditing environment variable usage before refactoring or service migrations
  • Identifying and removing unused API keys and credentials
  • Documenting which services are integrated and their permission levels
  • Cleaning up legacy configurations with safe rollback protection
  • Onboarding new developers by mapping all active environment variables

You might also like

Outbound Campaign Optimizer for Call Center Managers
$40
Outbound3.8(32)
Outbound Campaign Optimizer for Call Center Managers

You can design end-to-end outbound call campaigns from lead list strategy through performance monitoring. Claude helps you create compliant call scripts, validate against TCPA/FCC regulations, set realistic productivity targets that sustain agent morale, and implement KPI tracking systems that prove ROI to leadership. Transform campaign planning from guesswork into a data-driven iterative process.

Implement Task
$35
Full-Stack4.6(48)
Implement Task

You can deploy this agent to execute specific implementation tasks within a larger development plan. It operates independently with fresh context, follows test-driven development principles for every code change, and creates comprehensive handoff documentation that captures progress, decisions, and learnings for the next task executor. This ensures consistent code quality, prevents rework, and maintains continuity across distributed implementation efforts.

Full-Stack Feature Development Workflow
$30
Full-Stack Feature Development Workflow

You'll transform high-level feature requirements into a complete development plan covering API design, frontend implementation, testing strategy, and documentation. The skill helps you identify dependencies, parallelize work across frontend and backend teams, and establish quality gates that ensure features ship bug-free with proper error handling and logging.

Shift Coverage Optimization for Support Team Leads
$40
Shift Coverage Optimization for Support Team Leads

You can input historical ticket volume data, agent availability, skill distributions, and cost constraints into Claude to systematically identify coverage gaps and generate optimized shift schedules. The skill surfaces non-obvious solutions like identifying when part-time coverage outperforms full-time hiring, pinpointing cross-training opportunities to improve flexibility, and calculating labor cost trade-offs for different scheduling scenarios—enabling you to make evidence-based decisions that balance operational efficiency with SLA compliance.

Workforce Schedule Optimization Analyzer
$35
Scheduling3.7(32)
Workforce Schedule Optimization Analyzer

You can input your workforce data—employee availability, skill levels, demand forecasts, and scheduling constraints—and Claude will analyze coverage gaps, identify optimization opportunities, and generate feasible shift assignments that maximize service levels while minimizing overtime and labor costs. The skill helps you test scenarios, evaluate trade-offs between competing priorities (adherence, budget, employee satisfaction), and surface data-driven recommendations for hiring or process improvements.

Cloudflare Manager
$40
Cloudflare Manager

You can deploy Cloudflare Workers scripts, configure KV Storage and R2 buckets, manage DNS records, set up Pages deployments, and handle routing rules—all directly from Claude. The skill automatically validates your API credentials, extracts live deployment URLs, and surfaces clear error messages when configuration issues arise.

Setup Portless
$45
Setup Portless

This skill detects your project structure, installs Portless globally, and configures your dev scripts to use stable named URLs instead of port numbers. It handles monorepo detection, suggests appropriate subdomain naming conventions, and updates your package.json automatically—saving you from manual configuration and port conflict headaches.

Debug
$40
Full-Stack4.4(51)
Debug

You can systematically investigate application failures by examining logs, querying database state, and reviewing git history to identify root causes. This skill helps you understand the current state of your system without making changes, providing the contextual foundation needed to solve bugs efficiently during manual testing or implementation work.

$40.00