Repository navigation
Expand file tree
/
Copy pathuninstall.ps1
More file actions
58 lines (49 loc) · 1.69 KB
/
Copy pathuninstall.ps1
File metadata and controls
58 lines (49 loc) · 1.69 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
#!/usr/bin/env pwsh
# claude-seo uninstaller for Windows
# Cleanly removes all SEO skills, agents, and scripts
$ErrorActionPreference = "Stop"
function Write-Color($Color, $Text) {
Write-Host $Text -ForegroundColor $Color
}
function Main {
$SkillDir = Join-Path $env:USERPROFILE ".claude" "skills"
$AgentDir = Join-Path $env:USERPROFILE ".claude" "agents"
Write-Color Cyan "=== Uninstalling claude-seo ==="
Write-Host ""
# Remove main skill (includes venv, references, scripts, hooks)
$seoDir = Join-Path $SkillDir "seo"
if (Test-Path $seoDir) {
Remove-Item -Recurse -Force $seoDir
Write-Color Green " Removed: $seoDir"
}
# Remove sub-skills
$subSkills = @(
"seo-audit", "seo-competitor-pages", "seo-content", "seo-geo",
"seo-hreflang", "seo-images", "seo-page", "seo-plan",
"seo-programmatic", "seo-schema", "seo-sitemap", "seo-technical"
)
foreach ($skill in $subSkills) {
$skillPath = Join-Path $SkillDir $skill
if (Test-Path $skillPath) {
Remove-Item -Recurse -Force $skillPath
Write-Color Green " Removed: $skillPath"
}
}
# Remove agents
$agents = @(
"seo-technical", "seo-content", "seo-schema",
"seo-sitemap", "seo-performance", "seo-visual"
)
foreach ($agent in $agents) {
$agentPath = Join-Path $AgentDir "$agent.md"
if (Test-Path $agentPath) {
Remove-Item -Force $agentPath
Write-Color Green " Removed: $agentPath"
}
}
Write-Host ""
Write-Color Cyan "=== claude-seo uninstalled ==="
Write-Host ""
Write-Color Yellow "Restart Claude Code to complete removal."
}
Main