From supersaiyan
Detects whether Playwright MCP is configured for the current CLI and installs it if missing. Required dependency for investigate-ui-first. Handles Claude Code, Codex, and the missing-Node fallback gracefully. Invoke before any UI investigation if you are not sure Playwright MCP is available.
How this skill is triggered — by the user, by Claude, or both
Slash command
/supersaiyan:playwright-mcp-setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Detect or install the Playwright MCP server so `ui-validator` can drive
Detect or install the Playwright MCP server so ui-validator can drive
a real browser.
Run the bundled detection script:
!bash "${CLAUDE_SKILL_DIR}/scripts/detect-playwright.sh" 2>&1
The script prints exactly one of:
PLAYWRIGHT_MCP_PRESENT — nothing to do. Proceed to the
investigation.PLAYWRIGHT_MCP_MISSING; NODE_PRESENT — install (see below).PLAYWRIGHT_MCP_MISSING; NODE_MISSING — stop. Tell the user:
"Playwright MCP requires Node.js 18 or newer, which is not installed
on this machine. Install Node (https://nodejs.org/) and re-run the
task."If running under Claude Code and Node is present, run:
claude mcp add playwright -- npx -y @playwright/mcp@latest
Then re-run detection to verify.
If running under Codex, the install-codex.sh script writes the
Playwright MCP entry into ~/.codex/config.toml at install time. If
detection still reports it missing, re-run that script:
bash supersaiyan/scripts/install-codex.sh
claude mcp add fails: surface the error verbatim to the user
and stop. Do NOT improvise an alternative.browser_navigate errors
with a missing binary, the MCP server itself will print the install
command — pass that to the user.DISPLAY is unset, note this in the report
rather than failing silently.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub florian60430/supersaiyan --plugin supersaiyan