AIHero
    16 / 25AI Skills for Real Engineers · 8 min read

    The /wizard Skill

    Generate a script that walks a human through setup.

    Matt Pocock
    Matt Pocock
    Next lesson
    On this page

    What it does

    wizard generates an interactive bash script that walks a human, step by step, through a manual procedure — wiring up third-party services, running a one-off migration, moving a project from state A to state B. It opens each URL, says what to click and copy, captures what comes back, and writes it into .env files and GitHub Actions secrets.

    The agent writes the script; it never runs it. You do, on your own machine. So a wizard is not a list of instructions you follow — it is a program that drives the procedure and holds the state, and your part is to click, paste, and press Enter.

    When to reach for it

    You can type /wizard, and the agent can also reach for it on its own. When it hits a step you have to take — a key it can't mint, a dashboard it can't click — it builds you a wizard instead of writing the instructions into the chat, where they scroll away.

    Reach for it when the next thing blocking you is a trip through a dashboard:

    SituationWhat the wizard does
    A new dev needs six services configured before the app bootsOpens each dashboard in order, captures the keys, writes them to .env and CI
    A one-off migration needs switches flipped in a specific orderSequences the irreversible steps behind confirmation gates
    A project has to move from state A to state B onceWalks the transition and reports what it could not do
    You are about to write those steps into a READMEWrites an executable version instead, which can't rot as quietly

    Don't reach for it to decide what to build; for that, grill-with-docs and to-spec are the tools.

    Prerequisites

    None to generate one. The wizard it writes runs on bash, and uses gh when a stage sets a GitHub secret or variable. If gh is missing or unauthenticated, that stage becomes a warning and the closing summary tells you what to set by hand, instead of failing the run.

    Stages

    A stage is one focused task on one screen. The script clears the terminal between stages, so a stage that overflows the screen loses the part that scrolled away. You author stages in dependency order and set TOTAL_STAGES and TOTAL_MINUTES, which drive the time-remaining display — make the estimate honest, because the person running it will hold you to it.

    Scoping happens before a line is written. The skill reads the repo instead of asking cold: .env*, docker-compose*, framework config, and every secrets.* / vars.* reference in .github/workflows/ — each of those is a value the wizard has to produce. It then shows you the ordered stage list to confirm, and only after that maps each stage to the exact path a human follows ("Dashboard → Developers → API keys → Reveal test key → copy"). Where it doesn't know the current UI, it asks you or checks the docs rather than inventing clicks.

    For each captured value, scoping settles where it lands:

    DestinationWhen
    .env onlyLocal dev needs it, CI doesn't
    GitHub secretCI reads it, and it's sensitive
    GitHub variableCI reads it, and it's public
    Both .env and a secretLocal dev and CI both need it
    NowhereThe stage is a pure action — a switch flipped, a plan upgraded

    The template already solves the UX

    The template ships the whole experience: progress with time remaining, confirmation gates, cross-platform URL opening including WSL, hidden entry for secrets, idempotent .env upserts, gh secret / gh variable writes, and a closing summary of everything it had to skip. Everything above the STAGES marker is a fixed library, identical in every wizard and never hand-edited. The consistency is the point. Your job is only to scope the procedure and author its stages.

    The agent that writes a wizard never runs it end to end, because it opens browsers and waits for human input. It verifies statically instead: bash -n, shellcheck where available, and a trace that every value lands where scoping said it would, with every set_secret name matching a real secrets.* reference in CI. Set your expectations accordingly — the first run is yours, and that run is the test.

    Ephemeral by default

    What you haveWhat to do with the script
    A one-off migration, a personal setup, a transition you'll never repeatSave it to a scratch or scripts/ path, run it, delete it
    A setup path the next person on the repo will also needCommit it and link it from the README, so they run the script instead of re-asking an agent

    Common questions

    Do my API keys end up in the model's context?

    No. The agent writes a script; it doesn't run it. You run the script yourself, and it captures the key with hidden terminal entry and writes it straight to .env or gh secret. Matt's answer to this on launch day was "No, because it's a CLI — the LLM is not connected to it." One caveat: that holds for values the wizard captures at runtime. If you paste a key into the chat while scoping the procedure, it's in the context like any other pasted text.

    Can I go back and fix a value I mistyped?

    Not mid-run. There is no back button — the stages run forward, and a wrong answer on stage 3 means Ctrl-C and re-run. Re-running is cheap by design: any value already written to .env is offered back as a default, so you press Enter through the stages you got right and retype only the wrong one. This came up in the launch week and hasn't been closed since: "loved it! One thing though — is there a way to go back and correct what you've entered?"

    There's a related open bug. Arrow keys in an ask prompt insert ^[[D / ^[[C instead of moving the cursor, because the prompt uses read -r rather than Readline (issue #741). Backspace works; arrow keys don't. Delete back to the mistake rather than moving the cursor into it.

    Does it know what I've already set up?

    Partly, and less than the launch reactions assumed. It reads the repo before it asks — your .env files, docker-compose, framework config, the secrets.* references in CI — so it scopes to values that are genuinely missing rather than starting from zero the way a README does. What it doesn't do is check the third-party service. If a key exists in your .env the wizard offers it back and Enter keeps it; if you already created the Stripe account but never saved the key, the wizard still sends you to the dashboard for it.

    Where does it sit in the workflow — after grilling and the spec?

    Nowhere in particular. It's a standalone, not a chain step. The common guess is /grill-with-docs → /to-spec → /wizard, and that sequence is fine, but the trigger is a manual procedure showing up, which can happen at any point: before you start, mid-build, or long after ship. It also works as a discovery tool — scoping surfaces the hidden prerequisites of a task, like the three API keys you hadn't thought about, before you commit to the work.

    Does it work outside Claude Code?

    The artifact does, unconditionally: it's a plain bash script and it doesn't care what harness generated it. The skill itself is model-invoked, so it's listed everywhere — type /wizard in Claude Code or $wizard in Codex, or just describe the setup you're stuck on. Being model-invoked also keeps it clear of #693, where Claude's desktop and web surfaces drop user-invoked skills from the model's listing and report them as not installed.

    Didn't this used to be user-invoked?

    It did. It's now model-invoked, so the agent reaches for it unprompted when it hits a step you have to take. Nothing you could do before stopped working — model-invocation adds the agent's reach, it never removes yours, so /wizard behaves exactly as it did. What changed is the failure mode it retires: the agent hitting a credentials wall mid-build and dumping six numbered steps into the chat for you to follow by hand.

    It used to be in in-progress/ — where is it now?

    engineering/, as of v1.2. It graduated out of the beta bucket and now ships in the plugin, so it arrives with the rest of the promoted set rather than needing an individual install. Its behaviour didn't change on graduation.

    It's working if

    • You're shown an ordered list of stages, and the values each one produces, and asked to confirm — before any script exists.
    • Every URL is opened before the value from that page is asked for. You're never asked to paste something you haven't been sent to fetch.
    • Secrets are typed blind. Nothing sensitive echoes into your scrollback.
    • Each stage fits one screen. Nothing you still need has scrolled away.
    • Ctrl-C and re-run picks up where you left off, offering the values already saved as defaults.
    • The final screen lists what it wrote, and separately lists what it couldn't do and you have to finish by hand.

    Where it fits

    wizard is a reach-for-it-anytime standalone, sitting at the line where automation stops and a human has to click. Its nearest neighbour is setup-matt-pocock-skills, because both exist to get a repo into a working state — that one configures this skill set, while wizard generates a setup path for everything else. It also pairs with implement: when a build lands a feature that needs credentials or a manual cutover, a wizard is how the human half gets done. When you're unsure which skill fits the moment, ask-matt routes you.

    Log into save progress.