agentleFS
marinvchmarinvch/Cortex/skills/wizard/SKILL.md

wizard

Skill1 starsChanged 2 months agoMITView on GitHub

Generate a script that walks a human through steps only they can do — credentials, CI secrets, a third-party dashboard, a one-off cutover. Triggers — "walk me through", "I need to do this by hand", "make a setup script".

  • Reads credentials

73 other projects use a version of this, 62 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.
  • loulanyueSkill

    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 16 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 22 projects that use this

  • RoentekSkill

    writing-shape

    Writing, exploit — shape raw material into an article, paragraph by paragraph.

    Also in 20 projects that use this

  • qwlabsSkill

    claude-handoff

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

    Also in 16 projects that use this

  • qhuang20Skill

    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 19 projects that use this

  • kayamanSkill

    git-guardrails-claude-code

    Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

    Also in 26 projects that use this

  • +2 more from Roentek

The file

We split this skill into the rules it gives an agent

5 rules. 1 is common, 2 are distinctive, and 2 are very specific to this project.

  • 1

    Common

    Most of the 65 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never split admin work across several scripts or several elevation prompts.

    line 26
  2. Very specific:

    A wizard never lands in the vault: Write it to the target repo's scripts/, or to the scratchpad for a one-run job.

    line 38
  3. Very specific:

    Done when: every stage is named in order, and for each value you know (a) where the human gets it, (b) where it's written — .env, a secret, …

    line 61
  4. Distinctive:

    Write the precise path a human follows: which URL, what to do there, where the value is shown, which variable it fills — "Dashboard → …

    line 67
  5. Common:

    Done when: every stage traces to instructions a stranger could follow.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 65 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 — hand the human a script instead of instructions

A wizard is a script that walks a person, stage by stage, through a manual procedure that is tedious to do by hand and tedious to re-explain to an AI every time. It opens each URL, says exactly what to click and copy, captures the values, writes them where they belong, confirms before anything irreversible, and shows how many stages are left.

The UX is already solved by the templates. Your job is only to scope the procedure and author its stages. The library above the STAGES marker is identical in every wizard — that consistency is the point. Never hand-edit it.

Pick the template

TemplateUse when
template.shPOSIX shell — the default. Git Bash, WSL, macOS, Linux, CI.
template.ps1Windows-native, or any step needing admin rights — it self-elevates once via Start-Process -Verb RunAs, wraps each stage in try/catch so one protected path never aborts the batch, and holds the window open at the end.

Never split admin work across several scripts or several elevation prompts. One script, one elevation, a summary table at the end.

The privacy rule (hard)

A wizard handles credentials, so before writing one, ask where you are and whether the destination is safe:

node "${CLAUDE_PLUGIN_ROOT}/tools/cortex-preflight.mjs" <path you intend to write>

A wizard never lands in the vault. Write it to the target repo's scripts/, or to the scratchpad for a one-run job. Captured values go to that repo's .env or a secret store — never into context/, notes/, daily/, or any file here. Do not echo a captured secret back to the terminal, and never commit a wizard with values baked into it.

Preflight answers both halves in one call: kind: cortex-source means you are standing in the vault and the destination is wrong, and a COMMITTED verdict on the script path means a file about to hold credentials is tracked. /cortex-profile is where a disputed answer gets settled — the firewall is one declared policy, not a judgment each ritual makes for itself.

Process

1. Scope the procedure

Work out every manual step 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). For a migration or cutover, establish the current state, the target state, and the irreversible actions between them.

Then show the user the ordered stages and the values each produces, and confirm — they may add, drop, or reorder.

Done when: every stage is named in order, and for each value you know (a) where the human gets it, (b) where it's written — .env, a secret, both, or nowhere, since some stages are pure actions — and (c) whether it's secret, so it needs hidden entry.

2. Map each stage's journey

Write the precise path a human follows: which URL, what to do there, where the value is shown, which variable it fills — "Dashboard → Developers → API keys → Reveal test key → copy". Where you don't know the current UI or the exact command, say so and check the docs or ask. Never invent steps that may not exist — a wizard that sends someone to a page that isn't there is worse than no wizard.

Done when: every stage traces to instructions a stranger could follow.

3. Author it

Copy the template to the target path. Replace the example stage with one stage per step, in dependency order. Set TOTAL_STAGES to match. Use the library helpers only.

Hold the bar the template sets: open the URL before asking for its value; hidden entry for anything secret; persist every captured value; set only the secrets CI actually needs; confirm before anything irreversible. Each stage clears the screen — keep it to one focused task so nothing the human needs scrolls away.

4. Verify and hand off

  • bash -n <script> (or Get-Command -Syntax / PSScriptAnalyzer for .ps1). Run shellcheck if available. chmod +x the bash one.
  • Don't run it end-to-end yourself — it opens browsers and blocks on human input. Trace it statically: every value from step 1 is captured and lands where step 1 said it would, and every secret name exactly matches its CI reference.
  • Tell the user how to run it. A wizard is ephemeral by default — built for one run, deleted when the job's done. Commit it only when it's a repeatable setup path, and then link it from the README so the next person runs the script instead of asking an AI.

Adapted from mattpocock/skills (MIT). template.sh is vendored unmodified; template.ps1 and the privacy + elevation rules are Cortex additions.

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.