Install Script Generator logo

Install Script Generator

Community
luongnv89
install-script-generator

Generate cross-platform install scripts for any software or library — a standalone install.sh runnable via a curl/wget one-liner with OS, arch, and package manager detection. Don't use for Dockerfiles, CI/CD pipelines, or one-off shell scripts.

Overview

Publisherluongnv89
Repositoryskills
Skill nameinstall-script-generator
Stars
124
Forks
18
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by luongnv89 on GitHub. Read the source before you install it.

Installation

Install the Install Script Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/luongnv89/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/install-script-generator .claude/skills/install-script-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Install Script Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Install Script Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Install Script Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Install Script Generator

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.

When to Use

  • The user asks for a curl | bash one-liner for their project.
  • A repo needs a install.sh that auto-detects OS, arch, and package manager.
  • A Python/Go/Node/Rust module should be installable in one command from a fresh machine.

Skip this skill for Dockerfiles, CI/CD pipelines, or one-off local shell scripts.

Prerequisites

  • The repo has a known <owner>/<repo> (check git remote -v) and a default branch.
  • The target software's build system is identifiable (Makefile, package.json, setup.py, Cargo.toml, go.mod, etc.).
  • python3 is available locally if you plan to run the helper scripts under scripts/.

Reference Files (read on demand to save tokens)

FileWhen to read
references/install-template.mdWhen generating install.sh — full bash template with detection helpers, dependency installer, and main entry point
references/readme-snippet.mdWhen updating the README — copy-paste install block plus URL format notes
references/edge-cases.mdWhen handling unusual OS/sudo/path scenarios and writing step reports
scripts/env_explorer.pyLocal environment probe (OS, arch, package managers, sudo)
scripts/plan_generator.pyGenerates installation_plan.yaml from env + target
scripts/executor.pyDry-runs installation_plan.yaml with rollback, before Phase 3 generation
scripts/doc_generator.pyRenders 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.

Repo Sync (mandatory before edits)

Before creating, updating, or deleting files in an existing repo, sync the current branch with remote:

bash
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.

Workflow

Phase 1 — Exploration

  1. Identify the target software/module/tool.
  2. Inspect the repo for build files (Makefile, package.json, setup.py, Cargo.toml, go.mod, ...).
  3. List dependencies the software needs to build and run.
  4. Capture <owner>/<repo> and the default branch from git remote -v and git branch --show-current. Ask the user if missing.
  5. Run python3 scripts/env_explorer.py to capture OS, arch, package managers, shell, and sudo availability into env_info.json.

Phase 2 — Planning

  1. Resolve the dependency graph and order operations.
  2. Detect existing installations to avoid duplicate work.
  3. Plan a verification step for each phase.
  4. Plan rollback / cleanup on failure.
  5. Run python3 scripts/plan_generator.py --target "<name>" --env-file env_info.json --deps <dep1> <dep2> ... (pass the dependencies resolved in step 1, space-separated; omit --deps only if there are none) to emit installation_plan.yaml.
  6. Run python3 scripts/executor.py --plan installation_plan.yaml --dry-run and confirm the report lists every step in the intended order with a rollback command present for each. Dry-run skips execution, so this checks the plan's shape, not that installation or rollback actually works.

Phase 3 — Generation (primary output)

Generate install.sh at the repo root using references/install-template.md. The template contains four sections you compose:

  1. Header + colour helpers (info, ok, warn, err, die).
  2. Detection helpers (detect_os, detect_arch, detect_package_manager, need_sudo).
  3. install_deps switch covering apt/dnf/yum/pacman/brew/zypper.
  4. 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).

Phase 4 — Documentation

  1. Insert the install block from references/readme-snippet.md into the project README, substituting <owner>/<repo>/<branch>.
  2. Run python3 scripts/doc_generator.py --target "<name>" --plan installation_plan.yaml to emit USAGE_GUIDE.md.
  3. Print the final one-liner so the user can copy it.

Output Files

FileDescription
install.shPrimary output — standalone installer for curl | bash
install.ps1Optional Windows PowerShell installer
env_info.jsonLocal environment probe
installation_plan.yamlOrdered install steps
USAGE_GUIDE.mdUser-facing docs

Acceptance Criteria

  • install.sh exists at repo root, starts with #!/usr/bin/env bash and set -euo pipefail.
  • Auto-detects OS, architecture, and package manager; exits non-zero with a clear message on unsupported targets.
  • Handles sudo gracefully (root, sudo, or fail-fast).
  • Verifies the installation at the end (command -v $TOOL_NAME plus --version when available).
  • README contains a curl -sSL ... | bash one-liner that resolves to the raw GitHub URL.
  • Expected output on success ends with [ OK ] Installation complete!.

Edge Cases

See references/edge-cases.md for the full list. Highlights:

  • Unsupported OS / architecturedie with the detected value; user sees what failed.
  • No package managerinstall_deps aborts with the manager it expected.
  • No sudoneed_sudo exits with Run as root or install sudo.
  • Windows native — generate install.ps1 separately; install.sh warns under MSYS/Cygwin.
  • Script in subdirectory — adjust the raw URL path; note it in the README snippet.

Step Completion Reports

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.

Expected Output

bash
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!

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Install Script Generator AI skill do?

Generate cross-platform install scripts for any software or library — a standalone install.sh runnable via a curl/wget one-liner with OS, arch, and package manager detection. Don't use for Dockerfiles, CI/CD pipelines, or one-off shell scripts.

Why use Install Script Generator on TypingMind?

Because you install it once and use it with any model. Install Script Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Install Script Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/luongnv89/skills/tree/main/skills/install-script-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Install Script Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Install Script Generator?

As many as you like. As long as a model supports skills, you can use Install Script Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Install Script Generator AI skill free?

Yes. It is published on GitHub by luongnv89 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇