Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

deploy-verify部署验证

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

451

周安装

19

GitHub Stars

2

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:deploy-verify(部署验证)
来源仓库:https://github.com/jonmumm/skills
仓库路径:skills/deploy-verify
安装命令:
npx skills add https://github.com/jonmumm/skills --skill deploy-verify
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jonmumm/skills --skill deploy-verify

简介

部署 Cloudflare Workers 后自动推断变更内容并执行验证测试,确保功能正常。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中边缘函数发布,集成 pre-deploy 检查。
  • 从 git diff 提取修改范围,针对性运行健康检查与请求模拟,报告通过或异常。
  • 安装命令为 npx skills add https://github.com/jonmumm/skills --skill deploy-verify。
  • 依赖 wrangler.toml 识别环境,未找到配置时将提示用户提供部署目标。

SKILL.md

Deploy & Verify

Deploy Cloudflare Workers to an environment and verify the changes work by inferring what to test from recent git changes.

Workflow

1. Pre-deploy checks
2. Deploy to target environment
3. Infer verification plan from git diff
4. Run verification
5. Report results (pass/flag issues)

Step 1: Pre-Deploy Checks

Before deploying, verify:

  1. Types passtsc --noEmit or project equivalent
  2. Tests passnpm test / bun test / project equivalent
  3. No uncommitted changesgit status should be clean (warn if dirty)
  4. Detect environment config — read wrangler.toml / wrangler.jsonc for available environments
# List available environments from wrangler config
grep -E '^\[env\.' wrangler.toml | sed 's/\[env\.\(.*\)\]/\1/'

Step 2: Deploy

# To a named environment (staging, preview, etc.)
wrangler deploy --env <environment>

# To production (default if no --env)
wrangler deploy

If the project has multiple Workers (monorepo), detect which one changed:

  • Check git diff --name-only for paths matching Worker directories
  • Only deploy the Worker(s) that changed

Step 3: Infer Verification Plan

This is the key step. Look at what changed and determine what to verify:

# What changed since last deploy?
git diff HEAD~1 --name-only
git diff HEAD~1 --stat
git log HEAD~1..HEAD --oneline

Inference rules:

Change typeWhat to verify
API route handler changedHit that endpoint, check response shape and status
Middleware changedTest requests that flow through it
Auth logic changedTest both authenticated and unauthenticated requests
KV/D1/R2 bindings changedTest read/write operations on those bindings
Environment variables referencedVerify secrets are set: wrangler secret list --env <env>
CORS or headers changedCheck response headers
Error handling changedTest error paths
New route addedHit the new route, verify 200 + correct response
Route removedVerify it returns 404
Static assets changedFetch them and verify content

Step 4: Run Verification

Use curl or fetch to test the deployed URL:

# Basic health check
curl -s -o /dev/null -w "%{http_code}" https://<worker-url>/

# Check specific endpoint with response body
curl -s https://<worker-url>/api/endpoint | jq .

# Check response headers
curl -sI https://<worker-url>/api/endpoint

# POST with body
curl -s -X POST https://<worker-url>/api/endpoint \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Also check wrangler logs for errors after hitting endpoints:

# Tail logs (run in background, hit endpoints, then check)
wrangler tail --env <environment> --format json

Step 5: Report

If all checks pass:

Deploy verified:
- Environment: staging
- URL: https://my-worker-staging.example.workers.dev
- Checks passed:
  - GET /api/stories → 200, response shape correct
  - POST /api/generate → 200, returns stream
  - KV read/write → working

If issues found (flag, don't rollback):

Deploy issues found:
- Environment: staging
- URL: https://my-worker-staging.example.workers.dev
- PASS: GET /api/stories → 200
- FAIL: POST /api/generate → 500
  - Error in logs: "Missing AI binding"
  - Likely cause: AI binding not configured in staging env
- Action needed: Check wrangler.toml [env.staging] AI bindings

Do NOT automatically rollback. Flag the issues and let the user decide.

Multi-Environment Patterns

Common setup:

# wrangler.toml
name = "my-worker"

[env.staging]
name = "my-worker-staging"
route = "staging.example.com/*"

[env.production]
name = "my-worker"
route = "example.com/*"

Default flow: Deploy to staging → verify → user promotes to production. Direct to prod: Only when user explicitly asks. Still run verification after.

Secrets

If verification fails with auth/config errors, check that secrets match between environments:

wrangler secret list --env staging
wrangler secret list --env production

Secrets don't copy between environments. A common gotcha after adding a new env.

Troubleshooting

ProblemFix
500 after deploywrangler tail --env <env> to see error logs
Binding not foundCheck wrangler.toml — bindings must be declared per environment
Secret missingwrangler secret put <NAME> --env <env>
Old code still servingWorker may be cached — wait 30s or check wrangler deployments list
Route not matchingVerify route patterns in wrangler.toml match the URL you're hitting
CORS errorsCheck if the Worker sets appropriate CORS headers for the origin

Gotchas

  • Always verify the deployed version matches your expected commit. Run wrangler deployments list to confirm your code actually deployed. Cached old versions are a common false trail.
  • Don't strip console.log in production builds. You need logs for debugging — if you can't see what's happening, you can't fix what's broken. Keep logging in production, especially during early development.
  • Secrets don't copy between environments. Adding a secret to production doesn't add it to staging. After creating a new environment, run wrangler secret list --env <env> to verify ALL required secrets are set.
  • Check both .dev.vars AND GitHub Actions secrets. They are independent — a secret in .dev.vars only works locally. GH Actions needs its own secrets configured.
  • Deployed URL might not match what you expect. If using custom domains, verify the route pattern in wrangler.toml matches the URL you're testing. Preview deployments use different URLs than production.
  • After deploy, wait 30 seconds before testing. Workers edge cache can serve stale responses briefly. If you see old behavior, wait and retry before debugging.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.22%
按下载量换算56

Claude

32.87%
按下载量换算52

Cursor

18.94%
按下载量换算30

Gemini CLI

9.98%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills