chrome-cdp-ex: Instructions file for Claude Code

CLAUDE.md

chrome-cdp-ex CLAUDE.md is an instructions file for Claude Code from EndeavorYen/chrome-cdp-ex. It costs 1,015 tokens per session, scanned A, original, from a forked repository, MIT.

Project instructions for chrome-cdp-ex, a tool that lets AI agents control a running Chrome browser through Chrome DevTools Protocol, a built-in browser debugging interface.

In plain words
What is it for?
Working on chrome-cdp-ex while following its architecture, coding conventions, privacy defaults, and evidence-based workflow.
Why use it?
They give the agent rules for tracing errors to their causes, handling uncertainty, protecting privacy, and preserving the project's design.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is EndeavorYen/chrome-cdp-ex's own configuration. It tells Claude Code how to work on chrome-cdp-ex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chrome-cdp-ex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to EndeavorYen/chrome-cdp-ex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/EndeavorYen/chrome-cdp-ex/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/EndeavorYen/chrome-cdp-ex

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chrome-cdp-ex CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/endeavoryen/chrome-cdp-ex/claude-md.svg)](https://agentmods.dev/instructions/endeavoryen/chrome-cdp-ex/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/endeavoryen/chrome-cdp-ex/claude-md"><img src="https://agentmods.dev/badge/instructions/endeavoryen/chrome-cdp-ex/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,015 This file is loaded in full into every session.
When invoked 1,015 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01015 $0.01015
Opus 5 $0.00508 $0.00508
Sonnet 5 $0.00203 $0.00203
Haiku 4.5 $0.00102 $0.00102

Measured 8d ago against content hash fe21d73ac3eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

chrome-cdp-ex CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — chrome-cdp-ex

TL;DR — The product runtime is skills/chrome-cdp-ex/scripts/cdp.mjs, supported by focused helpers in scripts/lib/ and a stdio MCP adapter. Preserve the zero-runtime-dependency design, structured handoff contracts, privacy defaults, and evidence-first workflow.

Problem-Solving Principles

These principles are non-negotiable and apply to every task in this repository.

  1. Root cause first — When encountering an error, trace it to the root cause. Never paper over issues with workarounds. "It seems to work" ≠ "correctly fixed."
  2. Admit uncertainty — If you don't know the root cause, say "I'm not sure" rather than inventing a plausible but unverified explanation.
  3. Challenge your own answers — Always ask: Is this the best solution? Can it be better? Is there a fundamentally better approach?
  4. Be honest, not agreeable — The most valuable response is the correct one, not the one that flatters the user. Push back when the user's direction is suboptimal.

Project Overview

This is a Claude Code plugin and portable agent skill that gives LLM agents direct access to the user's running Chrome browser via the Chrome DevTools Protocol (CDP). It connects to existing browser sessions with login state, cookies, and open tabs; Playwright remains the better choice for clean deterministic test browsers.

  • Command runtime: skills/chrome-cdp-ex/scripts/cdp.mjs.
  • Focused helpers: skills/chrome-cdp-ex/scripts/lib/ owns action recovery, receipt surfaces, perception models, reports, page/screenshot/responsive health, target binding, and MCP mapping.
  • MCP server: skills/chrome-cdp-ex/scripts/mcp-server.mjs maps stdio MCP calls to the same CLI runtime.
  • Skill definition: skills/chrome-cdp-ex/SKILL.md is the always-loaded golden path; exhaustive command docs live in skills/chrome-cdp-ex/references/.
  • Plugin manifest: .claude-plugin/plugin.json must match package.json version metadata.
  • Runtime dependencies: Node.js 22+ and built-ins only; npm packages are development/test tooling.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 76 lines · 1,015 tokens per session scan A fe21d73ac3eb

Subscribe to this mod's changes

chrome-cdp-ex CLAUDE.md is an instructions file published in the GitHub repository EndeavorYen/chrome-cdp-ex (20 stars, last pushed 5d ago), licensed MIT. It adds 1,015 tokens to every session, about $0.0051 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens