-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·90 lines (77 loc) · 2.28 KB
/
Copy pathuninstall.sh
File metadata and controls
executable file
·90 lines (77 loc) · 2.28 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env bash
set -euo pipefail
# ============================================================
# GEO-SEO Claude Code Skill Uninstaller
# ============================================================
CLAUDE_DIR="${HOME}/.claude"
SKILLS_DIR="${CLAUDE_DIR}/skills"
AGENTS_DIR="${CLAUDE_DIR}/agents"
# Detect if running via curl pipe (no interactive input available)
INTERACTIVE=true
if [ ! -t 0 ]; then
INTERACTIVE=false
fi
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
# Ensure unmatched globs expand to nothing
shopt -s nullglob
echo ""
echo -e "${YELLOW}GEO-SEO Claude Code Skill Uninstaller${NC}"
echo ""
echo "This will remove the following:"
echo ""
# List what will be removed
[ -d "$SKILLS_DIR/geo" ] && echo " → ${SKILLS_DIR}/geo/"
for skill_dir in "$SKILLS_DIR"/geo-*/; do
[ -d "$skill_dir" ] && echo " → ${skill_dir}"
done
for agent_file in "$AGENTS_DIR"/geo-*.md; do
[ -f "$agent_file" ] && echo " → ${agent_file}"
done
echo ""
if [ "$INTERACTIVE" = true ]; then
read -p "Are you sure you want to uninstall? (y/n): " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Uninstall cancelled."
exit 0
fi
else
echo -e "${YELLOW}Non-interactive mode — proceeding with uninstall...${NC}"
fi
echo ""
# Remove main skill
if [ -d "$SKILLS_DIR/geo" ]; then
rm -rf "$SKILLS_DIR/geo"
echo -e "${GREEN}✓ Removed main skill${NC}"
fi
# Remove sub-skills
for skill_dir in "$SKILLS_DIR"/geo-*/; do
if [ -d "$skill_dir" ]; then
skill_name=$(basename "$skill_dir")
rm -rf "$skill_dir"
echo -e "${GREEN}✓ Removed ${skill_name}${NC}"
fi
done
# Remove agents
for agent_file in "$AGENTS_DIR"/geo-*.md; do
if [ -f "$agent_file" ]; then
agent_name=$(basename "$agent_file")
rm -f "$agent_file"
echo -e "${GREEN}✓ Removed ${agent_name}${NC}"
fi
done
echo ""
echo -e "${GREEN}GEO-SEO skill has been uninstalled.${NC}"
echo ""
echo "Note: Python dependencies lived in an isolated venv inside the skill"
echo "directory, so they were removed automatically. Nothing to clean up on"
echo "your system Python."
echo ""
echo "Note: Prospect data at ~/.geo-prospects/ was not removed."
echo "To remove it manually:"
echo " rm -rf ~/.geo-prospects"
echo ""