/eng:env-audit [phase] [path]from Engineering Skills
Manually invoked. Environment and secrets audit — secrets in env and public per-tier facts in committed constants, APP_ENV as the tier, a Zod guard at boot with no stray process.env reads, a names-only .env.example in parity, NEXT_PUBLIC correctness, App Hosting grants and overlays, worker secrets, safe ops scripts, rotation and leak response, and turbo's env listing. Verifies each finding and writes a prioritised report.
Ships in Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run this only when the user asks for it by name. It writes a report and changes no code; fixing a finding is a separate request.
A manually-invoked, red-team env audit of an app or a specific diff/PR. It is self-contained — every check is spelled out inline, so it runs a full review with zero other skills installed — and each finding is verified against the real code before it lands in a phase-aware, scored report at _reports/env-audit.md.
Self-contained — this checklist is comprehensive on its own and needs no other skill installed. Where the house skill
envis installed, it is the fix target for what this finds; secrets in CI belong todevops.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
[phase] — development | production; sets the action-item tiers. Omitted → the audit phase the project's AGENTS.md records, else production (assume the app is live until told otherwise).[path] — a file, directory, or PR/diff to scope the audit to; omitted → the whole repo.Mindset — reviewer/attacker first. Don't assume code is fine because it looks careful; find the sequence that breaks it. Report only findings you can justify as real, each verified before it lands.
AGENTS.md; else production, so a CRITICAL finding gets Fix-Now urgency instead of a pre-launch discount._reports/env-audit.md exists, read it, but still run every check against the source. Use it only to keep the ID of each finding still present (status UNRESOLVED), carry its WON'T FIX findings forward unchanged — never re-raised as new findings — drop its FIXED findings and any no longer present, continue ID numbering from its highest ID, and take its scores for the score-change row. First run → mark all NEW.file:line evidence.AGENTS.md or a doc it links._reports/env-audit.md — overwriting the whole file, so no resolved history accumulates — and post the chat summary (see Output). Recommend fixes in the report; never modify code. Never commit or push without explicit approval.Findings are ordered worst-first in the report.
Write to _reports/env-audit.md in the format in references/report-format.md: the header line, the score change with its one Overall row, the findings table with its status legend and one section per finding, the scorecard and phase-tiered action items.
Every run produces two things:
_reports/env-audit.md, in the format above, overwriting the prior run.<X>/10 (with Δ vs last run), a severity count (Critical / High / Medium / Low, i.e. C / H / M / L), the top findings worst-first (id · severity · one-line · file:line), and the report path. Note any "needs confirmation" items.Report-only — this audit recommends fixes in the report; it never modifies code.
Audit every app's env.ts, .env.example, per-tier constants (site.ts), host config (apphosting.yaml and overlays), workers, ops scripts, turbo.json and .gitignore.
APP_ENV, however much it differs per tier. A base URL, cookie domain, CORS origin, project or bucket id, Firebase web config, public key or analytics id in .env is a finding; say which tier's value the constants are missing.env.ts per app — imports only zod (plus server-only in a frontend), parses process.env at load, exports env, and fails with a readable message (z.prettifyError)..default("") hiding a required value. A value with a real type — a URL, an enum, a minimum length — is stronger than a bare z.string(); flag it LOW, as audit advice rather than an env rule..optional() plus a superRefine keyed on APP_ENV — correct, not a finding. One that's simply optional everywhere, so a deployed boot quietly switches a feature off, is.process.env outside the carve-outs — the guard itself, next.config.*, test setup, standalone scripts, and a client module reading a literal NEXT_PUBLIC_ value. Any other direct read is a finding, unless the project records its own carve-out..env and .env.example.env.example lists every key the app and its scripts read, with no values and no comments, committed. A placeholder value or a comment is a finding..env.example names exactly the keys the env.ts schema reads, checked by a script in CI (CI has no .env); a key nothing reads is deleted..env holding the local secrets and APP_ENV=local..env* file; only .env.example is tracked (git ls-files).NEXT_PUBLIC_NEXT_PUBLIC_ value needs build and runtime availability on a host that separates them. An API app takes no availability: blocks — its guard parses during next build, so a runtime-only value breaks the build.APP_ENV names the tier as a validated enum and is the only switch. Setting or branching on NODE_ENV is a finding.APP_ENV. That each secret exists and the backend is granted access before the rollout, and that a rotation shipped with a rollout, live in the secret manager — mark them "needs confirmation" unless a deploy log shows them..env — secrets via defineSecret, public facts from the shared constants. Extensions keep parameters in a committed file with secrets as references, never values.--env=<tier> with no production default, load only that tier's secrets from a gitignored file, and read public facts from the app's constants.env in turbo.json, or strict mode withholds it from the build and the cache — except what Turborepo infers for the framework (NEXT_PUBLIC_* in a Next.js package), which isn't a finding. Turborepo doesn't load .env files, so .env* sits in the build task's inputs, and turbo/no-undeclared-env-vars is on in lint.-----BEGIN blocks, tokens, service-account JSON, connection strings with passwords — in tracked files or history. A secret ever committed is reported for revocation at its issuer first, then replacement and a history purge if the repo is public; never "fixed" by deleting the commit.security-audit points to it, as it does for NEXT_PUBLIC_ secrets.)conventions-audit leaves env guards to it.)Fixing is a separate request, after the report is written, and covers only the findings the owner chose. Then update the report in place — never re-run the audit to update it: a re-run re-checks the whole codebase, costs a full audit and raises new findings mid-fix. Mark each fixed finding FIXED with its commit and a one-line note of what changed, mark a finding the owner rules out WON'T FIX with their reason, and leave everything else as it stands. Recompute the scorecard categories the fixes touched and the Overall, and rewrite the one score-change row (previous → current) — never add a second row.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin eng20 skills in this plugin
/agents-mdWrites or updates a project's AGENTS.md and the short AGENTS.md notes in each app and package — what an agent can't work out from the code: commands, structure, conventions that differ from the defaults, workflow, recorded deviations from the house standards and hard constraints, under 200 lines. Use when starting a project, setting up AGENTS.md or CLAUDE.md, or bringing a project's agent instructions up to date./audit-allManually invoked. Runs the house audit suite across the eng, fe and be sets — detects what the repo has, runs every installed audit that applies (codebase, conventions, dependencies, env, security, accessibility, frontend, performance, SEO/AEO/GEO, Storybook, content, API, access control, Firestore, Redis), and rolls their reports into one health report with an overall score and cross-cutting priorities. Each audit still writes its own report./Other plugins' skills for the same job