#!/usr/bin/env bash # # agencykit installer # Downloads the skills and drops them into your .claude/skills folder. # # curl -fsSL https://raw.githubusercontent.com/MarcoZorn/agencykit/main/install.sh | bash # set -euo pipefail REPO="MarcoZorn/agencykit" BRANCH="main" # Project-local .claude if present, otherwise global ~/.claude if [ -d ".claude" ]; then SKILLS_DIR=".claude/skills" else SKILLS_DIR="$HOME/.claude/skills" fi echo "" echo "Installing agencykit skills to $SKILLS_DIR ..." mkdir -p "$SKILLS_DIR" TMP="$(mktemp -d)" trap 'rm -rf "$TMP"' EXIT TARBALL="https://github.com/$REPO/archive/refs/heads/$BRANCH.tar.gz" if command -v curl >/dev/null 2>&1; then curl -fsSL "$TARBALL" -o "$TMP/agencykit.tar.gz" elif command -v wget >/dev/null 2>&1; then wget -qO "$TMP/agencykit.tar.gz" "$TARBALL" else echo "✗ need curl or wget to download. Aborting." >&2 exit 1 fi tar -xzf "$TMP/agencykit.tar.gz" -C "$TMP" SRC="$TMP/agencykit-$BRANCH/.claude/skills" if [ ! -d "$SRC" ]; then echo "✗ could not find skills in the download. Aborting." >&2 exit 1 fi count=0 for skill in "$SRC"/*/; do name="$(basename "$skill")" mkdir -p "$SKILLS_DIR/$name" cp "$skill/SKILL.md" "$SKILLS_DIR/$name/SKILL.md" echo " ✓ $name" count=$((count + 1)) done echo "" echo "✓ $count agencykit skills installed." echo " Trigger them with: 'new project', 'client approval', 'monthly report', 'shot list' ..." echo ""