wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- wizard
- description
- Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
03 SKILL.md 正文
Wizard
A wizard is a bash script that walks a human through a manual procedure: it opens each URL, states exactly what to click and copy, captures the values, writes them where they belong (.env, GitHub secrets), and confirms before each irreversible action.
template.sh supplies the UX — stage progress, confirmation gates, cross-platform URL opening, hidden secret entry, idempotent .env upserts, gh secret/gh variable writes, and a closing summary. Scope the procedure and author its stages; never hand-edit the library above the STAGES marker.
Wizards are ephemeral: save to a scratch or scripts/ path and delete when the job is done. Commit only when the user wants a repeatable setup path that lives in the repo.
Process
1. Scope the procedure
Find every manual step and every value captured along the way. Read the repo first, don't ask cold:
- Setup:
.env*,README,docker-compose*, framework config, and.github/workflows/*(everysecrets.*/vars.*reference is a value the wizard must produce). - Migration or transition: the current state, the target state, and the irreversible actions between them.
Show the ordered stages and the values each produces; confirm additions, drops, and reorderings.
Done when: stages are named in order, and for each value you know where the human gets it, where it is written (.env, a GitHub secret, both, or nowhere), and whether it is secret (hidden entry) or public.
2. Map each stage's journey
Write the precise path a human follows: URL to open, action to take, where the value appears, which variable it fills (e.g. "Dashboard → Developers → API keys → Reveal test key → copy"). Never invent UI or commands; ask the user or check the docs.
Done when: every stage traces to concrete instructions a stranger could follow.
3. Author the wizard
Copy template.sh to the target path. Replace the example stage with one stage per step, in dependency order. Use the helpers stage, say/step, open_url, ask/ask_secret, write_env, set_secret/set_var, pause/confirm; set TOTAL_STAGES to the number of stages.
Hold the template's bar: open the URL before asking for its value, use ask_secret for anything secret, write_env every persisted value, set_secret only values CI actually needs, and confirm before any irreversible action. Keep each stage to one focused task so the current step stays visible.
4. Verify and hand off
bash -n <script>; runshellcheckif available.chmod +x <script>.- Trace statically rather than running end-to-end (it opens browsers and blocks on human input): 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. For a repeatable setup path, commit it and link it from the README so the next person runs the script instead of asking an AI.
04 同仓库更多 Skills
writing-for-agents
Writing and reducing documents for agents. Use when creating, editing, pruning, or restructuring skills, or modifying AGENTS.md or CLAUDE.md.
web-design
Routes UI/frontend design work — interfaces, components, design systems, tokens, responsive layouts, accessibility, visual review, anti-slop, DESIGN.md.
design-visual-frontend
Design, build, redesign, or critically review distinctive frontend interfaces with strong composition, domain authenticity, responsive behavior, component coherence, and browser-verified visual quality. Use for websites, landing pages, login and form flows, dashboards, admin tools, product pages, portfolios, visual UI reviews, anti-template redesigns, or any request where frontend aesthetics and usability both matter.
verify
Evidence-backed verification before completion. Use when the user asks to verify, validate, test, or confirm work, or before claiming DONE, fixed, working, completed, or ready. Maps each mandatory criterion to an observable check and refuses completion while the runtime gate has pending work.
unslop
暂无简介
tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.