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)
This commit is contained in:
parent
33147b7929
commit
0601f71b66
1 changed files with 22 additions and 0 deletions
22
run_once_after_install-claude-plugins.sh
Executable file
22
run_once_after_install-claude-plugins.sh
Executable file
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue