skills/install-script-generator/SKILL.md
Generate cross-platform installation scripts for any software, library, or module. Produces a standalone install.sh runnable via a single curl/wget one-liner, with automatic OS, architecture, and package manager detection. Don't use for authoring Dockerfiles, CI/CD pipelines, or one-off local shell scripts.
npx skillsauth add luongnv89/skills install-script-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate robust, cross-platform installation scripts that users can run with a single bash command via GitHub raw URLs. This SKILL.md is a lean index — long templates and tables live under references/ to protect the agent's context budget.
curl | bash one-liner for their project.install.sh that auto-detects OS, arch, and package manager.Skip this skill for Dockerfiles, CI/CD pipelines, or one-off local shell scripts.
<owner>/<repo> (check git remote -v) and a default branch.Makefile, package.json, setup.py, Cargo.toml, go.mod, etc.).python3 is available locally if you plan to run the helper scripts under scripts/.| File | When to read |
|------|--------------|
| references/install-template.md | When generating install.sh — full bash template with detection helpers, dependency installer, and main entry point |
| references/readme-snippet.md | When updating the README — copy-paste install block plus URL format notes |
| references/edge-cases.md | When handling unusual OS/sudo/path scenarios and writing step reports |
| scripts/env_explorer.py | Local environment probe (OS, arch, package managers, sudo) |
| scripts/plan_generator.py | Generates installation_plan.yaml from env + target |
| scripts/doc_generator.py | Renders user-facing USAGE_GUIDE.md |
Do not inline these contents into the conversation; link to them. Keeping SKILL.md short preserves the context window for the actual install logic.
Before creating, updating, or deleting files in an existing repo, sync the current branch with remote:
branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"
If the working tree is dirty, git stash push -u -m pre-sync first, sync, then git stash pop. If origin is missing or rebase/stash conflicts occur, stop and ask the user before continuing.
Makefile, package.json, setup.py, Cargo.toml, go.mod, ...).<owner>/<repo> and the default branch from git remote -v and git branch --show-current. Ask the user if missing.python3 scripts/env_explorer.py to capture OS, arch, package managers, shell, and sudo availability into env_info.json.python3 scripts/plan_generator.py --target "<name>" --env-file env_info.json to emit installation_plan.yaml.Generate install.sh at the repo root using references/install-template.md. The template contains four sections you compose:
info, ok, warn, err, die).detect_os, detect_arch, detect_package_manager, need_sudo).install_deps switch covering apt/dnf/yum/pacman/brew/zypper.install_<tool> (customised per target), verify_installation, and main.Read references/install-template.md for the exact code; do not paste it into chat. If Windows support is needed, also generate install.ps1 (one-liner: irm <raw_url> | iex).
references/readme-snippet.md into the project README, substituting <owner>/<repo>/<branch>.python3 scripts/doc_generator.py --target "<name>" --plan installation_plan.yaml to emit USAGE_GUIDE.md.| File | Description |
|------|-------------|
| install.sh | Primary output — standalone installer for curl \| bash |
| install.ps1 | Optional Windows PowerShell installer |
| env_info.json | Local environment probe |
| installation_plan.yaml | Ordered install steps |
| USAGE_GUIDE.md | User-facing docs |
install.sh exists at repo root, starts with #!/usr/bin/env bash and set -euo pipefail.sudo gracefully (root, sudo, or fail-fast).command -v $TOOL_NAME plus --version when available).curl -sSL ... | bash one-liner that resolves to the raw GitHub URL.[ OK ] Installation complete!.See references/edge-cases.md for the full list. Highlights:
die with the detected value; user sees what failed.install_deps aborts with the manager it expected.need_sudo exits with Run as root or install sudo.install.ps1 separately; install.sh warns under MSYS/Cygwin.After each phase, emit a ◆ block with √/× checks and a Result: PASS | FAIL | PARTIAL line. The exact templates for the four phases live in references/edge-cases.md so you can copy them verbatim without bloating SKILL.md.
curl -sSL https://raw.githubusercontent.com/owner/mytool/main/install.sh | bash
Expected runtime banner:
[INFO] OS: linux | Arch: x86_64 | Package Manager: apt
[ OK ] Dependencies installed
[ OK ] mytool 1.2.0 installed successfully
[ OK ] Installation complete!
documentation
Manage software releases end-to-end: bump version, generate changelog, tag, push, GitHub release, publish to PyPI/npm. Use when user asks to ship, cut a release, tag a version, or list changes since last tag. Skip routine commits and marketplace publishing.
development
Review UI for usability issues using Steve Krug's principles and produce a scannable report. Use when asked for a usability audit, UX review, or UI feedback on screenshots, URLs, or code. Don't use for visual/brand design critique, accessibility (WCAG) audits, or backend/API review.
development
Validate app/startup ideas with market, feasibility, commercial, and open-source competitor analysis. Use when asked to evaluate, validate, or score a product idea. Don't use for PRDs, go-to-market plans, or investor decks.
testing
Install local-first security hardening: pre-commit secret detection, offline dependency scans, static analysis, reports, and gated free CI. Use when hardening repos or adding security hooks. Don't use for incident response or cloud security reviews.