Render Deploy Diff

👤 daniellummis 📦 v1.0.0 ⭐ 4.3 ⬇️ 749 下載
🔒 IT運維與安全 免費 🔑 需 API Key

📖 技能介紹


name: render-deploy-diff description: Detect config drift between required local env keys and a Render service before deploy; fails when required keys are missing remotely. version: 1.0.0 metadata: {"openclaw":{"requires":{"bins":["bash","curl","python3"],"env":["RENDER_API_KEY"]}}}


Render Deploy Diff

Use this skill before deploy to compare required environment keys with what is currently configured on a Render service.

What this skill does

  • Resolves a target Render service by RENDER_SERVICE_ID or RENDER_SERVICE_NAME
  • Reads required env keys from REQUIRED_ENV_KEYS or local env template files
  • Fetches configured env keys from Render API
  • Prints two drift sets:
  • required but missing on Render
  • present on Render but not required locally
  • Exits non-zero when required keys are missing on Render

Inputs

  • RENDER_API_KEY (required unless using mock JSON)
  • one of:
  • RENDER_SERVICE_ID
  • RENDER_SERVICE_NAME
  • optional:
  • RENDER_API_BASE_URL (default https://api.render.com/v1)

    推薦訪問7w4.net獲取更多AI技能。

  • REQUIRED_ENV_KEYS (comma-separated explicit required keys)
  • REQUIRED_ENV_FILES (comma-separated files to parse, default .env.example,.env.production)
  • RENDER_ENV_VARS_JSON_PATH (path to saved Render env-var API JSON for offline testing)

Run

bash scripts/render-deploy-diff.sh

With explicit required keys:

RENDER_SERVICE_NAME=my-service \
REQUIRED_ENV_KEYS="DATABASE_URL,DIRECT_URL,SHADOW_DATABASE_URL,NEXT_PUBLIC_APP_URL" \
bash scripts/render-deploy-diff.sh

Offline test with saved API response:

REQUIRED_ENV_KEYS="DATABASE_URL,NEXT_PUBLIC_APP_URL" \
RENDER_ENV_VARS_JSON_PATH=./fixtures/render-env-vars.json \
bash scripts/render-deploy-diff.sh

Output contract

  • Prints service identity, required key count, remote key count, and drift summary
  • Returns exit code 0 when all required keys exist on Render
  • Returns exit code 1 when required keys are missing or inputs are invalid

🤖 AI 評測

這個 Skill 質量較好,專注於解決一個實際痛點——部署前檢查環境變數是否配置完整。它使用簡單,功能清晰,文件完善,能夠有效避免因環境變數缺失導致的部署失敗。主要優點是靈活(支援多種配置方式)和可靠(提供離線測試能力)。不足之處是缺少自動化測試,邊界情況處理還有最佳化空間。整體而言,這是一個實用且成熟的工具,適合用於 CI/CD 流程中。

📊 多維度評分

適應性4.6
規範性3.9
有效性4.6
可靠性4.2
可信度4.2

📁 包含檔案 (3 個)

📄 SKILL.md 1.9 KB
📄 _meta.json 137 B
📄 scripts/render-deploy-diff.sh 4.8 KB