Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

Audit Env Variables

skill · qdhenry/Claude-Command-SuiteLicence not declaredAudited 9 Oct 2026 · source 30765dd323e0

★ 1,342pushed 221 days ago
✓SAFEGrade B · 89/100 · 9 Oct 2026 · 30765dd
1,342repo stars · whole qdhenry/Claude-Command-Suite

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 30765dd323e0 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects specific services (Stripe, AWS, Supabase), and documents code paths. Includes optional…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Audit Env Variables (qdhenry/Claude-Command-Suite)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/qdhenry/audit-env-variables

Trust audit

Audit 0.4.1 · source read 9 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium1 low1 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS1
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS1
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass, no license.

Findings (2)

LOWInventory / provenanceinv.no_license
F-13 Inventory / provenanceCWE-1104Layer L0
Why
no LICENSE file and no repo licence
Fix
add a licence
INFOPrompt injectionprompt.authority_framing · references/service-patterns.md:17
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
| `SUPABASE_SERVICE_ROLE_KEY` | Supabase | Critical | Bypasses RLS, full access |
Why
No further detail recorded for this rule.
Fix
—

Audit 0.4.1 · source sha 30765dd323e0 · 9 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publisherqdhenry GitHub userOwner of the repository this skill is read from
  • Source folderqdhenry/Claude-Command-Suite/.claude/skills/audit-env-variablesThe exact folder we audited
  • LicenceNot declaredAs the repository states it
  • Commit pinned for this verdict30765dd323e0A new audit runs when the source changes
  • Repository statusNot archivedLast push 221 days ago
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects specific services (Stripe, AWS, Supabase), and documents code paths. Includes optional…

---
name: audit-env-variables
description: Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects specific services (Stripe, AWS, Supabase), and documents code paths. Includes optional cleanup of unused variables with regression detection. Use when auditing .env files, reviewing security, or documenting project configuration.
argument-hint: "[output-path] [--cleanup]"
allowed-tools: [Read, Grep, Glob, Bash, Write, Edit, AskUserQuestion]
---

<objective>
Perform a comprehensive audit of environment variables in a JS/TS project:

1. **Discovery** - Find all env files and code references
2. **Usage Analysis** - Identify which variables are used vs unused
3. **Service Detection** - Recognize services (Stripe, AWS, Supabase, etc.) and their permission implications
4. **Code Path Mapping** - Document where each variable is used in the codebase
5. **Report Generation** - Output a structured markdown document
6. **Cleanup** (optional) - Safely remove unused variables with user confirmation
7. **Regression Prevention** - Validate no regressions via build/test validation with automatic rollback
</objective>

<quick_start>
**Audit only (default):**
1. Scan for `.env*` files in project root
2. Grep codebase for `process.env.`, `import.meta.env.`, and destructured env patterns
3. Cross-reference declared vs used variables
4. Identify services by naming patterns and categorize permissions
5. Generate markdown report using the template

**With cleanup (`--cleanup` flag):**
6. Check for dynamic access patterns that might hide usage
7. Present unused variables and get user confirmation
8. Create backups, remove confirmed variables
9. Run build/tests to detect regressions
10. Auto-rollback if regressions detected
</quick_start>

<process>
## Step 1: Discover Environment Files

Find all env-related files:
```bash
find . -maxdepth 2 -name ".env*" -o -name "env.d.ts" | grep -v node_modules
```

Common files:
- `.env` - Local development
- `.env.local` - Local overrides
- `.env.development` / `.env.production` - Environment-specific
- `.env.example` - Template for required variables

## Step 2: Extract Declared Variables

Parse each env file for variable declarations:
```
Grep pattern: ^[A-Z][A-Z0-9_]+=
```

Build a list of all declared variables with their source file.

## Step 3: Find Code References

Search for environment variable usage patterns:

**Direct access:**
```
process.env.VARIABLE_NAME
import.meta.env.VARIABLE_NAME
process.env["VARIABLE_NAME"]
```

**Destructured patterns:**
```javascript
const { API_KEY, DATABASE_URL } = process.env
```

**Framework-specific:**
```javascript
// Next.js public vars
NEXT_PUBLIC_*

// Vite
VITE_*
```

Use Grep tool with patterns:
```
process\.env\.([A-Z][A-Z0-9_]+)
import\.meta\.env\.([A-Z][A-Z0-9_]+)
```

## Step 4: Cross-Reference Usage

For each declared variable:
- **Used**: Found in code references
- **Unused**: Declared but no code references found
- **Undeclared**: Referenced in code but not in any env file

Flag potential issues:
- Unused variables (cleanup candidates)
- Undeclared variables (missing from .env.example)
- Variables only in .env but not .env.example (documentation gap)

## Step 5: Detect Services and Infer Permissions

Match variable names against known service patterns. See references/service-patterns.md for the complete list.

**Categories:**
- **Database** - Connection strings, credentials
- **Authentication** - JWT secrets, OAuth credentials
- **Payment** - Stripe, payment processor keys
- **Cloud Services** - AWS, GCP, Azure credentials
- **Third-party APIs** - Various service integrations
- **Feature Flags** - Toggle configurations
- **Application Config** - URLs, ports, modes

**Permission levels:**
- **Critical** - Full account access, billing, admin operations
- **High** - Read/write access to user data
- **Medium** - Limited API access, specific operations
- **Low** - Public keys, non-sensitive configuration

## Step 6: Map Code Paths

For each used variable, document:
- File path where it's used
- Function/component context
- Purpose (inferred from surrounding code)

Example:
```
STRIPE_SECRET_KEY
├── src/lib/stripe.ts:15 - Stripe client initialization
├── src/api/webhooks/stripe.ts:8 - Webhook signature verification
└── src/api/checkout/route.ts:23 - Create checkout session
```

## Step 7: Generate Report

Use the template in templates/env-audit-report.md to generate the final document.

Output to: `ENV_AUDIT.md` in project root (or user-specified location)

## Step 8: Cleanup Unused Variables (Optional)

**Trigger:** User passes `--cleanup` flag or explicitly requests cleanup after reviewing the audit report.

### 8.1 Present Cleanup Candidates

Display unused variables with context:
```
UNUSED VARIABLES (candidates for removal):

1. OLD_API_KEY (.env, .env.local)
   - Last modified: [file date]
   - No code references found

2. DEPRECATED_SERVICE_URL (.env)
   - Last modified: [file date]
   - No code references found
```

### 8.2 Dynamic Access Check

Before confirming removal, search for dynamic access patterns that grep may have missed:

```javascript
// These patterns indicate variables might be used dynamically:
process.env[variableName]        // Dynamic key access
process.env[`${prefix}_KEY`]     // Template literal access
Object.keys(process.env)         // Iteration over all env vars
{ ...process.env }               // Spread operator
```

Use Grep with patterns:
```
process\.env\[
Object\.keys\(process\.env\)
Object\.entries\(process\.env\)
\.\.\.process\.env
```

**If dynamic access patterns found:** Flag affected variables for manual review and warn user.

### 8.3 User Confirmation

Use AskUserQuestion to confirm each removal:

```
The following variables appear unused. Select which to remove:

[ ] OLD_API_KEY - Remove from .env, .env.local
[ ] DEPRECATED_SERVICE_URL - Remove from .env
[ ] Skip cleanup

⚠️ Variables will be backed up before rem

Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 30765dd

Download folder ↗
git clone https://github.com/qdhenry/Claude-Command-Suite
git -C Claude-Command-Suite checkout 30765dd323e0

The author documents no install command, so this uses the repository directly. Our verdict covers commit 30765dd323e0 only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 30765dd323e0

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/qdhenry/audit-env-variables/badge.svg)](https://modelsatlas.com/skills/qdhenry/audit-env-variables/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Bigcommerce Api✓SAFE

qdhenry/Claude-Command-Suite

BigCommerce API expert for building integrations, apps, headless storefronts, and automations. Full lifecycle - REST APIs, GraphQL Storefront, webhooks, authentication, app development, and multi-storefront. Use when…

★ 1.3kGrade B
Elevenlabs Transcribe✓SAFE

qdhenry/Claude-Command-Suite

Transcribes audio/video files using ElevenLabs Scribe v2 API. Use when transcribing audio files, generating transcripts, or converting speech to text.

★ 1.3kGrade B
Extract Video Frames✓SAFE

qdhenry/Claude-Command-Suite

Extracts frames and timestamped audio segments from video files (GIF, MP4, MOV) at configurable intervals and stores them in a directory with a manifest file. Use when analyzing video content, preparing frames for…

★ 1.3kGrade B
File Watcher✓SAFE

qdhenry/Claude-Command-Suite

Chokidar-based file watcher that triggers `claude -p` on changes. Useful for automated AI reactions to file changes — design sync, code validation, config regeneration, etc.

★ 1.3kGrade B
Gsap Animation✓SAFE

qdhenry/Claude-Command-Suite

Professional slash commands for Claude Code that provide structured workflows for software development tasks including code review, feature creation, security auditing, and architectural analysis.

★ 1.3kGrade B
Remove Dead Code✓SAFE

qdhenry/Claude-Command-Suite

Safely identifies and removes dead code in TypeScript/JavaScript projects using multi-agent analysis with automatic backup branches. Use when cleaning up unused exports, orphaned files, dead imports, unreachable…

★ 1.3kGrade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/qdhenry/audit-env-variables/badge.svg)](https://modelsatlas.com/skills/qdhenry/audit-env-variables/)

Questions about Audit Env Variables

What does the Audit Env Variables skill do?
Professional slash commands for Claude Code that provide structured workflows for software development tasks including code review, feature creation, security auditing, and architectural analysis.
Is Audit Env Variables safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Audit Env Variables access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (30765dd323e0), read on 2026-10-09. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.