/agentic-tools:validate-installfrom agentic-tools
Proves a repo's README install instructions work on fresh Linux, Windows, and macOS machines by running them literally on EC2 and local VMs, fixing what breaks, and cleaning up.
Ships in agentic-tools. 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.
Read when SKILL.md points to them; scripts run unread.
You are an orchestrator answering one question: can a stranger clone this repo, follow the README, and end up with a working install? You answer it by running the README literally on brand-new machines, fixing what breaks, and leaving nothing running afterwards.
/validate-install [--targets linux,windows,mac] [--distro ubuntu|arch|amazon]
[--instance-type t3.large] [--region <r>] [--readme <path>]
[--ttl-hours 2] [--keep] [--yes]
--targets defaults to linux. linux and windows run on EC2. mac runs as a local VM through tart, or through UTM's utmctl when tart is missing.--distro applies to Linux and defaults to ubuntu (24.04). amazon is Amazon Linux 2023.--readme defaults to README.md at the repo root.--keep leaves resources running after the report and prints the exact cleanup command.--yes skips the single cost confirmation.All helpers live in scripts/ next to this file. Every script uses set -euo pipefail and documents its usage in its header comment.
The agent runs from the user's repo, not from this skill's directory, so always call the helpers by absolute path: "${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/<name>.sh", as written in every command below. If CLAUDE_PLUGIN_ROOT is empty in the shell, substitute the skill's base directory that was shown when this skill loaded, followed by /scripts/<name>.sh. Bash tool calls do not share shell variables, so the commands below write the run id as <run-id>. Replace it in each command with the literal run id that preflight printed, for example --run-id vi-20260101120000-abcd, and also write the literal path if you substituted it. Do not rely on a $RUN_ID variable from an earlier call.
The Bash tool stops a foreground command after 120 seconds by default and after at most 600 seconds. Provisioning can take about 10 minutes (Windows longer), and a step's default --timeout is 1800 seconds, so plan for that:
provision-ec2.sh and mac-vm.sh create with run_in_background: true, then poll their output, or use a monitor, until the script prints SCOPE=<scope> or exits. Running several targets this way also gives you the parallelism Phase 3 asks for.timeout: 600000 and give remote-exec.sh a --timeout below 600 (for example --timeout 570), so the script times out and writes its transcript before the tool gives up.run_in_background: true and its normal --timeout, then poll until it exits and read ~/.cache/agentic-tools/validate-install/<run-id>/transcripts/<scope>/step-NN.log.teardown.sh in the foreground with timeout: 600000. If it has not printed VERIFIED by then, run it again; it is idempotent.A background job can be killed, for example when the session ends, and then the script's own cleanup trap may never run. Teardown still happens: every EC2 instance terminates itself when its TTL ends, and teardown.sh --orphans removes everything else that carries the run tag (security groups, key pairs, volumes, the IAM role and profile, and local VMs) once that run's expires-at has passed. If you notice that a background provision or step job died, run teardown.sh --run-id <run-id> for that run right away instead of waiting for the TTL.
AWS credentials come from the environment the user already has: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY exported in the shell profile (for example ~/.zshrc), or AWS_PROFILE pointing at a CLI profile. The scripts rely on the AWS CLI's normal credential chain.
aws configure --profile <name> in their own terminal, then restart the session.env, printenv, or set -x in a session that has AWS keys loaded.remote-exec.sh --pass-env VAR. The value travels over the SSH stream, is never written to the remote session file, and is redacted from transcripts. On Windows, prefer the README's local-model path, because SSM stores command text in AWS history.references/iam-policy.md."${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/preflight.sh" --targets linux,windows --instance-type t3.large --region us-east-1 --ttl-hours 2
The script verifies aws sts get-caller-identity, resolves the region, reads the caller's public IP, looks up the instance type's vCPU and RAM, reads the standard on-demand vCPU quota (L-1216C47A), counts already-tagged instances, and prints a cost estimate for one attempt and for the worst case of three attempts. It creates nothing in AWS. It writes run.env under ~/.cache/agentic-tools/validate-install/<run-id>/ and prints RUN_ID=vi-YYYYMMDDHHMMSS-xxxx.
Show the user the account, region, targets, instance type, TTL, tag, and cost estimate. Ask for one confirmation before the first launch unless --yes was passed. Do not ask again for re-provisioning within the same run.
Every resource created in this run carries the tag agentic-tools:validate-install=<run-id>, plus a scope tag and an agentic-tools:expires-at timestamp. The timestamp is computed for each attempt when it is provisioned (launch time plus the TTL plus a 20 minute boot allowance), so a later attempt is never mistaken for an expired one. Every EC2 instance gets a hard TTL: user data schedules a shutdown at the TTL and the instance's shutdown behavior is terminate, so it deletes itself even if this session dies.
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/extract-readme-steps.sh" README.md
The script prints each command from shell-tagged code fences in order, with its section heading, and flags heuristics: UNDOCUMENTED_ENV, UNSTATED_PREREQ, INTERACTIVE, PLACEHOLDER, and SKIPPED_FENCE. It skips fences tagged with a non-shell language, and untagged fences that look like program output or a file tree; check each SKIPPED_FENCE line against the README. A heredoc or a backslash-continued command stays one step. The command field is escaped to fit on one line (\\ for a backslash, \n for a newline, \t for a tab), so decode it, for example with printf '%b', and pass the original multi-line text to remote-exec.sh. Read the README yourself as well and confirm or dismiss each flag. Build a per-target step list that keeps the README's wording exactly. Where the README branches by OS, take the branch for that target. Where it offers a choice (an API key or a local LLM), validate the path a new user is most likely to take and note the others.
Report every assumption the README never states before running anything, for example a required tool version, a system package, an env var the code reads, or a step that only works from inside the cloned directory.
Run targets in parallel when there is more than one.
Run each of these with run_in_background: true, as described under "Long-running commands".
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/provision-ec2.sh" --run-id <run-id> --target linux --distro ubuntu --attempt 1
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/provision-ec2.sh" --run-id <run-id> --target windows --attempt 1
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/mac-vm.sh" create --run-id <run-id> --attempt 1 --memory-gb 8
/32. The key is ed25519, except on Arch, where it is RSA 4096 because cloud-init on the Arch images does not accept EC keys.--distro arch, the script resolves the newest community image from the arch-ami-list.drzee.net API and logs the image's owner account and name; tell the user it is a community image. If the API cannot be reached or has no image for the region, the script stops and asks for AMI_ID (an image the user trusts) or ARCH_AMI_OWNER (an owner account the user has verified). Never guess an owner account./agentic-tools/validate-install/.DeleteOnTermination=true. Instances require IMDSv2.<run-id>-mac-a<N> acts as its tag.If provisioning fails or is interrupted, the script's own trap tears down everything it created for that scope.
Run each step through remote-exec.sh, one call per step, passing the command text verbatim on stdin:
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/remote-exec.sh" --run-id <run-id> --scope linux-a1 --step 3 --timeout 570 <<'STEP'
git clone https://github.com/owner/repo && cd repo
STEP
The working directory and exported variables persist between steps, as they would in one terminal. Each step runs in the interactive login shell that a new user gets when they open a terminal: bash -il on Linux, which reads ~/.profile or ~/.bash_profile and ~/.bashrc, and zsh -il on macOS, whose default shell is zsh, which reads ~/.zprofile (where Homebrew writes brew shellenv) and ~/.zshrc (where bun and nvm write their lines). PATH lines that installers add to these files therefore take effect in later steps, and a README line such as source ~/.zshrc runs under zsh as it would for the user. A directory that an earlier step prepended to PATH keeps its precedence in later steps. Every step writes a transcript to transcripts/<scope>/step-NN.log containing the command, output, exit code, and duration. Stop a target at its first failing step. Do not improvise extra commands to get past a failure, because that hides the bug a stranger would hit. The only allowed additions are the README's own documented answers to interactive prompts, and the report must name each one.
After the last step, run the README's own "verify" or "usage" command. If the README has none, run the smallest real use of the tool and record that the README lacks a verification step.
Classify each failure as a README bug, a code bug, or an environment problem using references/failure-triage.md. Then:
fix/validate-install-<run-id> in the repo when it is writable. Otherwise write the proposed patch into the report.--attempt number and run every step again from step 1. Never reuse the machine that failed."${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/teardown.sh" --run-id <run-id> --scope linux-a1.Environment problems get a retry with an adjusted run (bigger volume, another region) and are recorded, but they never change the repo.
When the README offers a local-model path such as ollama, validate it on each target with models that fit the instance RAM. Sizing guidance is in references/failure-triage.md. A t3.large (8 GiB) fits only 3B-class models, so suggest --instance-type t3.xlarge or larger when the README's recommended model is 7B or above, and include the price difference in the estimate.
Install validation: <repo> @ <commit> run <run-id> region us-east-1
| Target | Result | Attempts | Failing step | Class |
|-----------------|--------|----------|-------------------------|------------|
| linux (ubuntu) | PASS | 2 | - | - |
| windows 2022 | FAIL | 3 | 4: npm run build | code bug |
| mac (sequoia) | PASS | 1 | - | - |
README assumptions found: Node 20 not listed as a prerequisite; OPENAI_API_KEY never explained.
Fixes: branch fix/validate-install-<run-id>, 2 commits (README prereqs, installer path quoting).
Local LLM: llama3.2:3b answered on linux and mac.
Cost: about $0.41 (3 instance-hours of t3.large, 1 of Windows t3.large).
Transcripts: ~/.cache/agentic-tools/validate-install/<run-id>/transcripts/
Teardown: VERIFIED, 0 resources tagged agentic-tools:validate-install=<run-id> remain.
Compute cost from actual instance launch and termination times multiplied by the hourly price used in preflight.
Treat Phases 3 through 7 as a try block and teardown as its finally. Run it on success, on failure, on a blocked step, when the user interrupts, and when you decide to stop early:
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/teardown.sh" --run-id <run-id>
It terminates instances and waits for them, then deletes security groups, key pairs, leftover volumes, the IAM instance profile and role, the local VM, and the local private keys. It then re-queries by tag and prints VERIFIED: 0 resources ... remain, or lists what remains and exits 1. It is idempotent, so run it again until it verifies. It touches only resources whose run tag equals this run id. The final report must quote the verification line.
With --keep, skip teardown, say that the EC2 TTL still terminates the instances at expires-at, and print the exact command: "${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/teardown.sh" --run-id <run-id> --region <region>, with the variable expanded to the real path so the user can paste it into their own terminal.
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/teardown.sh" --orphans --all-regions --dry-run # list what would be deleted
"${CLAUDE_PLUGIN_ROOT}/skills/validate-install/scripts/teardown.sh" --orphans --all-regions # delete it, then verify
Orphan mode finds every run id carrying the tag key. It skips a run while the latest expires-at of any of its attempts is still in the future, because another session may be using it, unless --include-active is passed. An attempt whose instance is already terminated is over, so the expiry tags on its leftover resources do not keep the run from being swept.
--yes.evals/evals.json (opens in a new tab)references/failure-triage.md (opens in a new tab)references/iam-policy.md (opens in a new tab)scripts/extract-readme-steps.sh (opens in a new tab)scripts/lib.sh (opens in a new tab)scripts/mac-vm.sh (opens in a new tab)scripts/preflight.sh (opens in a new tab)scripts/provision-ec2.sh (opens in a new tab)scripts/remote-exec.sh (opens in a new tab)scripts/teardown.sh (opens in a new tab)tests/offline-test.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
install-validation, readme-testing, fresh-machine, vm-testing, ec2
Other plugins' skills for the same job
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR./captureTurn a failure — a bug, a bad output, a prod incident, a verdict FAIL — into a minimal, reproducible eval level added permanently to the suite, so the same failure can never silently return. Builds the eval flywheel. Trigger: capture this failure, add a regression eval, this bug came back, turn this into an eval, failure to level, lock in this fix, reproduce this failure./chain-riskCompute compounding-error risk for a multi-step or multi-agent pipeline — per-step success rate raised to step count — and show where cumulative reliability falls below target, so you know where to place gates and checkpoints. Trigger: chain risk, compounding error, how reliable is this pipeline, where do I add gates, reliability math, why does my agent fail over long runs, step count risk./constitutionPin a north-star constitution for a multi-agent system and protect the prompt layer from tampering — detect and block unauthorized system-prompt mutation and prompt-injection that tries to redirect downstream agents. Trigger: pin the constitution, north star, protect the system prompt, prompt integrity, stop prompt tampering, agent alignment guardrail, injected intent.