SkillsLib.ai

Audit Env Variables

Audit JavaScript/TypeScript environment variables and safely remove unused configs

4.7(51 reviews)
1,000+ downloads
Updated Sep 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

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.

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.

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.

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.

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.

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.

File Watcher
$25
File Watcher

Set up continuous monitoring of specific directories or file types, then automatically trigger Claude prompts whenever files change. Perfect for real-time code validation, design-to-code synchronization, test generation, or configuration updates. Each changed file is processed through your custom prompt with full access to its contents.

Elevenlabs Transcribe
$35
Backend4.3(49)
Elevenlabs Transcribe

You can transcribe audio and video files into accurate text with automatic speaker diarization (identifying who said what), support for 32+ languages, and detection of audio events like background noise or music. The skill accepts flexible parameters for output formatting, custom terminology, and speaker count optimization, making it ideal for podcasts, interviews, meetings, lectures, and multilingual content.

$40.00