-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·56 lines (48 loc) · 1.63 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·56 lines (48 loc) · 1.63 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
#!/usr/bin/env bash
set -euo pipefail
# gist-design skill installer for Claude Code
# Usage: curl -fsSL https://raw.githubusercontent.com/imsaif/gist/main/install.sh | bash
REPO="https://github.com/imsaif/gist.git"
SKILL_DIR="$HOME/.claude/skills/gist-design"
TMP_DIR=$(mktemp -d)
cleanup() {
rm -rf "$TMP_DIR"
}
trap cleanup EXIT
echo ""
echo " gist.design — installing Claude Code skill"
echo " ────────────────────────────────────────────"
echo ""
# Check if already installed
if [ -d "$SKILL_DIR" ]; then
echo " Found existing installation at $SKILL_DIR"
read -r -p " Update to latest version? [Y/n] " response
response=${response:-Y}
if [[ "$response" =~ ^[Nn] ]]; then
echo " Skipped. Your existing installation is unchanged."
exit 0
fi
rm -rf "$SKILL_DIR"
echo " Removed old version."
fi
# Clone only what we need
echo " Downloading skill files..."
git clone --depth 1 --filter=blob:none --sparse "$REPO" "$TMP_DIR/gist" 2>/dev/null
cd "$TMP_DIR/gist"
git sparse-checkout set skills/gist-design 2>/dev/null
# Install
mkdir -p "$(dirname "$SKILL_DIR")"
cp -r "$TMP_DIR/gist/skills/gist-design" "$SKILL_DIR"
echo ""
echo " Installed to $SKILL_DIR"
echo ""
echo " Next steps:"
echo " 1. Open Claude Code in any project"
echo " 2. Type: /gist-design"
echo " 3. It will audit how AI tools see your project"
echo ""
echo " Quick start:"
echo " /gist-design ← audit your current project"
echo " /gist-design quick ← generate a starter file fast"
echo " /gist-design create ← full guided conversation"
echo ""