agentleFS
TheAxeCTheAxeC/ordo/skills/code/wizard/SKILL.md

wizard

Skill0 starsChanged yesterdayMITView on GitHub

Generate an interactive bash script, a wizard, that walks a person through a setup or another procedure: it opens each URL, says what to click and copy, reads each value, writes it to .env, a GitHub secret or a GitHub variable, runs the commands a stage needs, each shown and confirmed first, and asks before an irreversible action. Use it when installing a tool or a project's dependencies, provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. It is not for an action the session can take itself, now, on the machine it runs on. It leaves behind the script, checked and never run by the session. Triggers on: /wizard, write a wizard, write a setup script that walks me through it, walk me through installing the dependencies, walk me through setting up the credentials, set up the CI secrets, walk me through this dashboard, walk me through the migration, walk me through the cutover.

  • Reads credentials

197 other projects use a version of this, 136 of them edited.

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

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 3 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 182 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every secrets.* and vars.* reference in the workflows is a value the script must produce.

    line 28
  2. Very specific:

    Use the library's helpers: stage, say and step, open_url, ask and ask_secret, write_env, set_secret and set_var, pause and confirm, have …

    line 54
  3. Very specific:

    Read every secret with ask_secret.

    line 57
  4. Very specific:

    Write every value that is kept with write_env.

    line 58
  5. Very specific:

    Call set_secret only for the values CI needs, and set_var for a public value CI reads.

    line 59
  6. Very specific:

    Call confirm before every irreversible action.

    line 60
  7. Very specific:

    Write one run_cmd per command.

    line 61
  8. Very specific:

    Ask for and write each value the stage reads outside the if of its check, except in a stage whose tool is missing.

    line 63
  9. Very specific:

    Read the installed version outside run_cmd, since the read is part of the check and changes nothing.

    line 66
  10. Very specific:

    When that tool is missing, call by_hand with what is left and the stage to run first.

    line 69
  11. Distinctive:

    When that tool is missing, run none of the stage's commands.

    line 70
  12. Distinctive:

    When that tool is missing, read none of the stage's values, which are not known yet.

    line 71
  13. Very specific:

    Write a command that needs a shell (a pipe, a redirection, $(...), a variable the command itself must expand) as run_cmd bash -c '<the …

    line 73
  14. Very specific:

    Keep the expansion of a secret's variable off the run_cmd line, where bash replaces it by the value before the line is printed: the command …

    line 78
  15. Very specific:

    Keep a stage to one focused task, since each stage clears the screen and what the person still needs must not scroll away.

    line 79
  16. Distinctive:

    Check the script without running it.

    line 82
  17. Very specific:

    Run shellcheck <script> when it is installed.

    line 84
  18. Very specific:

    No command runs without being shown to the person and confirmed with a yes: every command of a stage goes through run_cmd.

    line 119

“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

/wizard writes a wizard: a bash script that walks a person, stage by stage, through a setup, a migration or a cutover. The script opens each URL, says what to click and copy, reads the values, writes each one to .env, a GitHub secret or a GitHub variable, runs the commands a stage needs, each shown and confirmed first, asks before each irreversible action and shows how many stages are left. The skill leaves behind the script, executable and never run by the session.

Quick start

/wizard <procedure>    write the script for a procedure, named in the user's words: a setup, a migration or a cutover, with the commands its stages run, each shown and confirmed first

Use instead

WhenUse
A repository is to be set up for the plan skills, a new one with its pages and skills or an existing one/ordo-init

What it reads

  1. The procedure, in the user's words, or, when the model invokes the skill, the action or the command it met that Rules leaves to the skill.
  2. For a setup, the repository's .env, .env.example, .env.*, README, docker-compose*, framework configuration and .github/workflows/*.
    • Every secrets.* and vars.* reference in the workflows is a value the script must produce.
    • The commands of a setup come from the repository's build files, its README's install instructions and a setup script it already has.
  3. For a migration or a cutover, the current state, the target state and the irreversible actions between them.
  4. templates/template.sh, whole.

Steps

  1. Scope the procedure: list every action the person must take, every command a stage runs and every value read along the way, from "What it reads" 2 or 3, before asking the user anything.
    • Order the actions into stages.
    • For each value, note where the person gets it.
    • For each value, note where it is written: .env, a GitHub secret, a GitHub variable, several of these, or nowhere for a stage that is a pure action.
    • For each value, note whether it is secret, and so typed hidden, or public.
    • For each command, note the tool it installs or the state it reaches.
    • For each command, note the check that shows its stage is already done, so that a second run skips it: have for a tool, have followed by version_at_least with the minimum for a tool that must be at least a given version, or a bash test that reads and changes nothing, such as [[ -d <folder> ]].
    • For each command, note the operating systems it holds for.
    • Done when every stage is named in order, each value has its three notes and each command has its three.
  2. Show the user the stage list as the Stops row "The stage list" gives it, and wait for the confirmation.
    • The user may add, drop or reorder stages, and the list is shown again as changed.
    • Done when the user has confirmed the list.
  3. Map each stage's journey: which URL to open, what to do there, where the value is shown and which variable it fills, such as "Dashboard, Developers, API keys, Reveal test key, copy".
    • Where the current UI or the exact command is not known, say so, then read the service's documentation or ask the user ("Stops").
    • Where a command is not known for an operating system it must hold for, say so, then read the tool's documentation or ask the user, at the same stop.
    • Done when every stage traces to instructions a stranger could follow.
  4. Copy templates/template.sh to the target path, which Rules gives.
    • Done when the copy stands at that path.
  5. Replace the example stage with one stage per stage of the list, in dependency order, below the STAGES marker.
    • Use the library's helpers: stage, say and step, open_url, ask and ask_secret, write_env, set_secret and set_var, pause and confirm, have and version_at_least, run_cmd, by_hand and WIZARD_OS.
    • Set TOTAL_STAGES to the number of stages written.
    • Open the URL before asking for its value.
    • Read every secret with ask_secret.
    • Write every value that is kept with write_env.
    • Call set_secret only for the values CI needs, and set_var for a public value CI reads.
    • Call confirm before every irreversible action.
    • Write one run_cmd per command.
    • Skip the commands of a stage that is already done, and their instructions, by its check, which stands in the condition of an if and is not a command of the stage.
    • Ask for and write each value the stage reads outside the if of its check, except in a stage whose tool is missing.
    • Where a tool must be at least a given version, write the check as have followed by version_at_least <installed version> <minimum>: the stage reads the installed version only when have succeeds, since reading the version of a missing tool ends the script.
    • Cut the tool's output down to the dotted number before the call, since version_at_least fails on any other text.
    • Read the installed version outside run_cmd, since the read is part of the check and changes nothing.
    • Print the version command with note before the stage runs it, so that the person sees every program the script starts.
    • Where a command needs a tool that an earlier stage installs, check for that tool with have first.
    • When that tool is missing, call by_hand with what is left and the stage to run first.
    • When that tool is missing, run none of the stage's commands.
    • When that tool is missing, read none of the stage's values, which are not known yet.
    • Name each value left unread in the text given to by_hand.
    • Write a command that needs a shell (a pipe, a redirection, $(...), a variable the command itself must expand) as run_cmd bash -c '<the line>', the line in single quotes, so that bash expands nothing before the command is shown.
    • Print the plain line with say right above that run_cmd, since run_cmd prints each word quoted for the shell, which puts a backslash in front of each space and each shell character of the line.
    • Give say the same line in single quotes, so that bash expands nothing in it.
    • Choose a command that differs by operating system by WIZARD_OS.
    • Give an operating system the stage list does not cover a warn that names it.
    • Keep the expansion of a secret's variable off the run_cmd line, where bash replaces it by the value before the line is printed: the command reads the variable from its environment, which the stage exports after ask_secret, or asks for the secret itself.
    • Keep a stage to one focused task, since each stage clears the screen and what the person still needs must not scroll away.
    • End each stage on pause, since the next stage, or finish after the last one, clears the screen and what the stage printed, a command's output included, is gone.
    • Done when the script holds one stage for each stage of the list and TOTAL_STAGES equals their number.
  6. Check the script without running it.
    • Run bash -n <script>.
    • Run shellcheck <script> when it is installed.
    • Fix in the stages each line shellcheck prints, since the library gives none.
    • Run chmod +x <script>.
    • Trace the script by reading it: every value of Steps 1 is read and lands where Steps 1 said.
    • Trace every command of Steps 1: it stands behind a run_cmd.
    • Trace every set_secret name: it equals a secrets.* reference in CI.
    • Done when bash -n prints nothing, shellcheck, when it is installed, prints nothing, the script is executable and the trace finds every value and every command.
  7. Tell the user how to run the script, and to delete it after its run unless it is kept as Rules says.
    • Done when the message names the script's path and the command that runs it.

The template

  • templates/template.sh holds the wizard library above its STAGES marker and one example stage below it.
  • The library is the same in every script: stage-by-stage progress, confirmations, URL opening on macOS, Linux and WSL, hidden entry of secrets, .env writes that replace an existing line, gh secret and gh variable writes, the check whether a tool is installed (have), the comparison of a version with a minimum (version_at_least), the run of one command once the person has seen it and answered yes (run_cmd), the record of what a stage leaves to do by hand (by_hand), the operating system the script runs on (WIZARD_OS), and a closing summary.
  • The example stage is made up, around the public API-keys page of Stripe's dashboard.

Stops

StopWhenWhat it showsWhat resumes it
The stage listSteps 2, before any script is writtenThe ordered stages, the values each produces, where each is written and whether it is secret, and each stage's commands with the operating systems they hold forThe user's confirmation, or the list changed as the user says and shown again
An action not knownSteps 3, when the current UI or the exact command of an action, or a command for an operating system, is not known and the documentation does not give itThe stage, the action or the command and what is not knownThe user's answer

Anti-patterns

Anti-patternWhy it failsDo instead
A script for an action Rules leaves to the sessionThe person does by hand what needed no personThe session takes that action, and the script holds the actions a person must take and the commands Rules leaves to the skill
An action written from a guess at a dashboard's UIThe person is sent to a button that is not thereSay what is not known and read the documentation or ask, as Steps 3 says
Asking the user for a stage's values without reading the repositoryThe user is asked what the files already answerRead "What it reads" 2 or 3 first, as Steps 1 says
The instructions written into the conversation as a numbered listThey scroll away, and nothing keeps the values the person entersWrite the script

Rules

  • The session never runs the script, since it opens a browser, runs commands on the person's machine and waits for a person: it checks the script as Steps 6 says.
  • No command runs without being shown to the person and confirmed with a yes: every command of a stage goes through run_cmd.
  • A stage's check may run a tool's own version command without a yes, shown first, since it reads and changes nothing.
  • The skill is not for an action the session can take itself, now, on the machine it runs on.
  • The library above the STAGES marker is never edited: the session writes only below the marker.
  • A secret is never asked for in the conversation: the script reads it with ask_secret when the person runs it.
  • A secret is never printed: a line the script prints names the variable and never its value.
  • A secret is never written into the script: the script holds the variable's name only.
  • The script is written to a scratch path, or to a scripts/ path the user names.
  • The script is deleted after its run, unless the user wants a setup path that can be run again.
  • The script is committed and linked from the README only on the user's word.

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.