Skip to content

Adonis0123/adonis-skills / skills/chrome-dev-mcp

chrome-dev-mcp

Verified

Use this skill when the user invokes /chrome-dev-mcp or asks for Chrome DevTools MCP, CDP, list_pages/select_page, UXC packaging for Chrome DevTools, DOM snapshots, Console, Network, Performance, Lighthouse, heap analysis, browser-internal debugging, connection recovery, or correct-Chrome validation across Claude Code, Codex, Grok Build/Grok002, Cursor CLI, Hermes, or WorkBuddy. Use it when the evidence is Chrome-specific (Lighthouse, a full trace, heap data) or the caller has no page session yet; a page already open in ego-browser keeps its own Console and request diagnosis. Also use it as the verification step right after the user or this session changes a web UI or asks to accept or check a page: collect a screenshot, Console, and Network evidence before calling it done. Do not use it for ordinary navigation, form filling, scraping, or desktop UI unless browser-internal signals or UI-change acceptance are required. A passing readiness or list_pages check proves the connection only, never the change.

scripts/configure-local.zsh

View on GitHub
#!/bin/zsh

set -euo pipefail

script_dir="${0:A:h}"
source "$script_dir/lib/load-config.zsh"

wrapper=""
launcher=""
exclusive_key=""
link_dir=""
config_path="$(chrome_dev_mcp_config_path)"

fail_closed() {
  print -u2 -- "STATUS=ERROR"
  print -u2 -- "ERROR_CLASS=$1"
  exit 69
}

require_value() {
  [[ $# -ge 2 && -n "$2" && "$2" != --* ]] || fail_closed "missing_option_value"
}

while (( $# > 0 )); do
  case "$1" in
    --wrapper)
      require_value "$@"
      wrapper="$2"
      shift 2
      ;;
    --launcher)
      require_value "$@"
      launcher="$2"
      shift 2
      ;;
    --uxc-exclusive-key)
      require_value "$@"
      exclusive_key="$2"
      shift 2
      ;;
    --link-dir)
      require_value "$@"
      link_dir="$2"
      shift 2
      ;;
    --config)
      require_value "$@"
      config_path="$2"
      shift 2
      ;;
    *) fail_closed "unexpected_arguments" ;;
  esac
done

[[ -x "$wrapper" ]] || fail_closed "wrapper_missing"
[[ -x "$launcher" ]] || fail_closed "launcher_missing"
[[ -n "$exclusive_key" ]] || fail_closed "exclusive_key_missing"
[[ -n "$link_dir" ]] || fail_closed "link_dir_missing"

config_dir="${config_path:h}"
/bin/mkdir -p "$config_dir"
tmp_path="$(mktemp "$config_dir/config.zsh.XXXXXX")"
cleanup() {
  /bin/rm -f -- "$tmp_path"
}
trap cleanup EXIT INT TERM

{
  print -r -- "# Generated by chrome-dev-mcp; local-only runtime configuration."
  print -r -- "typeset -gx CHROME_DEV_MCP_WRAPPER=${(qqq)wrapper}"
  print -r -- "typeset -gx CHROME_DEV_MCP_LAUNCHER=${(qqq)launcher}"
  print -r -- "typeset -gx CHROME_DEV_MCP_UXC_EXCLUSIVE_KEY=${(qqq)exclusive_key}"
  print -r -- "typeset -gx CHROME_DEV_MCP_LINK_DIR=${(qqq)link_dir}"
} >| "$tmp_path"

/usr/bin/install -m 0600 "$tmp_path" "$config_path"
print -- "CHROME_DEV_MCP_CONFIG=READY"
print -- "CONFIG_PATH=$config_path"
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall