-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·57 lines (49 loc) · 1.7 KB
/
install.sh
File metadata and controls
executable file
·57 lines (49 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Install the Elicit Research skill for Claude Code
#
# Usage:
# curl -sL https://raw.githubusercontent.com/elicit/api-examples/main/integrations/claude-code-skill/install.sh | bash
# — or —
# ./install.sh
set -e
SKILL_DIR="$HOME/.claude/skills/elicit-research"
SKILL_URL="https://raw.githubusercontent.com/elicit/api-examples/main/integrations/claude-code-skill/skill.md"
echo "Installing Elicit Research skill for Claude Code..."
echo ""
# Create skill directory
mkdir -p "$SKILL_DIR"
# If running from the repo, copy the local file; otherwise download it
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -f "$SCRIPT_DIR/skill.md" ]; then
cp "$SCRIPT_DIR/skill.md" "$SKILL_DIR/skill.md"
echo "Copied skill.md from local directory."
else
curl -sL "$SKILL_URL" -o "$SKILL_DIR/skill.md"
echo "Downloaded skill.md from GitHub."
fi
echo ""
echo "Installed to: $SKILL_DIR/skill.md"
echo ""
# Check if ELICIT_API_KEY is already set
if [ -n "$ELICIT_API_KEY" ]; then
echo "ELICIT_API_KEY is already set. You're good to go!"
else
echo "Next step: set your Elicit API key."
echo ""
echo " Get a key at: https://elicit.com/settings"
echo ""
echo " Then add to your shell profile (~/.zshrc or ~/.bashrc):"
echo ""
echo " export ELICIT_API_KEY=\"your-api-key\""
echo ""
fi
echo "---"
echo ""
echo "Usage examples in Claude Code:"
echo ""
echo ' "Search for papers on transformer architectures for protein folding"'
echo ' "Find recent RCTs on cognitive behavioral therapy for insomnia"'
echo ' "Create a report: What is the evidence for spaced repetition in education?"'
echo ' "What does the research say about caffeine and athletic performance?"'
echo ""
echo "Done!"