基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/blockscout/frontend --skill deploy-demo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | deploy-demo |
| description | Create a GitHub deployment for the current branch using the deploy-review workflow |
| disable-model-invocation | true |
This workflow uses gh to trigger and monitor the deployment workflow. Follow the check-github-cli skill first (ensure gh auth status succeeds; if not, guide the user to install/configure gh and do not proceed). The account needs permission to trigger workflows and read the repository.
Create a GitHub deployment for the current branch using .github/workflows/deploy-review.yml (workflow name: "Deploy review environment").
Note: In the command output, format all URLs as clickable Markdown links: [Link Text](URL).
git status. If there are uncommitted changes, ask the user to commit and push, or run git add / git commit and then push.git push origin $(git branch --show-current) (or git push if upstream is set). Abort if push fails.git branch --show-current.gh run list --workflow=deploy-review.yml --branch <BRANCH> --status in_progressgh run list --workflow=deploy-review.yml --branch <BRANCH> --status queuedAlways read .github/workflows/deploy-review.yml as the single source of truth for valid option values — never hardcode them in this skill. The workflow has three workflow_dispatch inputs:
a. envs_preset — which chain's config the demo fetches at startup.
on.workflow_dispatch.inputs.envs_preset.options.base; "spin up a demo using staging" → staging.b. variant — which demo flavor (on.workflow_dispatch.inputs.variant.options, e.g. review / review-2). review-2 disables ENVs validation (used for multichain).
-f variant=review-2 only if the user clearly asks for it ("review-2", "validation-disabled / multichain variant", "second demo"). Otherwise skip (default review).c. build_image — whether to build & publish a fresh image (default true).
-f build_image=false — this skips the multi-minute image build and just re-runs the deploy (~1–2 min), changing ENVS_PRESET so the pods roll.true, builds fresh).build_image=false only works if an image for this branch already exists (a prior successful build). If unsure, prefer building. The image tag is review-<branch-slug> — variant-independent (the image is both preset- and variant-agnostic). So an image built under either variant can be reused by the other: e.g. after a review build you can deploy review-2 with build_image=false. Only the namespace/hostname (<variant>-<branch-slug>) differ per variant, so the two demos coexist.gh workflow run deploy-review.yml --ref <BRANCH> [-f envs_preset=<PRESET>] [-f variant=<VARIANT>] [-f build_image=false]gh workflow run deploy-review.yml --ref <BRANCH> -f envs_preset=basegh workflow run deploy-review.yml --ref <BRANCH> -f build_image=false -f envs_preset=celogh run list --workflow=deploy-review.yml --branch <BRANCH> --limit 1. Use that run’s ID for the next steps.gh run watch <RUN_ID> (polls until completion).gh run view <RUN_ID>).gh run view <RUN_ID> and, if available, gh run view <RUN_ID> --log or job outputs. The deployment URL may appear in the workflow summary or in job outputs; extract it and include it in the notification.gh run view <RUN_ID> or gh run view <RUN_ID> --log-failed).Step-by-step checklist for adding a new NEXT_PUBLIC_* environment variable. Use when introducing any new runtime env var.
Land a finished product task — prune the working files (keep spec.md), then finalize the draft PR into ready-for-review.
Close out review findings — adjudicate each one, fix what deserves fixing, then reply on the PR threads or in the task's review file.