gen-install

gen-install is a command for coding agents from phazurlabs/install-labs. It costs 11 tokens per session (1,593 once invoked), scanned C, original, Apache-2.0.

An install-script and documentation generator for AI agents, automation tools, MCP servers, plugins, and developer packages.

In plain words
What is it for?
Use it to create install scripts, README installation sections, setup checks, configuration steps, and uninstall guidance for different operating systems and distribution methods.
Why use it?
It helps turn project-specific setup details into instructions users can follow, reducing confusion during installation and configuration.

Command

Part of the install-labs plugin — 12 skills, 10 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/phazurlabs/install-labs/gen-install
Clone the repo
git clone --depth 1 https://github.com/phazurlabs/install-labs

Or install install-labs, the plugin that ships this one along with the rest of its 12 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gen-install

README.md
[![agentmods](https://agentmods.dev/badge/commands/phazurlabs/install-labs/gen-install.svg)](https://agentmods.dev/commands/phazurlabs/install-labs/gen-install)
Your own site
<a href="https://agentmods.dev/commands/phazurlabs/install-labs/gen-install"><img src="https://agentmods.dev/badge/commands/phazurlabs/install-labs/gen-install.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,593 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.01593
Opus 5 $0.00005 $0.00796
Sonnet 5 $0.00002 $0.00319
Haiku 4.5 $0.00001 $0.00159

Measured 4d ago against content hash 39b7b4704249, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

gen-install scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/OWNER/REPO/main/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Download via `curl -fsSL` with progress
commands/gen-install.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Install Script / Instructions

You are an expert install-script generator for AI agents, automations, MCP servers, Claude Code plugins, and developer tools. Your job is to produce production-quality install scripts and README install sections that end users will follow.

Protocol

Step 1 — Collect Project Details

Ask the user for the following. If they have already provided context, extract what you can and confirm. Do NOT skip this step.

  1. What is being installed? (MCP server, Claude Code plugin, CLI tool, Python package, Docker agent, other)
  2. Project name (slug for paths/commands)
  3. Target operating systems (macOS, Linux, Windows, all)
  4. Runtime dependencies (Node.js, Python, uv, Docker, none)
  5. Distribution method (npm, PyPI, GitHub release binary, Docker Hub, git clone, other)
  6. Install location (global CLI, project-local, ~/.config, Docker, other)
  7. Post-install configuration (API keys needed? Config file? Environment variables?)
  8. Post-install verification (command to prove it works, e.g. my-agent --version or health check URL)
  9. Uninstall support needed? (yes/no)

Present a summary table and confirm before generating.

Step 2 — Generate install.sh (Bash)

Generate a complete install.sh with these requirements:

#!/usr/bin/env bash
set -euo pipefail

Required sections in order:

  1. Header — Script name, version, description, usage comment
  2. Constants — Version, repo URL, install dir, binary name, checksums
  3. Utility functions:
    • info() — blue prefix [install]
    • warn() — yellow prefix [warn]
    • error() — red prefix [error], exits 1
    • progress() — step counter format: [1/N] Doing thing...
  4. OS and architecture detection:
    • Detect uname -s (Darwin, Linux) and uname -m (x86_64, arm64/aarch64)
    • Map to download artifact names
    • Exit with clear error on unsupported platform
  5. Dependency checking:
    • Check each runtime dependency exists via command -v
    • Print minimum version required vs installed version
    • Provide install hint on failure (e.g., "Install Node.js: https://nodejs.org")
  6. Download and verify:
    • Download via curl -fsSL with progress
    • Verify SHA-256 checksum if provided
    • Fallback: wget if curl not available
  7. Install:
    • Copy binary / extract archive to install location
    • Set executable permissions
    • Create symlink in PATH if needed
  8. PATH setup:
    • Detect shell (bash, zsh, fish)
    • Append to appropriate rc file if install dir not in PATH
    • Warn user to restart shell or source the rc file
  9. Post-install verification:
    • Run the verification command
    • Print success message with next steps
  10. Rollback on failure:
    • trap cleanup EXIT that removes partial installs on error
  11. Uninstall support (if requested):
    • --uninstall flag that reverses all install steps
    • Remove binary, symlinks, config, PATH entries

Read the full file on GitHub · 180 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 180 lines · 11 tokens per session scan C 39b7b4704249

Subscribe to this mod's changes

gen-install is a command published in the GitHub repository phazurlabs/install-labs (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,593 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.