python-cdp-scripts SKILL.md skillA

python-cdp-scripts from m13v/s4l is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add m13v/s4l/python-cdp-scripts@git:20260426.29a5735

Pins git:20260426.29a5735 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
m13v/s4l
Path
.claude/skills/python-cdp-scripts/SKILL.md
Versions recorded
2
Latest version
git:20260426.29a5735, committed Apr 26, 2026
First version recorded
Apr 1, 2026
Size
9,913 bytes
Repository stars
64
License
none declared

Use when the user says "convert this browser MCP call to python", "automate this with CDP", "stop using LLM tokens for this scrape", "make this a python script", or wants to replace browser-MCP-driven automation with a Python+CDP script that reuses the running MCP browser's session. Zero LLM tokens consumed once written. Per-platform (e.g., `scripts/linkedin_browser.py`).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Python CDP Browser Scripts

Create Python functions that connect to running MCP browser agents via Chrome DevTools Protocol (CDP) and perform complete browser automation workflows. Replaces Claude browser MCP calls entirely — zero LLM tokens consumed.

## Usage
```
/python-cdp-scripts <platform> <action-description>
/python-cdp-scripts linkedin "scrape engagement stats for our comments"
/python-cdp-scripts linkedin "check if posts are deleted"
/python-cdp-scripts linkedin "read unread DM conversations"
```

## How It Works

Unlike browser-script (JS scripts run via Claude's browser_run_code tool calls), this approach:
- Python connects directly to the running MCP browser via CDP port
- Reuses the existing logged-in session (cookies, tabs)
- Returns structured JSON to stdout
- Called from shell scripts — Claude is never involved
- Zero LLM tokens consumed for the automation

## Architecture

Each platform has a single Python file (e.g., `scripts/linkedin_browser.py`) with:
1. `find_cdp_port()` — scans running Chrome/Chromium processes for remote-debugging-port flags
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add m13v/s4l/python-cdp-scripts@sha256:05d18f1833059b69

The line at the top of this page pins the label git:20260426.29a5735, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ikojn5sxhods26sb.svg)](https://markdownregistry.com/a/art_ikojn5sxhods26sb)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Apr 1, 2026 and Apr 26, 2026, about one every 25 days. Its first recorded version is graded C and its latest A.

versioncommittedcommitsizeaudit
git:20260426.29a5735 latest2026-04-26 29a5735 9,913 BA view · diff
git:20260401.72eab822026-04-01 72eab82 9,491 BC view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9913 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

m13v/s4l · 64 stars · license none declared · pushed 2026-10-30 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ikojn5sxhods26sb
GET https://markdownregistry.com/api/v1/resolve?ref=m13v/s4l/python-cdp-scripts
GET https://markdownregistry.com/api/v1/blob/05d18f1833059b697a596592f06e0bc645a0696c9e3592ff87a11be394ec70bc

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from m13v/s4l

browser-script SKILL.md skill
m13v/s4l · .claude/skills/browser-script/SKILL.md · Create a browser automation script that bundles multi-step browser interactions into a single browser_run_code call…
git:20260401.7c1eb70 · audit A · 64 stars
posthog-funnel SKILL.md skill
m13v/s4l · .claude/skills/posthog-funnel/SKILL.md · Full product funnel stats: social posts, pageviews, CTA clicks, bookings. Use when: 'funnel stats', 'product stats'…
git:20260526.ed51d36 · audit A · 64 stars
CLAUDE.md CLAUDE.md file
m13v/s4l · CLAUDE.md
git:20260718.9386d4c · audit A · 64 stars
social-autoposter SKILL.md skill
m13v/s4l · SKILL.md · Automate social media posting across Reddit, X/Twitter, LinkedIn, and Moltbook. Find threads, post comments, create…
git:20260702.b05d2eb · audit A · 64 stars
llms.txt@public llms.txt file
m13v/s4l · public/llms.txt
git:20260520.f2bad30 · audit A · 64 stars
social-autoposter-setup SKILL.md skill
m13v/s4l · setup/SKILL.md · Set up social-autoposter for a new user end to end. Installs/repairs the runtime, discovers product and voice context…
git:20260718.95cb798 · audit A · 64 stars

Every file in m13v/s4l

Browse by kind, by grade A, or by owner.