env-drift-check

仓库创建 2026年7月28日最近提交 7 小时前SkillHot 收录 1 小时前
▸ 精选理由

定位“本地可用但生产报错”的配置差异,是高频排查工具。

这个 Skill 做什么

比对代码实际读取的环境变量与部署/声明的配置,找出不一致项。

把代码实际读取的 environment variables 和部署/声明的配置逐一比对,找出只在生产出问题的缺失 key 或被静默回退的情况。上线前、接手仓库或新增配置后用,能解释“本地没问题、线上挂掉”的常见根源。特别擅长发现被忽略的变量与隐蔽默认值,帮你提前避免生产故障。

▸ 展开 SKILL.md 英文原文

Compare the environment variables your code actually reads against what is declared and what is set where it deploys, catching the missing key that only fails in production and the silent fallback that hides it. Use before a deploy, when onboarding to a repo, after adding a config value, or when something works locally and not in production.

开发编程环境变量配置管理生产排查通用
0
Stars
0
Forks
20
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/sriptcollector/toolbay-skills/main/skills/env-drift-check/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/sriptcollector/toolbay-skills/main/skills/env-drift-check/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Env Drift Check

## Install

Save this file as `~/.claude/skills/env-drift-check/SKILL.md`, or
`.claude/skills/env-drift-check/SKILL.md` to scope it to one repo. Claude Code
auto-discovers it. Invoke with `/env-drift-check` or by asking "am I missing any
environment variables in production?".

## Why this exists

"Works locally, breaks in production" is usually one missing environment variable,
and it is usually found by a customer.

Three things make it hard to see. `.env.example` drifts the moment someone adds a
key without updating it. A variable read in one obscure file looks the same as one
read everywhere. And worst, a `?? "default"` turns a missing key into wrong
behaviour instead o
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有