-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·47 lines (43 loc) · 1.95 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·47 lines (43 loc) · 1.95 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
#!/usr/bin/env bash
# AgentVitals checkup skill — one-shot installer.
# Detects your agent's skills directory and installs the `checkup` skill.
# Usage: curl -fsSL https://raw.githubusercontent.com/agentvitals/checkup/main/install.sh | bash
# or: curl -fsSL https://ai.ddl99.com/skill/install.sh | bash
# or: bash install.sh
set -euo pipefail
# Download order matters: GitHub first, self-hosted mirror second.
# Many agent sandboxes (Codex and friends) only allow an allowlist of hosts — github.com is
# almost always on it, ai.ddl99.com is not. Trying GitHub first makes the installer work
# unattended inside those sandboxes; the mirror stays as a fallback.
ZIP_URL_PRIMARY="https://github.com/agentvitals/checkup/releases/latest/download/checkup.zip"
ZIP_URL_FALLBACK="https://ai.ddl99.com/skill/checkup.zip"
TMP="$(mktemp -d)"
trap 'rm -rf "$TMP"' EXIT
# Pick a skills directory: honour SKILLS_DIR, else the first agent home that exists,
# else default to Claude Code.
if [ -n "${SKILLS_DIR:-}" ]; then
DEST="$SKILLS_DIR"
elif [ -d "$HOME/.claude" ]; then
DEST="$HOME/.claude/skills"
elif [ -d "$HOME/.openclaw" ]; then
DEST="$HOME/.openclaw/skills"
elif [ -d "$HOME/.codex" ]; then
DEST="$HOME/.codex/skills"
else
DEST="$HOME/.claude/skills"
fi
echo "→ Installing the AgentVitals 'checkup' skill into: $DEST"
mkdir -p "$DEST"
if curl -fsSL "$ZIP_URL_PRIMARY" -o "$TMP/checkup.zip" 2>/dev/null; then
echo " (source: GitHub release)"
elif curl -fsSL "$ZIP_URL_FALLBACK" -o "$TMP/checkup.zip"; then
echo " (source: ai.ddl99.com mirror)"
else
echo "✗ Could not download the skill from either source." >&2
echo " Try cloning instead: git clone https://github.com/agentvitals/checkup.git" >&2
exit 1
fi
unzip -o "$TMP/checkup.zip" -d "$DEST" >/dev/null
echo "✓ Done. The 'checkup' skill is installed at $DEST/checkup"
echo " Try it: tell your agent \"Run an AgentVitals checkup on yourself\" (or /checkup)."
echo " Leaderboard: https://ai.ddl99.com"