Generate .wiiz/wizard.yaml and .wiiz/values.example.json for repository onboarding with wiiz. Use when a user wants to create or update onboarding wizard config from an existing repository's setup requirements, environment variables, and developer workflows.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Generate .wiiz/wizard.yaml and .wiiz/values.example.json for repository onboarding with wiiz. Use when a user wants to create or update onboarding wizard config from an existing repository's setup requirements, environment variables, and developer workflows.
wiiz YAML Author
Build onboarding config that works with wiiz.
Workflow
Inspect repository setup sources.
Read README, CONTRIBUTING, setup docs, .env.example, docker compose files, package scripts, and CI configs.
Extract required environment variables, selectable options, and file mutations needed for a first-time setup.
Define prompt variables first.
Add input steps for free-text values.
Add select steps for constrained values.
When a trustworthy default is known, set input.default instead of forcing users to retype it. Example: use http://localhost:3000 for a common local dev URL when that matches the repo's normal setup.
When input.default is set, make the prompt wording clear that leaving the field empty will use that default.
For env-related prompts, set envFile (and optional envKey) to allow keep/replace from existing files.
Sensitivity defaults: prompts are sensitive by default. Set sensitive: false only for non-secret values where full preview is useful.
Keep identifiers stable: use uppercase variable names and kebab-case step ids.
Prefer required inputs unless a default is trustworthy.
Write prompt messages as actionable instructions, not labels. Each prompt should tell the user what value to enter and enough context to understand why it is needed.
If a value is not obvious, add nearby note or display guidance that explains where to find it, how to generate it, or what it affects.
Define operation steps after prompts.
If the wiiz binary is installed, use it directly. Otherwise use bunx wiiz or npx wiiz.
Use wiiz help list (or bunx wiiz help list / npx wiiz help list) to discover supported primitives before choosing a step type.
If you are unsure about a primitive's fields, defaults, validation, or parameter combinations, run wiiz help <primitive> (or the equivalent bunx / npx form) and follow that output exactly.
Do not invent primitive names or field shapes when wiiz help can answer the question.
Use env.write for .env generation.
env.write shape: define path, entries (key + string value template), and optional overwrite.
env.write fails on existing files unless overwrite: true.
With overwrite: true, env.write updates known keys in an existing env file, preserves unrelated lines, and appends missing keys.
env.write writes values containing spaces or tabs with double quotes automatically.
Use command.check to verify required tooling before file operations.
Use command.run for optional setup commands that need user consent.
In non-interactive (--values) runs, command.run is skipped by default.
Use confirm checkpoints before risky operations when explicit user acknowledgement is needed.
For confirm, optional var stores decision as yes/no for later when or interpolation.
confirm defaults: in non-interactive mode, omitted default behaves as no; declined confirmation aborts unless abortOnDecline: false.
Use match to branch into one nested path based on a previously collected variable.
match shape: define var, a non-empty cases array, and optional default.steps.
Each match case must define exactly one of equals or oneOf, plus a non-empty nested steps array.
In non-interactive runs, only the selected match branch needs values.
Do not reference variables that are collected only inside one match branch from later top-level steps.
Use group to bundle nested steps under shared wrapper settings.
group shape: define a non-empty steps array, plus optional when and optional cwd.
group.cwd changes the base directory for nested file paths, env file reads/writes, banner paths, and command execution.
group only shares wrapper settings; nested steps still use their normal primitive fields and behavior.
Variables collected inside match or group nested steps can be used by later steps inside the same nested branch/block.
Use display/note for short inline guidance.
Use ascii/banner for section headers in terminal output. Prefer path when reusing large ASCII art.
Use file.write for full-file templates.
Use file.append for additive setup notes.
Optional when condition gates step execution based on prior prompt variables.
when supports: var (required) plus equals, notEquals, oneOf, and/or exists.