agentleFS
paureispaureis/pau-skills/skills/session-discipline/wizard/SKILL.md

wizard

Skill2 starsChanged 6 days agoMITView on GitHub

Walk a person through setup steps only they can do (create an API key, set a secret, click through a dashboard, approve an app) with a script that shows one step at a time and checks each one without reading the secret. Use when work is blocked on such a step, or the user says 'walk me through the setup' or 'make me a setup wizard'. Not for steps the agent can run itself.

  • Reads credentials

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, writing-beats and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 53 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 70 projects that use this

  • richard12511Skill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 52 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 61 projects that use this

  • LesaniSkill

    writing-shape

    Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.

    Also in 67 projects that use this

  • simo97Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 59 projects that use this

  • +1 more from Lesani

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 182 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not for steps you can do yourself: do those.

    line 20
  2. Distinctive:

    Never ask the person to paste a secret into the chat.

    line 22
  3. Distinctive:

    Read the repository first.

    line 27
  4. Very specific:

    Do yourself every part that needs no value from the person, for example copying .env.example to .env or creating a folder.

    line 36
  5. Distinctive:

    Never invent UI you do not know: ask the person, or check the docs.

    line 47
  6. Very specific:

    Keep it at a short path the person can type, such as scripts/setup-steps.json, not a long session folder.

    line 51
  7. Very specific:

    Never put a value in the steps file: not in a command argv, a URL or a say line.

    line 69
  8. Very specific:

    Run node ${CLAUDE_SKILL_DIR}/wizard.mjs check <file> until it passes.

    line 84
  9. Very specific:

    Never run run yourself: it waits on a person.

    line 97
  10. Very specific:

    When they say they are done, run node ${CLAUDE_SKILL_DIR}/wizard.mjs status <file> from the same folder and report the result: exit 0 means …

    line 100

“Common” is measured: kept by at least 6 in 10 of the 182 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wizard

Some setup steps only a person can do: create an API key, set a secret, click through a dashboard, approve an app. A paragraph of instructions in the chat scrolls away. Instead, write the steps as a JSON steps file. The person runs one fixed script on it, ${CLAUDE_SKILL_DIR}/wizard.mjs, which shows one step at a time, opens the page, and checks each step before it goes on. Afterwards you run the same script to confirm.

The person puts each value in place themselves: a line in .env, gh secret set NAME, a field in a dashboard. The script never asks for a value and never stores, prints or logs one. It only checks that the value is where it belongs.

Not for steps you can do yourself: do those.

Never ask the person to paste a secret into the chat. If they do, tell them it is now in this conversation's context and suggest they rotate it.

1. Scope the steps

Read the repository first; do not ask cold. Look at:

  • env example files (.env.example, .env.sample, .env.template and the like) and compose files;
  • framework config, for example .NET user-secrets, Rails credentials, Django settings, Spring application.*, Terraform variables;
  • CI files: GitHub Actions secrets.* and vars.*, GitLab CI variables, CircleCI contexts, Azure Pipelines variable groups, Bitbucket repository variables, Jenkins credentials;
  • the README.

Do yourself every part that needs no value from the person, for example copying .env.example to .env or creating a folder. A step holds only what the person must do.

Show the person the ordered list of steps: for each value, where it comes from, where it goes and whether it is secret. When a step's check needs facts you do not have yet (the repository's OWNER/REPO, an account id), ask for them with the list. Wait for their yes before you write anything. They may add, drop or reorder steps.

2. Map each step's exact path

For each step, write the path a stranger could follow: the URL, what to click, where the value appears and where to put it (for example "Developers, API keys, Create key, copy it, then add PAYMENTS_KEY= and the key to .env"). Never invent UI you do not know: ask the person, or check the docs.

3. Write the steps file and check it

Keep it at a short path the person can type, such as scripts/setup-steps.json, not a long session folder. It is ephemeral by default: delete it when every step is done, and commit it only when the user wants a repeatable setup path. Copy the shape of ${CLAUDE_SKILL_DIR}/example-steps.json:

  • Top level: title and steps, nothing else.
  • A step: id (unique), title and checks (at least one) are required. say (lines to show), open (an http or https URL to open in the browser), command and confirm are optional. Set confirm: true on an irreversible step: the person must answer y before it goes on.
  • A check holds exactly one kind: {"file": path} (the path exists), {"env": NAME} (set in the wizard's own environment), {"envFile": path, "key": NAME} (a non-empty NAME= line in a dotenv file), {"url": url, "status": 200} (a GET answers with that status, no redirects followed), {"command": [argv]} (exits 0).

There are two kinds of command. A step's command is a string: text shown for the person to type in their own terminal, such as gh secret set PAYMENTS_KEY. The wizard never runs it. A command check is an argv array the wizard runs without a shell, with its output discarded; it passes when it exits 0. On Windows a command check cannot run a .cmd or .bat shim (npx, many CLIs) without a shell, which the wizard never uses: point it at the real .exe, or use a url or file check.

Never put a value in the steps file: not in a command argv, a URL or a say line. The wizard prints URLs and argv, and check refuses a URL whose query has a parameter named like a token, key, secret or password.

A relative path in a check is read from the folder the wizard runs in, not the steps file's folder.

An env check sees only the terminal that runs the wizard. A variable the person sets in another terminal is not seen there: they set it and start again, or you use an envFile or command check instead.

check refuses a step with an empty checks list. When nothing obvious can check a step, find a check: a url, or a command such as gh api repos/OWNER/REPO/actions/secrets/PAYMENTS_KEY. That one needs gh installed and signed in with access to that repository's secrets. When it is not, status names the check as failed, with the exit code or could not start when gh is missing, never a value. Never drop an approved step silently. If you still cannot check one, tell the person plainly which approved step is not in the file and why, and handle it with them in the chat.

Run node ${CLAUDE_SKILL_DIR}/wizard.mjs check <file> until it passes. It runs nothing and names each problem by its place in the file.

4. Hand off

The person needs Node 20 or later. Run node --version. If it is missing or below 20, give the steps one at a time in the chat instead, and check each one with your own commands without reading any value (an exit code, not the file's text).

Give the person the full command to type in their own terminal, from the project root, with that folder named: node ${CLAUDE_SKILL_DIR}/wizard.mjs run <steps file>, with ${CLAUDE_SKILL_DIR} filled in as the absolute path this skill shows. Never shorten it to a relative path. Add --no-open if they do not want browser tabs opened. Tell them what the prompts take: Enter when a step is done, s to skip it, q to quit, and y on a step that cannot be undone. Never run run yourself: it waits on a person. A step that already passes is passed over, so running it again resumes.

When they say they are done, run node ${CLAUDE_SKILL_DIR}/wizard.mjs status <file> from the same folder and report the result: exit 0 means every step is done; otherwise it names each check that failed. Delete an ephemeral steps file once every step is done. A committed, repeatable steps file may be linked from the project README only when the user wants it, after you ask.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.