/new-installer:new-installerfrom new-installer
Scaffold a new one-shot self-removing installer command for any Claude Code plugin marketplace or as a standalone slash command. The generated command runs a set of bash steps, verifies success, then removes itself — leaving no residual token cost once the thing is installed. Use when adding any software, extension, or tool that only needs to be set up once per machine. Trigger phrases: "new installer", "add an installer", "one-shot install", "make an install command", "/new-installer".
Ships in new-installer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scaffolds a self-removing installer slash command. Works in two modes:
username/my-plugins). Users install with /plugin install <name>@<marketplace> and self-removal uses /plugin uninstall..md file to drop into .claude/commands/ (project-local) or ~/.claude/commands/ (global). Self-removal deletes the file via bash.A one-shot installer is a slash command that:
Ask for all of these in one message before doing anything:
alice/my-plugins) and the short plugin name?.claude/commands/) or global (~/.claude/commands/)?install- to signal one-shot intent (e.g. install-gnome-usage, install-volta), but not required.mkdir -p, clone URLs, symlink targets, enable/activate commands exactly as they should run.gnome-extensions show <uuid>, which <binary>, <tool> --version, systemctl status <service>). If none is obvious, ask.Do not proceed until you have all of these.
plugins/<name>/
.claude-plugin/plugin.json
commands/<name>.md
plugin.json — populate author from git config user.name and git config user.email; ask for a URL if the user has one:
{
"name": "<name>",
"description": "<one-sentence description>. Self-removes after install.",
"author": {
"name": "<git user.name>",
"url": "<author url, or omit field if none>"
}
}
commands/<name>.md:
---
description: <one-sentence description>. Self-removes after install.
allowed-tools: Bash
---
Install <what it installs> by running these steps in order:
1. <step 1 description>:
```
[... remaining steps ...]
N. Verify the install succeeded:
<verification command>
Report the output to the user. If it indicates failure, stop here — do not proceed to removal.
N+1. Self-remove this one-shot installer:
/plugin uninstall <name>@<marketplace-handle>
Tell the user what was installed and that the installer has been removed.
### README entry
If the repo has a `README.md` with a plugin table, add a row. Match the existing table format. If no table exists, add a `## Installers` section with a new one:
```markdown
| [`<name>`](plugins/<name>/) | One-shot installer for <what>. Self-removes after install. |
git add plugins/<name>/ README.md
git commit -m "feat(<name>): add one-shot installer for <what>"
git push
Use whatever branch the repo is currently on.
Generate a single file. Ask where to place it:
.claude/commands/<name>.md — available only in this project~/.claude/commands/<name>.md — available in all projects<name>.md:
---
description: <one-sentence description>. Self-removes after install.
allowed-tools: Bash
---
Install <what it installs> by running these steps in order:
1. <step 1 description>:
```
[... remaining steps ...]
N. Verify the install succeeded:
<verification command>
Report the output to the user. If it indicates failure, stop here — do not proceed to removal.
N+1. Self-remove this one-shot installer:
rm <full-path-to-this-file>
Tell the user what was installed and that the installer has been removed.
Replace `<full-path-to-this-file>` with the actual absolute path (e.g. `~/.claude/commands/<name>.md` or `$PWD/.claude/commands/<name>.md`).
---
## Invariants (both modes)
- Every bash block must be a fenced code block on its own numbered step — no inline commands
- The verify step must always come immediately before self-removal
- Self-removal is always the very last action — nothing after it
- If self-removal might fail silently, add a note telling the user to remove it manually if the command persists after running
- Keep `plugin.json` description under 120 chars
- `allowed-tools: Bash` is the only tool a pure installer needs; don't add others unless the install requires file edits
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wbniv/biohack-claude --plugin new-installer