-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·44 lines (37 loc) · 1.26 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Install Claude Code Starter Kit components via symlinks.
# Run from the repo root: ./install.sh
set -e
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
CLAUDE_DIR="$HOME/.claude"
echo "Installing Claude Code Starter Kit..."
echo " Source: $REPO_DIR"
echo " Target: $CLAUDE_DIR"
echo ""
# Create ~/.claude if it doesn't exist
mkdir -p "$CLAUDE_DIR/agents" "$CLAUDE_DIR/skills"
# Symlink agents
for agent in "$REPO_DIR"/agents/*.md; do
if [ -f "$agent" ]; then
name=$(basename "$agent")
ln -sf "$agent" "$CLAUDE_DIR/agents/$name"
echo " ✓ Agent: $name"
fi
done
# Symlink skills (as directories)
for skill_dir in "$REPO_DIR"/skills/*/; do
if [ -d "$skill_dir" ]; then
name=$(basename "$skill_dir")
ln -sf "$skill_dir" "$CLAUDE_DIR/skills/$name"
echo " ✓ Skill: $name"
fi
done
echo ""
echo "Done! Components are now available in Claude Code."
echo ""
echo "To configure hooks, copy .claude/settings.json to your project:"
echo " cp $REPO_DIR/.claude/settings.json /path/to/project/.claude/settings.json"
echo ""
echo "Note: Hooks run relative to the project directory, so adjust paths"
echo "in settings.json if your hooks live in this repo:"
echo " \"command\": \"python3 $REPO_DIR/hooks/session-start.py\""