-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·38 lines (32 loc) · 961 Bytes
/
install.sh
File metadata and controls
executable file
·38 lines (32 loc) · 961 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
REPO_URL="https://github.com/OpenSymbolicAI/claude-skills.git"
TEMP_DIR=$(mktemp -d)
echo "Installing OpenSymbolicAI Claude Skills..."
# Determine target: project-level if .claude exists, else user-level
if [ -d ".claude" ]; then
SKILLS_DIR=".claude/skills"
echo "Installing to project: ${SKILLS_DIR}/"
else
SKILLS_DIR="${HOME}/.claude/skills"
echo "Installing to user: ${SKILLS_DIR}/"
fi
mkdir -p "${SKILLS_DIR}"
# Clone and copy
if ! git clone --depth 1 "${REPO_URL}" "${TEMP_DIR}"; then
echo "Error: Failed to clone ${REPO_URL}" >&2
rm -rf "${TEMP_DIR}"
exit 1
fi
cp -r "${TEMP_DIR}/skills/"* "${SKILLS_DIR}/"
rm -rf "${TEMP_DIR}"
echo ""
echo "Skills installed:"
echo " opensymbolicai (auto-loaded API reference)"
echo " /create-agent"
echo " /add-primitive"
echo " /add-decomposition"
echo " /add-evaluator"
echo " /debug-trace"
echo ""
echo "Restart Claude Code to activate."