A Claude Code skill that installs software packages using the right native package manager for your OS — Homebrew on macOS, and apt/dnf/pacman/zypper/apk on Linux. Shows you every command before running it. Refuses destructive operations.
curl -fsSL https://github.com/geekaholic/install-buddy-skill/raw/main/dist/install-buddy.tar.gz \
| tar -xz -C ~/.claude/skills/Manual steps:
- Download
dist/install-buddy.tar.gz - Extract:
tar -xzf install-buddy.tar.gz -C ~/.claude/skills/ - Verify:
ls ~/.claude/skills/install-buddy/SKILL.md
Claude Code auto-discovers skills with valid frontmatter in ~/.claude/skills/ — no additional config needed.
Install a single package:
/install-buddy htop
Install from a config file:
/install-buddy ./my-stack.yaml
Or just describe what you want — the skill triggers on natural language too:
install ripgrep and fd on this machine
set up my dev tools from ~/dotfiles/packages.yaml
- Detects your OS and package manager — runs
scripts/detect_os.sh, handles macOS (brew) and major Linux distros - Resolves the right package name —
fdisfd-findon apt,nodejsvsnode, etc. Seereferences/package-name-map.md - Shows the exact command before running it — you confirm, then it executes
- Reports results honestly — versions, already-installed status, failures, anything rejected by safeguards
| OS | Package manager |
|---|---|
| macOS | brew |
| Debian, Ubuntu, Mint, Pop!_OS | apt |
| Fedora, RHEL, CentOS, Rocky | dnf (yum fallback) |
| Arch, CachyOS, Manjaro, EndeavourOS | pacman |
| openSUSE, SLES | zypper |
| Alpine | apk |
For bulk installs, create a YAML (or JSON) file and pass its path to the skill:
packages:
# Simple: same name on all managers
- htop
- ripgrep
# With per-manager name overrides
- name: fd
apt: fd-find
dnf: fd-find
# Platform-gated and cask installs
- name: rectangle
brew: rectangle
cask: true
only_on: [macos]Supported override keys: brew, cask (boolean), apt, dnf, pacman, zypper, apk
Platform gate values for only_on: macos, linux, debian, ubuntu, fedora, arch, alpine, opensuse
See assets/example-config.yaml for the full example.
The skill will never:
- Run removal/uninstall commands unless you explicitly asked for removal
- Add third-party repos or taps without showing the change and asking first
- Accept package names with shell metacharacters (validated against
^[A-Za-z0-9._+@-]+$) - Use
curl | shas a fallback sudo brewon macOS- Run a global upgrade (
apt upgrade,brew upgrade) — those need their own confirmation - Reinstall silently if a package is already present
- Accept
--force,--break-system-packages, or similar flags unless you typed them explicitly
Full rationale: references/safeguards.md
git clone https://github.com/geekaholic/install-buddy-skill
cd install-buddy
# Enable the pre-commit hook (rebuilds the bundle automatically before each commit)
git config core.hooksPath .githooks
# Rebuild the bundle manually
make bundle
# Verify bundle contents
make check-bundleThe dist/install-buddy.tar.gz is committed to the repo. When you push changes to any source file, GitHub Actions rebuilds it and commits the updated bundle back to main.
Note: If your repo has branch protection on
mainthat blocks theGITHUB_TOKENfrom pushing, create a PAT withcontents: writescope, store it as the repo secretBUNDLE_PAT, and update thetoken:field in.github/workflows/bundle.yml.
MIT — see LICENSE