The claude.ai-hosted marketplace refuses to sync any plugin that ships a
top-level bin/ directory, failing with
marketplace_sync_bin_directory_not_allowed. The runtime launcher lived in
bin/claude-seo, so the hosted listing could never sync and users could not
install the plugin from claude.ai at all.
bin/claude-seo is now scripts/claude-seo and resolves runtime.py as a sibling
(${launcher_dir}/runtime.py) rather than reaching up through ../scripts. No
top-level bin/ remains.
Skill and agent instructions no longer depend on bin/ PATH injection, which is
undocumented. The single canonical invocation is now:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run <script.py>
Claude Code substitutes ${CLAUDE_PLUGIN_ROOT} in SKILL.md body content and in
allowed-tools Bash rules, and exports it to hook processes, so the launcher is
found without any PATH entry. The path is quoted so a plugin root containing
spaces still works. AGENTS.md, which documents working in the checkout itself,
uses the repository-relative ./scripts/claude-seo instead.
Manual installs keep their existing behaviour. install.sh and install.ps1 copy
the launcher to ~/.claude/skills/seo/scripts/claude-seo, where runtime.py
already sits, and rewrite the canonical ${CLAUDE_PLUGIN_ROOT} token to that
absolute path in every Markdown file they install, because a manual install has
no plugin root. The rewrite stays atomic (temp file plus mv on Unix, single
UTF-8 write on Windows) and is idempotent: it consumes the plugin-root token,
so a second pass matches nothing. extensions/banana/install.sh does the same
for the files it installs.
tests/test_hosted_plugin_layout.py locks the contract: no top-level bin/, an
executable scripts/claude-seo that resolves its sibling runtime, no bare
launcher invocation left in any tracked skill, agent, or doc file, installers
that reference scripts/claude-seo, and a launcher smoke run that needs neither
network nor a provisioned venv.
Refs #298, #199.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015qjDbqj88SjLGY4MdQKGB8
(cherry picked from commit 1e1afc067db65463212e74b136d4212fefaa9416)
4.2 KiB
Installation Guide
Prerequisites
- Python 3.10+ with pip
- Git for cloning the repository
- Claude Code CLI installed and configured
Optional:
- Playwright Chromium - install.sh attempts this automatically; failure is non-fatal; needed only for SPA rendering and screenshots
Quick Install
Plugin Install (Claude Code 1.0.33+)
The recommended path. Inside Claude Code:
/plugin marketplace add AgriciDaniel/claude-seo
/plugin install claude-seo@agricidaniel-claude-seo
/seo setup
Plugin installation does not run package managers. /seo setup is an explicit,
one-time provisioning step that writes the virtual environment and browser only
to Claude's persistent plugin data. Use /seo doctor for a read-only check.
Manual Install (Unix, macOS, Linux)
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo.git
bash claude-seo/install.sh
Review-then-run alternative:
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh > install.sh
cat install.sh # review
bash install.sh # run when satisfied
rm install.sh
Manual Install (Windows, PowerShell)
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo.git
powershell -ExecutionPolicy Bypass -File claude-seo\install.ps1
The Windows path uses git clone rather than irm | iex because Claude Code's own security guardrails flag piped remote-script execution. Inspect install.ps1 before running.
Manual Installation
- Clone the repository
git clone https://github.com/AgriciDaniel/claude-seo.git
cd claude-seo
- Run the installer
./install.sh
- Verify the managed runtime
The installer delegates dependency and Chromium provisioning to the same runtime
used by every skill. It creates ~/.claude/skills/seo/.venv/ and never falls
back to global or user package installation.
~/.claude/skills/seo/scripts/claude-seo doctor
If core setup failed, rerun the inspected installer. If only Chromium failed, the installer reports a degraded result and raw-fetch analysis remains available.
Installation Paths
The installer copies files to:
| Component | Path |
|---|---|
| Main skill | ~/.claude/skills/seo/ |
| Sub-skills | ~/.claude/skills/seo-*/ |
| Subagents | ~/.claude/agents/seo-*.md |
| Runtime launcher | ~/.claude/skills/seo/scripts/claude-seo |
| Isolated Python | ~/.claude/skills/seo/.venv/ |
Verify Installation
- Start Claude Code:
claude
- Check that the skill is loaded:
/seo
You should see a help message or prompt for a URL.
Uninstallation
If installed as a plugin:
/plugin uninstall claude-seo@agricidaniel-claude-seo
/plugin marketplace remove AgriciDaniel/claude-seo
If installed manually, run the uninstaller from a fresh clone:
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo.git
bash claude-seo/uninstall.sh
uninstall.sh removes all installed sub-skills, sub-agents, and the plugin's MCP entries from ~/.claude/settings.json. Do not maintain a hand-coded rm list. The shipped uninstaller is the canonical source.
Upgrading
To upgrade to the latest version:
Caution: Prefer downloading, inspecting, then running remote scripts; the pipe-to-shell form below is the less-safe convenience option.
# Uninstall current version
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/uninstall.sh | bash
# Install new version
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh | bash
Troubleshooting
"Skill not found" error
Ensure the skill is installed in the correct location:
ls ~/.claude/skills/seo/SKILL.md
If the file doesn't exist, re-run the installer.
Python dependency errors
Run the managed setup again:
~/.claude/skills/seo/scripts/claude-seo setup
Playwright screenshot errors
Run the managed setup again and inspect the result:
~/.claude/skills/seo/scripts/claude-seo setup
~/.claude/skills/seo/scripts/claude-seo doctor
Permission errors on Unix
Make sure scripts are executable:
chmod +x ~/.claude/skills/seo/scripts/*.py