From 0601f71b661fe90ddf72aeb85e4db61961ead584 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 3 Feb 2026 20:27:59 +0000 Subject: [PATCH] Add run_once script to install Claude plugins Automatically runs after chezmoi apply on new machines: - Adds marketplaces (anthropics/claude-plugins-official, anthropics/skills, obra/superpowers-marketplace) - Installs plugins (code-simplifier, ralph-loop, superpowers) --- run_once_after_install-claude-plugins.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 run_once_after_install-claude-plugins.sh diff --git a/run_once_after_install-claude-plugins.sh b/run_once_after_install-claude-plugins.sh new file mode 100755 index 0000000..79afe12 --- /dev/null +++ b/run_once_after_install-claude-plugins.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# This script runs once after chezmoi apply on a new machine + +set -e + +# Check if claude is available +if ! command -v claude &> /dev/null; then + echo "Claude CLI not found, skipping plugin installation" + exit 0 +fi + +echo "Installing Claude marketplaces..." +claude /add-marketplace anthropics/claude-plugins-official 2>/dev/null || true +claude /add-marketplace anthropics/skills 2>/dev/null || true +claude /add-marketplace obra/superpowers-marketplace 2>/dev/null || true + +echo "Installing Claude plugins..." +claude /install-plugin code-simplifier@claude-plugins-official 2>/dev/null || true +claude /install-plugin ralph-loop@claude-plugins-official 2>/dev/null || true +claude /install-plugin superpowers@claude-plugins-official 2>/dev/null || true + +echo "Claude plugins installed successfully"