Command Palette

Search for a command to run...

Назад к скиллам
скилл № 63965

installer-script

Procedure for writing, auditing or reworking a one-line installer, either an install.sh run as curl piped to sh or an install.ps1 run as irm piped to iex…

БесплатноЗапускает вложенные скрипты
ocx-shот ocx-sh★ 20 звёзд на GitHub

Установить installer-script в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

installer-script

An installer is code a stranger pipes into an interpreter with no review, on a host you have not seen, over a connection that can be cut. This skill carries the procedure only. The standards live in the shell-quality rule (installers.md) and the powershell-quality rule (security.md), and this skill cites them by ID. It ships a template for each kind and a behavioural kit that runs the finished file, because linters do not see these defects.

Every result here was measured on 2026-10-11 with dash 0.5.12, busybox ash 1.35 and 1.37, mksh R59c, ksh93u+m, yash 2.52, posh 0.14.1, bash 3.2 and 5.2 --posix, zsh 5.9 --emulate sh, Windows PowerShell 5.1.26100.9444 and PowerShell 7.4.7 and 7.6.6 (7.4 reached end of support on 2026-11-10). macOS, BSD and a .NET Framework older than 4.8.1 are unverified: read only. The rows that were provisional (SH-INST-22, SH-INST-23, PS-COMPAT-11, PS-SEC-14) were confirmed on 2026-10-11 against fresh third-party installers (the chezmoi install.sh and install.ps1, the golangci-lint install.sh, a cargo-dist 0.25.2 installer pair) and BusyBox 1.37.0 wget, each cell red on its plant and green on its twin.

Contents: Scope · Step 0: classify · Step 1: header first · install.sh steps · install.ps1 steps · Generated installers · Run the kit · The receipt · MUST rows · SHOULD rows · What agents get wrong

Read When
references/install-template.sh Writing an install.sh: copy it, rename toolx and TOOLX_, set the base URL
references/install-template.ps1 Writing an install.ps1 for irm | iex
references/installer-kit.py Proving an install.sh: nine checks against stub tools in a throwaway HOME
references/installer-kit.ps1 Proving an install.ps1: host survival under iex, tamper before extraction
references/cargo-dist-audit.sh Auditing a generated installer: the static checklist rows
references/cargo-dist-profile.json Pointing the kit at a generated installer

Scope

Deliverable Delivered by Floor Steps
install.sh, hand-written curl ... | sh -s -- or download then run POSIX sh: dash 0.5.12, busybox ash 1.37, bash 3.2 --posix 0, 1, install.sh steps, kit
install.ps1, hand-written irm URL | iex, powershell -File Windows PowerShell 5.1 (pinned decision, adopter may override) 0, 1, install.ps1 steps, kit
Either, generated (cargo-dist 0.33.0) A release job renders it Whatever the generator emits Generated installers

Out of scope: an installer that must be root by design (a package-manager dispatcher). It is labelled in its header and checked for the narrowest escalation under SH-INST-23. Shell-init and completion emitters are shell-integration. The rc edit an installer performs follows that skill's rules (SH-EMIT-16, 18, 19). What its last success line says is UX-CLI-14 in the ux-cli skill.

Run the kit only on a file you may execute. It never touches the network or the real HOME, and it starts the installer under env -i with a throwaway HOME, TMPDIR and PATH (SH-CORE-16).

Step 0: classify

Decide hand-written or generated before anything else. A generated file is audited and never edited, because the next render erases the edit.

INSTALLER=install.sh   # rename
grep -n -i -e 'cargo-dist' -e 'generated by' -- "$INSTALLER"

A hit means generated, so go to Generated installers. No hit means hand-written, so continue.

Step 1: header first

Write the header before any code. It is the contract the kit and a reader check. Both templates show the shape.

Header line Carries Rule
Usage one-liner curl --proto '=https' --tlsv1.2 -fsSL URL | sh -s -- [options], or irm URL | iex SH-INST-01, PS-SEC-07
Floor Interpreters it was tested on, ASCII only SH-DIAL-04, SH-GATE-16
# Exit: table 0 ok, 1 generic, 2 usage or missing tool, 3 network, 4 checksum, 5 extract, 6 setup, 7 platform, 129 130 143 signals SH-INST-09
Options and environment Every flag, every *_INSTALL_* variable SH-INST-19
Integrity class pinned, manifest from another origin, sidecar from the same origin, signature, none SH-INST-04, PS-SEC-02

State the integrity class in the words the code earns. A same-origin sidecar "detects corruption, not a hostile origin". Never write "verifies" for a check the file does not perform (SH-INST-04, PS-SEC-03).

install.sh steps

Start from [references/install-template.sh](reference

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/cargo-dist-audit.sh
  • references/cargo-dist-profile.json
  • references/install-template.ps1
  • references/install-template.sh
  • references/installer-kit.ps1
  • references/installer-kit.py

FAQ

Что делает скилл installer-script?

Procedure for writing, auditing or reworking a one-line installer, either an install.sh run as curl piped to sh or an install.ps1 run as irm piped to iex, including a generated cargo-dist installer. Covers the header and exit table, truncation-safe structure, downloader probes, integrity before extraction, platform detection, prompts, user-space install, PATH edits, and the behavioural kit that runs the installer against stubs on several interpreters and PowerShell engines. Use when someone asks to "write an install.sh", "write an install.ps1", "make a curl | sh installer", "irm | iex installer", "audit this installer", "does the installer verify the checksum", "cargo-dist installer", "installer fails on alpine or busybox wget", "installer killed my PowerShell window", "truncated download ran half the script", or "ship an installer script". Not for porting an ordinary script (shell-port), diagnosing a failing script (shell-diagnose), or shell-init and completion emitters (shell-integration).

Как установить скилл installer-script?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл installer-script запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить installer-script с