setup-wizard-generator
它能做什么
它创建一个交互式脚本,逐个打开网页,告诉你需要点击和复制什么,并把每个值保存到正确的位置。它适合设置第三方服务,或把手动设置交给团队成员的人。
适用场景
- ✓你需要手动设置凭证、CI 机密或仓库变量的时候。
- ✓你需要团队成员逐步执行手动设置流程的时候。
- ✓一次性迁移中存在必须由人员确认的不可逆步骤的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/devops/setup-wizard-generator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请制作一个设置向导,一步一步带我把 Stripe 和 Supabase 的密钥配置到这个项目中。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体读取你的项目,找出所需的值,然后把各个阶段写入一个现成的模板。该模板负责显示进度、确认步骤,并把值保存到 .env 或 GitHub 机密中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Setup Wizard Generator
Generates an interactive bash wizard: a script that walks a human, step
by step, through a manual procedure that is tedious to do by hand and tedious
to re-explain every time. It opens each URL, says exactly what to click and
copy, captures the values, writes them where they belong (.env, GitHub
secrets), confirms at every stage, and shows how many stages are left.
Ported from mattpocock/skills' MIT-licensed wizard skill.
When to Use
- Provisioning infrastructure or third-party services (Stripe, Supabase, DNS, OAuth apps) where only a human can click through the dashboard
- Setting up credentials, CI secrets, or repo variables
- One-off migrations or cutovers with irreversible human-gated steps
- Any procedure the user will hand to a teammate to run
Do NOT use for steps the agent can perform itself — do those directly.
Prerequisites
bash;ghCLI only if stages write GitHub secrets/variables- The library template:
templates/template.shin this skill's directory
Procedure
1. Scope the procedure
Work out every manual step the human must take and every value captured along the way. Read the repo first, don't ask cold:
- Setup:
.env,.env.example,README,docker-compose*, framework config, and.github/workflows/*(everysecrets.*/vars.*reference is a value the wizard must produce). - Migration/cutover: the current state, the target state, and the irreversible actions between them.
Show the user the ordered stage list and the values each produces; they may
add, drop, or reorder. Done when every stage is named in order and, for each
captured value, you know (a) where the human gets it, (b) where it's written
(.env, a GitHub secret, both, or nowhere), and (c) whether it's secret
(hidden entry) or public.
2. Map each stage's journey
For each stage, write the precise path a human follows: which URL to open, what to do there, where the value is shown — e.g. "Dashboard → Developers → API keys → Reveal test key → copy". Where you don't know the current UI or exact command, say so and check the docs or ask — never invent steps that may not exist.
3. Author the wizard
Copy templates/template.sh (from this skill's directory) to the target
path. Replace the example stage with one stage per step, in dependency
order. Set TOTAL_STAGES to the number of stages you wrote.
Library helpers: stage, say/step/note/warn, open_url,
ask/ask_secret, write_env, set_secret/set_var, pause/confirm,
banner, finish. The library above the STAGES marker is identical in
every wizard — never hand-edit it; that consistency is the point.
Hold the bar the template sets: open the URL before asking for its value,
ask_secret for anything secret, write_env every persisted value,
set_secret only what CI actually needs, and confirm before anything
irreversible. Each stage clears the screen — keep one focused task per
stage so nothing the human needs scrolls away.
A wizard is ephemeral by default: save it to a scratch or scripts/ path,
delete it when the job's done. Commit it only when the user wants a
repeatable setup path living in the repo.
4. Verify and hand off
bash -n <script>; runshellcheckif available;chmod +x <script>.- Do NOT run it end-to-end yourself: it opens browsers and blocks on human
input. Trace it statically: every value from step 1 is captured and lands
where step 1 said, and every
set_secretname exactly matches asecrets.*reference in CI. - Tell the user how to run it. If it's repeatable, commit it and link it from the README.
Pitfalls
- Editing the library section. Everything above the
STAGESmarker is the wizard library; author only below it. - Inventing dashboard paths. Third-party UIs drift. If unsure of the click path, verify against current docs or flag it as approximate.
set_secretfor values CI doesn't use. Only push to GitHub secrets what a workflow actually references.- Running the wizard yourself. It blocks on human input; static tracing
plus
bash -nis the verification. - One mega-stage. Screen clearing per stage means a long stage scrolls critical instructions away; split it.
Verification
- Stage list confirmed with the user before authoring
-
bash -npasses; script is executable - Every captured value traced to its declared destination
- Every
set_secretname matches
常见问题
它会替我完成这些步骤吗?
不会。它是为只有人才能完成的步骤准备的,技能说明不应用于智能体自己能完成的步骤。
它把这些值保存在哪里?
根据阶段不同,它会写入 .env 文件,或写入 GitHub 的机密和变量中。
它需要 gh 工具吗?
只有当阶段需要写入 GitHub 机密或变量时才需要。
详情
热度
- GitHub 星标
- 260k
- 排名
- #486
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。