-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
30 lines (22 loc) · 970 Bytes
/
install.sh
File metadata and controls
30 lines (22 loc) · 970 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
#!/usr/bin/env bash
# PyTrace Autopsy - One-line installer
# Usage: curl -L https://raw.githubusercontent.com/ApartsinProjects/pytrace-autopsy/main/install.sh | bash
set -e
SKILL_NAME="pytrace-autopsy"
REPO_URL="https://github.com/ApartsinProjects/pytrace-autopsy.git"
INSTALL_DIR=".claude/skills/${SKILL_NAME}"
echo "[pytrace-autopsy] Installing..."
# Check if .claude/skills directory exists (are we in a project?)
if [ ! -d ".claude" ]; then
mkdir -p ".claude/skills"
echo "[pytrace-autopsy] Created .claude/skills directory"
fi
# Clone to temp and copy skill directory
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
git clone --depth 1 "$REPO_URL" "$TMPDIR/repo" 2>/dev/null
mkdir -p "$INSTALL_DIR"
cp -r "$TMPDIR/repo/skill/"* "$INSTALL_DIR/"
echo "[pytrace-autopsy] Installed to ${INSTALL_DIR}/"
echo "[pytrace-autopsy] Skill is ready. Claude will auto-invoke it on failing tests,"
echo " or you can manually invoke with: /trace"