[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AW7HDMMJ372HG8PGM5RR0Z":3,"skill-same:01M7AW7HDMMJ372HG8PGM5RR0Z":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7AW7HDMMJ372HG8PGM5RR0Z","yun-write-wizard",null,"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.","matiinchauspe\u002Fyunque","matiinchauspe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7861346?v=4","01M7AW106HSV1DVWJSQQBD6BYB","Matias","01M7AW107JZVCTQHZEED16N5PZ",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-wizard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: yun-write-wizard\ndescription: 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.\n---\n\n# yun-write-wizard\n\nA **wizard** is a bash script that walks a human, step by step, through a manual procedure that's 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 (`.env`, the CI's secret store), confirms at every stage, and shows how many stages are left. It might configure third-party services, run a one-off migration, or move the project from one state to another.\n\nThe delightful UX is already solved by [template.sh](template.sh): stage-by-stage progress, confirmation gates, cross-platform URL opening (including WSL), hidden secret entry, idempotent `.env` upserts, `gh secret`\u002F`gh variable` writes, and a closing summary. **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.\n\nA wizard is ephemeral by default: built for one run, saved to `.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` in the workspace (gitignored), deleted when the job's done. Only when the user asks for a repeatable setup path that should live in the repo: copy it into the repo's `scripts\u002F`, commit it there, and link it from the README.\n\n**No human in the session — a dispatched run (`skills\u002Fyun-implement\u002FSKILL.md` \"Dispatched runs\")** — stop and report the manual step instead of authoring a wizard. A wizard waits on someone to click and paste; one left waiting is worse than naming the blocker.\n\n## Process\n\n### 1. Scope the procedure\n\nWork out every manual step the human must take and every value that gets captured along the way. Read the repo first, don't ask cold:\n\n- For setup: `.env`, `.env.example`, `.env.*`, `README`, `docker-compose*`, framework config, and the repo's CI config (`.github\u002Fworkflows\u002F*` for GitHub Actions — every `secrets.*` \u002F `vars.*` reference there is a value the wizard must produce).\n- For a migration or transition: the current state, the target state, and the irreversible actions between them.\n\nThen show the user the ordered list of stages and the values each produces, and confirm: they may add, drop, or reorder.\n\n**Done when:** every stage is named in order, and for each captured value you know (a) where the human gets it, (b) where it's written (`.env`, the CI's secret store, both, or nowhere; some stages are pure actions), and (c) whether it's secret (hidden entry) or public.\n\n### 2. Map each stage's journey\n\nFor each stage, write the precise path a human follows: which URL to open, what to do there, where a value is shown, which variable it fills: e.g. \"Dashboard → Developers → API keys → Reveal test key → copy\". Where you don't actually know the current UI or the exact command, say so and ask the user or check the docs: never invent steps that may not exist.\n\n**Done when:** every stage traces to concrete instructions a stranger could follow.\n\n### 3. Author the wizard\n\nCopy [template.sh](template.sh) to `.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` (gitignored; create the directory if it doesn't exist). Replace the example stage with one `stage` per step, in dependency order. Use the library helpers: `stage`, `say`\u002F`step`, `open_url`, `ask`\u002F`ask_secret`, `write_env`, `set_secret`\u002F`set_var`, `pause`\u002F`confirm`. `set_secret`\u002F`set_var` write GitHub Actions only: for any other CI, `open_url` its secret settings and `step` the human through setting each value there. Set `TOTAL_STAGES` to the number of stages you wrote.\n\nHold the bar the template sets: open the URL before asking for its value, use `ask_secret` for anything secret, `write_env` every persisted value, `set_secret` only the values CI actually needs, and `confirm` before any irreversible action. Each `stage` clears the screen so only the current step is visible: keep a stage to one focused task so nothing the human needs scrolls away. Don't touch the library above the marker.\n\n### 4. Verify and hand off\n\n- `bash -n \u003Cscript>`; run `shellcheck` if available.\n- `chmod +x \u003Cscript>`.\n- Don't run it end-to-end yourself: it opens browsers and blocks on human input. Trace it statically instead: every value from step 1 is captured and lands where step 1 said, and every `set_secret` name exactly matches a `secrets.*` reference in CI.\n- Tell the user to run it from the root of the checkout the work runs in (`repos\u002F\u003Cproject>`, or its worktree under `.worktrees\u002F\u003Cproject>\u002F\u003Ctask>\u002F`), since `ENV_FILE=\"${ENV_FILE:-.env}\"` is relative to the working directory, and to call the script by its absolute path so one command works from either: `cd \u003Ccheckout> && bash \u003Cworkspace>\u002F.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` (in Claude Code, with the `!` prefix). If it's a repeatable setup path the user asks for, copy it into the repo's `scripts\u002F`, commit it there, and link it from the README so the next person runs the script instead of asking an AI.\n\n## Attribution\n\nAdapted for this workspace from **Matt Pocock's `wizard`** (github.com\u002Fmattpocock\u002Fskills, MIT).\nChanges: renamed to the `yun-\u003Cverb>-\u003Cnoun>` harness convention; a wizard is written to\n`.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` in the workspace rather than the target repo's scratch or\n`scripts\u002F`, so the hand-off runs it by absolute path from the checkout the work runs in (the\nrepo or its worktree), where its relative `ENV_FILE` must resolve; the skill text names \"the CI's secret store\" rather than GitHub\nby default, since the `gh secret`\u002F`gh variable` helpers apply only where the repo's CI is\nGitHub Actions, and any other CI gets a stage that walks the human through its own secret settings; a dispatched run with no human in the session is a stop, never a wizard left\nwaiting; and `template.sh`'s `ask_secret` gets one added, `# yunque:`-marked line that echoes the\ncaptured secret's length, never its value. The four-step process, its \"Done when\" criteria, the\n\"never hand-edit the library\" rule, and \"ephemeral by default\" are preserved verbatim; the\nlibrary above the `STAGES` marker, including the `gh secret`\u002F`gh variable` helpers themselves,\nis untouched.\n","# yun-write-wizard\n\nA **wizard** is a bash script that walks a human, step by step, through a manual procedure that's 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 (`.env`, the CI's secret store), confirms at every stage, and shows how many stages are left. It might configure third-party services, run a one-off migration, or move the project from one state to another.\n\nThe delightful UX is already solved by [template.sh](template.sh): stage-by-stage progress, confirmation gates, cross-platform URL opening (including WSL), hidden secret entry, idempotent `.env` upserts, `gh secret`\u002F`gh variable` writes, and a closing summary. **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.\n\nA wizard is ephemeral by default: built for one run, saved to `.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` in the workspace (gitignored), deleted when the job's done. Only when the user asks for a repeatable setup path that should live in the repo: copy it into the repo's `scripts\u002F`, commit it there, and link it from the README.\n\n**No human in the session — a dispatched run (`skills\u002Fyun-implement\u002FSKILL.md` \"Dispatched runs\")** — stop and report the manual step instead of authoring a wizard. A wizard waits on someone to click and paste; one left waiting is worse than naming the blocker.\n\n## Process\n\n### 1. Scope the procedure\n\nWork out every manual step the human must take and every value that gets captured along the way. Read the repo first, don't ask cold:\n\n- For setup: `.env`, `.env.example`, `.env.*`, `README`, `docker-compose*`, framework config, and the repo's CI config (`.github\u002Fworkflows\u002F*` for GitHub Actions — every `secrets.*` \u002F `vars.*` reference there is a value the wizard must produce).\n- For a migration or transition: the current state, the target state, and the irreversible actions between them.\n\nThen show the user the ordered list of stages and the values each produces, and confirm: they may add, drop, or reorder.\n\n**Done when:** every stage is named in order, and for each captured value you know (a) where the human gets it, (b) where it's written (`.env`, the CI's secret store, both, or nowhere; some stages are pure actions), and (c) whether it's secret (hidden entry) or public.\n\n### 2. Map each stage's journey\n\nFor each stage, write the precise path a human follows: which URL to open, what to do there, where a value is shown, which variable it fills: e.g. \"Dashboard → Developers → API keys → Reveal test key → copy\". Where you don't actually know the current UI or the exact command, say so and ask the user or check the docs: never invent steps that may not exist.\n\n**Done when:** every stage traces to concrete instructions a stranger could follow.\n\n### 3. Author the wizard\n\nCopy [template.sh](template.sh) to `.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` (gitignored; create the directory if it doesn't exist). Replace the example stage with one `stage` per step, in dependency order. Use the library helpers: `stage`, `say`\u002F`step`, `open_url`, `ask`\u002F`ask_secret`, `write_env`, `set_secret`\u002F`set_var`, `pause`\u002F`confirm`. `set_secret`\u002F`set_var` write GitHub Actions only: for any other CI, `open_url` its secret settings and `step` the human through setting each value there. Set `TOTAL_STAGES` to the number of stages you wrote.\n\nHold the bar the template sets: open the URL before asking for its value, use `ask_secret` for anything secret, `write_env` every persisted value, `set_secret` only the values CI actually needs, and `confirm` before any irreversible action. Each `stage` clears the screen so only the current step is visible: keep a stage to one focused task so nothing the human needs scrolls away. Don't touch the library above the marker.\n\n### 4. Verify and hand off\n\n- `bash -n \u003Cscript>`; run `shellcheck` if available.\n- `chmod +x \u003Cscript>`.\n- Don't run it end-to-end yourself: it opens browsers and blocks on human input. Trace it statically instead: every value from step 1 is captured and lands where step 1 said, and every `set_secret` name exactly matches a `secrets.*` reference in CI.\n- Tell the user to run it from the root of the checkout the work runs in (`repos\u002F\u003Cproject>`, or its worktree under `.worktrees\u002F\u003Cproject>\u002F\u003Ctask>\u002F`), since `ENV_FILE=\"${ENV_FILE:-.env}\"` is relative to the working directory, and to call the script by its absolute path so one command works from either: `cd \u003Ccheckout> && bash \u003Cworkspace>\u002F.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` (in Claude Code, with the `!` prefix). If it's a repeatable setup path the user asks for, copy it into the repo's `scripts\u002F`, commit it there, and link it from the README so the next person runs the script instead of asking an AI.\n\n## Attribution\n\nAdapted for this workspace from **Matt Pocock's `wizard`** (github.com\u002Fmattpocock\u002Fskills, MIT).\nChanges: renamed to the `yun-\u003Cverb>-\u003Cnoun>` harness convention; a wizard is written to\n`.yun\u002Fwizards\u002F\u003Cproject>\u002F\u003Cslug>.sh` in the workspace rather than the target repo's scratch or\n`scripts\u002F`, so the hand-off runs it by absolute path from the checkout the work runs in (the\nrepo or its worktree), where its relative `ENV_FILE` must resolve; the skill text names \"the CI's secret store\" rather than GitHub\nby default, since the `gh secret`\u002F`gh variable` helpers apply only where the repo's CI is\nGitHub Actions, and any other CI gets a stage that walks the human through its own secret settings; a dispatched run with no human in the session is a stop, never a wizard left\nwaiting; and `template.sh`'s `ask_secret` gets one added, `# yunque:`-marked line that echoes the\ncaptured secret's length, never its value. The four-step process, its \"Done when\" criteria, the\n\"never hand-edit the library\" rule, and \"ephemeral by default\" are preserved verbatim; the\nlibrary above the `STAGES` marker, including the `gh secret`\u002F`gh variable` helpers themselves,\nis untouched.\n",{"name":5,"description":7},"main","31bfd2af63052d9bb7036b02364637ba5dc70f87","skills\u002Fyun-write-wizard",0,"https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe","The fools will be invencible - \r\n\r\nDevelop developing thoughts","2026-11-13 04:14:30",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add matiinchauspe\u002Fyunque --skill yun-write-wizard",{"tool":38,"command":39},"bunx","bunx skills add matiinchauspe\u002Fyunque --skill yun-write-wizard",{"tool":41,"command":42},"pnpm","pnpm dlx skills add matiinchauspe\u002Fyunque --skill yun-write-wizard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-wizard\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"template.sh","SCRIPT","脚本",9652,"https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-wizard\u002Ftemplate.sh",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7AW7AX7MH2S7GSG6JAD4PQY","yun-write-spec","Write the spec — consolidate a large task's settled decisions into one durable document before it is sliced into tickets. Use when the decisions are settled and the user wants them written up, or says \"write the spec\" \u002F \"escribí el spec\". Declines small fixes that need no spec.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-spec\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7AW76CY32E072H8FKE8PDQ5","yun-write-pr","Write a pull request title and body that show the change — its ticket, its shape, the evidence it works, and how dangerous it is to merge.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-pr\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7AW7291YQKHYGSJKGG1EVVX","yun-write-handoff","Compact the current session into a disposable handoff baton for the next agent, pointing at durable memory instead of duplicating it.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-handoff\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7AW6WXBGGYX7XMWYQFMNCVJ","yun-write-agent-docs","Use when authoring or editing a document an agent reads in this workspace — a skill, a `skills\u002F_shared\u002F` contract, `AGENTS.md` or `skills\u002FREADME.md` — deciding how it is invoked, what lives in it versus a linked file, naming it, or diagnosing why a skill misfires, bloats, or fires unreliably.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-write-agent-docs\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7AW6Q9K91GDDWY0YJMCYSJK","yun-tdd","Test-driven development — the red → green loop, tests written only at pre-agreed seams. Use when the user wants to build a feature or fix a bug test-first, or mentions TDD or red-green. Reached by the implement flow to drive a build at a seam.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-tdd\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7AW6KB515QS77NVG97B6C0A","yun-sync-repo","Bring an external repo into the workspace as work material — cloned into repos\u002F\u003Cname>\u002F, gitignored, with its own .git.","https:\u002F\u002Fgithub.com\u002Fmatiinchauspe\u002Fyunque\u002Fblob\u002Fmain\u002Fskills\u002Fyun-sync-repo\u002FSKILL.md",[],[]]