迁移环境变量 · Env Var Migrator

    by 才下啦

    1

    安全迁移项目环境变量:盘点旧配置、识别敏感项、生成.env与CI密钥对照表,带遗漏检查与回滚方案。

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    迁移环境变量 · Env Var Migrator

    Example session with this skill installed

    我们要把项目从Heroku迁到自建服务器,旧配置里有30多个环境变量,请帮我做迁移清单,注意不要把密钥写进代码仓库。

    • Read your context and instructions
    • Compiled the env var migrator

    迁移摘要
    旧环境共 32 个环境变量,建议:直接迁移 18 个、值需重签 6 个、可弃用 5 个、信息不足待确认 3 个。敏感项全部改由密钥管理服务注入,不写入 .env 或代码仓库。

    一、分类迁移清单(节选)

    变量分类处理方式
    DATABASE_URL必须迁移用新服务器连接串替换
    REDIS_URL必须迁移同上
    STRIPE_SECRET_KEY需重签在 Stripe 后台生成新密钥
    JWT_SECRET需重签重新生成 256 位随机值
    OLD_ANALYTICS_ID可弃用新平台改用新统计
    WEBHOOK_TOKEN待确认确认下游系统同步更新

    二、安全规则

    1. 密钥类变量只存密钥管理服务,应用启动时注入;
    2. .env 加入 .gitignore,仓库只留 .env.example;
    3. 迁移完成后立即在旧平台轮换所有密钥。

    三、验证清单

    • 启动应用后执行健康检查与一条核心业务链路;
    • 抽查 3 个敏感变量确认新值生效;
    • 查看启动日志无连接拒绝与权限错误。

    四、回滚方案

    保留旧环境运行 7 天;若新环境异常,切回旧环境 DNS 并停止新实例,待修复后重试。

    下一步

    1. 提供旧环境的完整变量名列表(值可打码),我输出完整对照表;
    2. 确认 3 个「待确认」变量的下游使用方;
    3. 在密钥管理服务中先创建 6 个需重签的条目。

    Connects securely to your tools. The creator never sees your data.

    About this skill

    它解决什么问题

    换框架、换部署平台或交接项目时,环境变量最容易出事:漏迁移、值过期、密钥写进仓库、新旧环境混用。直接问 AI,常给出通用清单,却不对照你项目的真实配置。

    这个技能做什么

    先盘点来源环境的所有配置项,按「必须迁移 / 可弃用 / 需重签」分类,生成新旧环境对照表与 .env 模板;敏感项自动打码并标记存储位置(密钥管理服务/CI 变量),最后给出验证与回滚步骤。

    为什么比裸提示词强

    • 防泄露:敏感值打码,并提醒用密钥管理服务。
    • 防遗漏:对照表逐项核对,标记用途与使用方。
    • 可回滚:带验证命令与回退清单。

    典型用例

    • 项目从本地部署迁移到云平台。
    • 团队交接时整理环境变量清单。
    • 把明文密钥迁移到密钥管理服务。

    局限

    需要你提供旧环境的配置来源;不会读取未经授权的服务器,敏感值请自行脱敏后再粘贴。

    Does not integrate directly with cloud secret managers. Requires user to provide initial context on variables to avoid placeholders.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill automates the creation of .env.example templates and detailed migration guides, preventing sensitive data leaks and ensuring every team member has a consistent local environment setup.

    The skill is specifically optimized for use with Claude Desktop and Claude Code, allowing you to generate documentation directly within your development workflow.

    No, for security reasons, the skill generates structured templates and handoff guides but does not directly connect to external secret management tools like AWS Secrets Manager or Vault.

    Unlike a generic prompt, this skill follows a standardized workflow that enforces role definitions and responsibility tracking, ensuring new developers know exactly who manages specific keys.

    Upon purchase, you receive the full skill configuration, including the structured logic for generating templates, migration guides, and team handoff documentation.

    New in Business & Operations

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Business & Operations.