mirror of
https://github.com/AgriciDaniel/claude-seo.git
synced 2026-11-25 07:30:08 +01:00
Independently verified via two Codex gpt-5.5 xhigh reviews (commit audit + 9-phase whole-plugin) cross-checked by hand, then fixed by 5 parallel Codex agents on isolated copies with per-file diff verification before apply. Functionality / correctness: - seo-local + seo-maps loaded references/*.md from dirs that do not exist; repoint to ../seo/references/*.md (every target verified present). - unlighthouse extension invoked nonexistent npm package unlighthouse-cli; switch to the real package unlighthouse@0.13.5 (keeps unlighthouse-ci bin) across install.sh/.ps1, unlighthouse_run.py, docs, SKILL. - ahrefs invoked a non-existent bin; pin @ahrefs/mcp@0.0.11 and correct the bin to the package's declared `mcp` across install.sh/.ps1 + docs. - sync_flow --dry-run threw an uncaught URLError offline; handle it with a clean SystemExit (preserves the 403 auth-retry path). - install slug typo claude-seo@agricidaniel-seo -> agricidaniel-claude-seo in docs + uninstall script comments; dataforseo cache glob wildcarded to work for both public and private marketplace names. Security hardening: - bing_webmaster: redact apikey from RequestException error strings (Bing requires the key in the query string; no header option). - uninstallers + banana install probe: convert python3 -c '${VAR}' interpolation to argv quoted-heredoc (matches the hardened cred writers). - dataforseo + firecrawl install.ps1: PtrToStringAuto -> PtrToStringBSTR (PtrToStringAuto truncates the SecureString under pwsh on Linux/macOS). - pin dataforseo prewarm to @2.8.10. Hygiene / docs: - remove orphaned branding/ (referenced deleted banner.svg + diagrams/*.svg). - CITATION.cff date-released -> 2026-06-12; README tests 316 -> 326; README FAQ wording -> May 7 2026 retirement; CLAUDE.md manifest v2.2.0; AGENTS.md 30 -> 50 scripts; user-invokable -> user-invocable. - dependabot: drop the inactive npm watcher (no root npm manifest exists). - run-python-hook.js: accept a status-0 probe with valid stdout even when spawnSync also reports EPERM (robustness; blocking semantics unchanged). - banana validate_setup.py: --help shows usage and exits 0. - seo orchestrator: note which extensions route via /seo vs standalone skills. - frame curl|bash one-liners as the less-safe option in install docs. Gates: 326 tests pass, portability 0/0/0, injection/SSRF/FAQ-hook/#130 repros re-verified on the modified tree, no em-dashes, secret scan clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
65 lines
2.0 KiB
Bash
Executable File
65 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# claude-seo manual-install uninstaller (Unix / macOS / Linux)
|
|
#
|
|
# Removes the orchestrator skill (~/.claude/skills/seo), all sub-skills
|
|
# (~/.claude/skills/seo-*), and all sub-agents (~/.claude/agents/seo-*.md).
|
|
#
|
|
# Uses glob enumeration rather than a hardcoded list so future skill
|
|
# additions are cleaned up automatically without releasing a new
|
|
# uninstaller.
|
|
#
|
|
# Plugin-install users should use Claude Code's own command instead:
|
|
# /plugin uninstall claude-seo@agricidaniel-claude-seo
|
|
# /plugin marketplace remove AgriciDaniel/claude-seo
|
|
set -euo pipefail
|
|
|
|
SKILL_DIR="${HOME}/.claude/skills"
|
|
AGENT_DIR="${HOME}/.claude/agents"
|
|
|
|
main() {
|
|
echo "→ Uninstalling Claude SEO..."
|
|
|
|
local removed_skills=0
|
|
local removed_agents=0
|
|
|
|
# Allow empty globs to expand to nothing rather than the literal pattern
|
|
shopt -s nullglob
|
|
|
|
# Remove orchestrator if present
|
|
if [ -d "${SKILL_DIR}/seo" ]; then
|
|
rm -rf "${SKILL_DIR}/seo"
|
|
echo " Removed: ${SKILL_DIR}/seo"
|
|
removed_skills=$((removed_skills + 1))
|
|
fi
|
|
|
|
# Remove every seo-* sub-skill directory
|
|
for skill_path in "${SKILL_DIR}"/seo-*; do
|
|
if [ -d "${skill_path}" ]; then
|
|
rm -rf "${skill_path}"
|
|
echo " Removed: ${skill_path}"
|
|
removed_skills=$((removed_skills + 1))
|
|
fi
|
|
done
|
|
|
|
# Remove every seo-*.md agent file
|
|
for agent_path in "${AGENT_DIR}"/seo-*.md; do
|
|
if [ -f "${agent_path}" ]; then
|
|
rm -f "${agent_path}"
|
|
echo " Removed: ${agent_path}"
|
|
removed_agents=$((removed_agents + 1))
|
|
fi
|
|
done
|
|
|
|
shopt -u nullglob
|
|
|
|
if [ "${removed_skills}" -eq 0 ] && [ "${removed_agents}" -eq 0 ]; then
|
|
echo " Nothing to remove. Claude SEO does not appear to be installed."
|
|
echo " If you installed via /plugin install, run /plugin uninstall instead."
|
|
return 0
|
|
fi
|
|
|
|
echo "✓ Claude SEO uninstalled (${removed_skills} skill dirs, ${removed_agents} agent files)."
|
|
}
|
|
|
|
main "$@"
|