-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup
More file actions
executable file
·37 lines (31 loc) · 905 Bytes
/
setup
File metadata and controls
executable file
·37 lines (31 loc) · 905 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
#!/usr/bin/env bash
# openlabor setup — register skills in CLAUDE.md
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "openlabor setup"
echo ""
# Generate registry if node is available
if command -v node &>/dev/null; then
if [ -f "$SCRIPT_DIR/cli/scripts/generate-registry.js" ]; then
node "$SCRIPT_DIR/cli/scripts/generate-registry.js" 2>/dev/null || true
fi
fi
# List available skills
echo "Available skills:"
for skill_dir in "$SCRIPT_DIR"/skills/*/; do
if [ -f "$skill_dir/SKILL.md" ]; then
name=$(basename "$skill_dir")
echo " /$name"
fi
done
echo ""
echo "Available employees:"
for emp_dir in "$SCRIPT_DIR"/employees/*/; do
if [ -f "$emp_dir/EMPLOYEE.md" ]; then
name=$(basename "$emp_dir")
echo " /$name"
fi
done
echo ""
echo "Setup complete. Add these skills to your CLAUDE.md."
echo "Or use the CLI: npx openlabor install skill <name>"