/agentic-installer:setup-runfrom agentic-installer
Executes a setup.aiwg.io/v1 SetupManifest for cross-platform project installation. Handles validation, platform detection, param collection, and step-by-step execution.
Ships in agentic-installer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Execute a setup.aiwg.io/v1 SetupManifest, performing cross-platform installation step by step.
This skill executes deterministic manifests. If
metadata.execution_mode: provider-orchestrated, validate the manifest and
hand it to the current supported AI provider; do not begin deterministic CLI
execution.
For AIWG's public installer, keep the provider in control of bootstrap and
repair. Once the CLI is healthy, use aiwg setup --scope project --providers <provider> for the interview, aiwg setup --review for a read-only preview,
and aiwg setup --apply after approval. These guided commands operate on a
saved plan, not a SetupManifest. Headless interview uses the same answer flags
with --non-interactive; headless apply requires --yes. See the
guided setup reference.
Path to the setup.manifest.yaml. Default: ./setup.manifest.yaml.
Print what would be executed without running any scripts.
Override platform detection: linux, macos, windows, wsl2.
Override distro detection: ubuntu, debian, fedora, arch, etc.
Path to a YAML file with pre-set param values (avoids interactive prompts).
Run only a specific step by id. Useful for resuming after failure.
Comma-separated step IDs to skip.
Filter which manifest to run by install type: user, developer, or ci.
When --type developer is specified and no manifest path is given, the skill looks for installer/setup.dev.manifest.yaml before falling back to setup.manifest.yaml.
When --type user is specified, the skill looks for installer/setup.user.manifest.yaml.
setup.aiwg.io/v1 schema (run setup-validate internally)uname -s (Linux/Darwin) or $PSVersionTable (Windows)/etc/os-release → ID fielduname -m$SHELL or $0platform block — if no match, warn and ask to proceed or abortFor each param in manifest params:
--params-filerequired: true and no value: prompt interactivelyinteractive_required: true: always prompt interactively, even if a default exists — do not use the default without askingchoices list present: validate input against choices~ and $HOME in type: path paramsFor each prerequisite:
detect commandversion_min set: compare version output against minimuminstall_hint and stop with non-zero exitWhen metadata.install_type is developer and the manifest has an os_config block:
os_config entry's check commandcheck returns non-zero (needs configuration)[setup] OS Configuration Required
The following OS-level changes will be made:
• docker-group: Add user 'alice' to docker group (requires re-login)
• inotify-watches: Set fs.inotify.max_user_watches=524288
These changes require elevated privileges (sudo).
os-config steps:
Proceed with OS configuration? [y/N]:
os-config steps and warn that the environment may be incomplete.Never apply OS mutations without this explicit confirmation. This is a separate gate from the normal params phase.
Execute steps in dependency order:
For each step (respecting depends_on order):
1. Evaluate `when` condition — skip step if false
2. Skip steps not applicable to current platform
3. Dispatch by step type:
- script: run the script with params as env vars
- detect: run detect command, set env var with result
- ask: prompt user, set param
- verify: run verify expression; fail if false
- agentic: delegate to installer-agent with instruction
- platform-route: resolve platform → script path, run script
- chain: run aiwg setup-run on sub-manifest
- os-config: run the referenced os_config entry (see below)
4. Run `verify` expression if present
5. On failure:
a. Check recovery_procedures for a matching trigger
b. If found: show recovery plan and ask user to confirm before running
c. If not found or recovery fails: report step ID + error, stop
When executing an os-config step:
config_id in the manifest's os_config blockcheck command — if exit 0, print "already configured" and skipinteractive: true:
apply command will do[setup] Interactive step: xcode-cli-tools
This will trigger the Xcode Command Line Tools installation dialog.
Acknowledge and continue? [y/N]:
apply commandrequires_relogin: true:
[setup] NOTICE: docker-group requires re-login to take effect.
Log out and back in, then re-run setup-run with --step <next-step-id>
to continue from where you left off.
Continue (if you have already re-logged in)? [y/N]:
[setup] Installation complete
Steps run: 4/4
Steps skipped: 0
Duration: 45s
Installed to: /opt/myapp
Config dir: ~/.config/myapp
Run `myapp --version` to verify.
For developer installs, also report:
[setup] Developer environment ready
OS config applied: docker-group, inotify-watches
Re-login required: docker-group (log out and back in)
Dev server: http://myapp.local:3000
[setup:dry-run] Would execute: setup.manifest.yaml
Platform: linux/ubuntu/x86_64
Install type: developer
OS Config (2 entries, 1 needs configuration):
✓ docker-group: already configured
✗ inotify-watches: needs configuration (current: 8192, required: 524288)
Step 1: clone (script)
script: installer/scripts/clone.sh
env: INSTALL_DIR=/opt/myapp BRANCH=main
verify: test -d ${INSTALL_DIR}/.git
Step 2: apply-inotify (os-config)
config_id: inotify-watches
platform: linux
Step 3: configure-dev (script)
script: installer/scripts/dev/configure-dev.sh
Step 4: verify-dev (script)
script: installer/scripts/dev/verify-dev.sh
When a step fails and a recovery procedure matches:
[setup] Step 'clone' failed:
Error: destination path already exists and is not empty
Recovery procedure 'full-reset' is available:
This will: remove /opt/myapp and re-clone from git
Proceed with recovery? [y/N]: _
Never run destructive recovery steps without explicit user confirmation.
When a step has type: agentic, the skill delegates to installer-agent with the step's instruction field as context, plus:
The installer-agent must explain what it detects and what it will do before making changes.
${CLAUDE_PLUGIN_ROOT}/schemas/v1/setup-manifest.schema.json${CLAUDE_PLUGIN_ROOT}/agents/installer-agent.md${CLAUDE_PLUGIN_ROOT}/scripts/lib/${CLAUDE_PLUGIN_ROOT}/skills/setup-generate/SKILL.mdWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin agentic-installer4 skills in this plugin
/cockpit-headless-deployGuide or repair a headless Linux AIWG Cockpit plus Agentic Sandbox deployment when host topology, SSH access, service persistence, or runtime readiness must be planned safely./setup-generateGenerate a `setup.manifest.yaml` file for a project using the `setup.aiwg.io/v1`/setup-validateValidate a `setup.aiwg.io/v1` SetupManifest file against the schema and run consOther plugins' skills for the same job