复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-setup-wizard-generator-2e88df0cdffd ,按照其中的说明把「setup-wizard-generator」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
Do NOT use for steps the agent can perform itself — do those directly.
bash; gh CLI only if stages write GitHub secrets/variablestemplates/template.sh in this skill's directoryWork out every manual step the human must take and every value captured along the way. Read the repo first, don't ask cold:
.env, .env.example, README, docker-compose*, framework
config, and .github/workflows/* (every secrets.* / vars.* reference
is a value the wizard must produce).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.
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.
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.
bash -n <script>; run shellcheck if available; chmod +x <script>.set_secret name exactly matches a
secrets.* reference in CI.STAGES marker is
the wizard library; author only below it.set_secret for values CI doesn't use. Only push to GitHub secrets
what a workflow actually references.bash -n is the verification.bash -n passes; script is executableset_secret name matches a CI secrets.* reference