Logo vun Install Script Generator

Install Script Generator

Communautéit
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.

Iwwersiicht

Editeurluongnv89
Repositoryskills
Skill-Numminstall-script-generator
Stären
124
Forks
18
Matgeliwwert Fichieren
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum luongnv89 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Install Script Generator an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/luongnv89/skills/tree/main/skills/install-script-generator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Install Script Generator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Install Script Generator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Install Script Generator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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 / architecture — die with the detected value; user sees what failed.
  • No package manager — install_deps aborts with the manager it expected.
  • No sudo — need_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!

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Install Script Generator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Install Script Generator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Install Script Generator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/luongnv89/skills/tree/main/skills/install-script-generator an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Install Script Generator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Install Script Generator benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Install Script Generator domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Install Script Generator gratis?

Jo. De Skill gëtt vum luongnv89 ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇