-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·34 lines (28 loc) · 1.06 KB
/
Copy pathsetup
File metadata and controls
executable file
·34 lines (28 loc) · 1.06 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
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILLS_DIR="$HOME/.claude/skills"
AGENTS_DIR="$HOME/.claude/agents"
mkdir -p "$SKILLS_DIR" "$AGENTS_DIR"
# Warn if not in expected location
if [[ "$SCRIPT_DIR" != "$SKILLS_DIR/deepresearch" ]]; then
echo "Note: repo is at $SCRIPT_DIR"
echo " expected ~/.claude/skills/deepresearch"
echo " Skills will still be installed to ~/.claude/skills/ via symlinks."
echo ""
fi
# Symlink each skill directory
for skill in dr-new dr-run dr-status dr-review dr-resume dr-report dr-improve; do
rm -rf "$SKILLS_DIR/$skill" 2>/dev/null || true
ln -sf "$SCRIPT_DIR/$skill" "$SKILLS_DIR/$skill"
echo " ✓ /$skill"
done
# Symlink agents
for agent in dr-researcher.md dr-evaluator.md dr-planner.md; do
rm -f "$AGENTS_DIR/$agent" 2>/dev/null || true
ln -sf "$SCRIPT_DIR/agents/$agent" "$AGENTS_DIR/$agent"
echo " ✓ agent: $agent"
done
echo ""
echo "deepresearch installed (7 skills, 3 agents)."
echo "Open a new Claude Code session and type /dr: to see commands."