agentleFS
WanbinyuWanbinyu/ship-guard-skills/skills/env-drift-check/SKILL.md

env-drift-check

Skill1 starsChanged 3 months agoMITView on GitHub

Detect drift between env examples, docs, and real config needs. Use when onboarding fails, deploy misses vars, or Chinese "环境变量", ".env", "配置对不上", "env drift".

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Env Drift Check

Overview

Compare .env.example, README setup, code process.env / config reads, and CI secrets list for missing or undocumented keys.

Steps

  1. Collect sources: example env, docs, code references, deploy manifests.
  2. Build union of required keys.
  3. Mark: documented | in-example | in-code | in-CI | missing.
  4. Flag secrets that appear in examples as real values.
  5. Produce fix list: add to example (empty), docs, or remove dead reads.

Exit criteria

  • Matrix of keys
  • Gaps listed
  • Secret leakage in examples checked
  • Remediation list

Anti-patterns

  • Committing real .env
  • Docs that say “set up env” with no key list

Output template

## Env drift
| key | code | example | docs | CI | gap |
|-----|------|---------|------|-----|-----|
### Fixes
- [ ] ...

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.