-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
371 lines (344 loc) · 13.5 KB
/
uninstall.sh
File metadata and controls
371 lines (344 loc) · 13.5 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
#!/usr/bin/env bash
set -euo pipefail
# =============================================================================
# creativity-maxxing — uninstall
# Removes every tool installed by the design + media + copywriting +
# watch modules, in reverse order. ffmpeg is prompted separately
# because it is frequently system-shared.
# =============================================================================
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
REMOVED=0
SKIPPED=0
info() { echo -e "${BLUE}[INFO]${NC} $1"; }
success() { echo -e "${GREEN}[OK]${NC} $1"; }
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
# Track a removed item
removed_one() { REMOVED=$((REMOVED + 1)); success "$1"; }
# Track a skipped item (not present)
skipped_one() { SKIPPED=$((SKIPPED + 1)); info "$1"; }
# -----------------------------------------------------------------------------
# Remove UI/UX Pro Max skill
# -----------------------------------------------------------------------------
remove_uiux_skill() {
local SKILL_DIR="$HOME/.claude/skills/ui-ux-pro-max"
if [ -d "$SKILL_DIR" ] || [ -L "$SKILL_DIR" ]; then
rm -rf "$SKILL_DIR"
removed_one "Removed UI/UX Pro Max skill"
else
skipped_one "UI/UX Pro Max skill not present"
fi
}
# -----------------------------------------------------------------------------
# Remove all 8 Taste Skill variants
# -----------------------------------------------------------------------------
remove_taste_skills() {
local variants=(
"design-taste-frontend"
"redesign-existing-projects"
"high-end-visual-design"
"full-output-enforcement"
"minimalist-ui"
"industrial-brutalist-ui"
"stitch-design-taste"
"gpt-taste"
)
local r=0 s=0
for v in "${variants[@]}"; do
local dir="$HOME/.claude/skills/$v"
if [ -d "$dir" ] || [ -L "$dir" ]; then
rm -rf "$dir"
r=$((r + 1))
else
s=$((s + 1))
fi
done
REMOVED=$((REMOVED + r))
SKIPPED=$((SKIPPED + s))
success "Taste Skills: removed $r, skipped $s (already absent)"
}
# -----------------------------------------------------------------------------
# Remove 21st.dev Magic MCP
# -----------------------------------------------------------------------------
remove_magic_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^magic:'; then
claude mcp remove magic 2>/dev/null || true
removed_one "Removed 21st.dev Magic MCP"
else
skipped_one "21st.dev Magic MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Canva MCP
# -----------------------------------------------------------------------------
remove_canva_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^canva:'; then
claude mcp remove canva 2>/dev/null || true
removed_one "Removed Canva MCP"
else
skipped_one "Canva MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Figma MCP
# -----------------------------------------------------------------------------
remove_figma_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^figma:'; then
claude mcp remove figma 2>/dev/null || true
removed_one "Removed Figma MCP"
else
skipped_one "Figma MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Excalidraw MCP
# -----------------------------------------------------------------------------
remove_excalidraw_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^excalidraw:'; then
claude mcp remove excalidraw 2>/dev/null || true
removed_one "Removed Excalidraw MCP"
else
skipped_one "Excalidraw MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Gamma MCP
# -----------------------------------------------------------------------------
remove_gamma_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^gamma:'; then
claude mcp remove gamma 2>/dev/null || true
removed_one "Removed Gamma MCP"
else
skipped_one "Gamma MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Playwright MCP
# -----------------------------------------------------------------------------
remove_playwright_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^playwright:'; then
claude mcp remove playwright 2>/dev/null || true
removed_one "Removed Playwright MCP"
else
skipped_one "Playwright MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove Higgsfield / Seedance 2.0 prompt skills
# -----------------------------------------------------------------------------
remove_higgsfield_skills() {
local skills=(
"01-cinematic" "02-3d-cgi" "03-cartoon" "04-comic-to-video"
"05-fight-scenes" "06-motion-design-ad" "07-ecommerce-ad"
"08-anime-action" "09-product-360" "10-music-video"
"11-social-hook" "12-brand-story" "13-fashion-lookbook"
"14-food-beverage" "15-real-estate"
)
local r=0 s=0
for sk in "${skills[@]}"; do
local dir="$HOME/.claude/skills/$sk"
if [ -d "$dir" ] || [ -L "$dir" ]; then
rm -rf "$dir"
r=$((r + 1))
else
s=$((s + 1))
fi
done
REMOVED=$((REMOVED + r))
SKIPPED=$((SKIPPED + s))
success "Higgsfield/Seedance skills: removed $r, skipped $s (already absent)"
}
# -----------------------------------------------------------------------------
# Remove Remotion skills
# -----------------------------------------------------------------------------
remove_remotion_skills() {
local SKILL_DIR="$HOME/.claude/skills/remotion-best-practices"
if [ -d "$SKILL_DIR" ] || [ -L "$SKILL_DIR" ]; then
rm -rf "$SKILL_DIR"
removed_one "Removed Remotion skills"
else
skipped_one "Remotion skills not present"
fi
}
# -----------------------------------------------------------------------------
# Remove YouTube Transcript MCP
# -----------------------------------------------------------------------------
remove_youtube_transcript_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^youtube-transcript:'; then
claude mcp remove youtube-transcript 2>/dev/null || true
removed_one "Removed YouTube Transcript MCP"
else
skipped_one "YouTube Transcript MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove yt-dlp MCP
# -----------------------------------------------------------------------------
remove_ytdlp_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^yt-dlp:'; then
claude mcp remove yt-dlp 2>/dev/null || true
removed_one "Removed yt-dlp MCP"
else
skipped_one "yt-dlp MCP not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove yt-dlp CLI via Homebrew
# -----------------------------------------------------------------------------
remove_ytdlp_cli() {
if command -v brew >/dev/null 2>&1 && brew list yt-dlp >/dev/null 2>&1; then
brew uninstall yt-dlp || warn "brew uninstall yt-dlp returned non-zero"
removed_one "Removed yt-dlp CLI"
else
skipped_one "yt-dlp CLI not installed via Homebrew"
fi
}
# -----------------------------------------------------------------------------
# Remove whisper-cpp
# -----------------------------------------------------------------------------
remove_whisper_cpp() {
if command -v brew >/dev/null 2>&1 && brew list whisper-cpp >/dev/null 2>&1; then
brew uninstall whisper-cpp || warn "brew uninstall whisper-cpp returned non-zero"
removed_one "Removed whisper-cpp"
else
skipped_one "whisper-cpp not installed via Homebrew"
fi
}
# -----------------------------------------------------------------------------
# Remove whisper-mcp
# -----------------------------------------------------------------------------
remove_whisper_mcp() {
if command -v claude >/dev/null 2>&1; then
if claude mcp list 2>/dev/null | grep -qE '^whisper-mcp:'; then
claude mcp remove whisper-mcp 2>/dev/null || true
removed_one "Removed whisper-mcp"
else
skipped_one "whisper-mcp not registered"
fi
fi
}
# -----------------------------------------------------------------------------
# Remove /copywriting skill
# -----------------------------------------------------------------------------
remove_copywriting_skill() {
local SKILL_DIR="$HOME/.claude/skills/copywriting"
if [ -d "$SKILL_DIR" ] || [ -L "$SKILL_DIR" ]; then
rm -rf "$SKILL_DIR"
removed_one "Removed /copywriting skill"
else
skipped_one "/copywriting skill not present"
fi
}
# -----------------------------------------------------------------------------
# Remove /watch skill (the skill itself, not the model/library cache)
# -----------------------------------------------------------------------------
remove_watch_skill() {
local SKILL_DIR="$HOME/.claude/skills/watch"
if [ -d "$SKILL_DIR" ] || [ -L "$SKILL_DIR" ]; then
rm -rf "$SKILL_DIR"
removed_one "Removed /watch skill"
else
skipped_one "/watch skill not present"
fi
}
# -----------------------------------------------------------------------------
# Remove watch user state (.env + library cache + custom model dir).
# Conservative — only removes paths watch owns. The shared whisper
# model at ~/.whisper/ggml-base.en.bin is left in place; it's removed only
# if the user accepts the whisper-cpp removal prompt below.
# -----------------------------------------------------------------------------
remove_watch_state() {
local CONFIG_DIR="$HOME/.config/watch"
local LIB_DIR="$HOME/watch/library"
local removed=0
if [ -d "$CONFIG_DIR" ]; then
rm -rf "$CONFIG_DIR"
removed=$((removed + 1))
fi
if [ -d "$LIB_DIR" ]; then
rm -rf "$LIB_DIR"
removed=$((removed + 1))
fi
if [ "$removed" -gt 0 ]; then
removed_one "Removed watch config + library cache"
else
skipped_one "watch config + library cache not present"
fi
}
# -----------------------------------------------------------------------------
# ffmpeg — prompt before touching (system-shared)
# -----------------------------------------------------------------------------
remove_ffmpeg_prompt() {
if command -v brew >/dev/null 2>&1 && brew list ffmpeg >/dev/null 2>&1; then
read -r -p "ffmpeg is system-shared. Uninstall it? [y/N] " ans
if [[ "$ans" =~ ^[Yy]$ ]]; then
brew uninstall ffmpeg
removed_one "Removed ffmpeg"
else
echo "Leaving ffmpeg in place."
skipped_one "ffmpeg left in place (user declined)"
fi
else
skipped_one "ffmpeg not installed via Homebrew"
fi
}
print_summary() {
echo ""
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${GREEN} creativity-maxxing uninstall complete${NC}"
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo ""
echo " Removed : $REMOVED item(s)"
echo " Skipped : $SKIPPED item(s) (already absent or user declined)"
echo ""
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo ""
}
main() {
echo ""
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${BLUE} creativity-maxxing — Uninstall${NC}"
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo ""
info "Uninstalling creativity-maxxing..."
remove_uiux_skill
remove_taste_skills
remove_magic_mcp
remove_canva_mcp
remove_figma_mcp
remove_excalidraw_mcp
remove_gamma_mcp
remove_playwright_mcp
remove_higgsfield_skills
remove_remotion_skills
remove_youtube_transcript_mcp
remove_ytdlp_mcp
remove_ytdlp_cli
remove_whisper_cpp
remove_whisper_mcp
remove_copywriting_skill
remove_watch_skill
remove_watch_state
remove_ffmpeg_prompt
rm -f "$HOME/.claude/.creativity-maxxing-installed"
print_summary
}
main "$@"