Agent skill

Cdp

by wellwelwel in wellwelwel/lagune

Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM.

MITAuto-check passedFrontend & Design

Install Cdp

skills CLI
$ npx skills add wellwelwel/lagune --skill cdp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wellwelwel/lagune cdp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wellwelwel/lagune.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cdp .claude/skills/cdp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cdp
GitHub stars
173
Token cost
~749 tokens
SKILL.md length
325 words
Files
2
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM.

  • A frontend change can only be confirmed once rendered
  • SKILL.md covers Measure, never eyeball, When to use it, Dependencies and Running it
  • Runs TypeScript scripts from its folder; calls npx and npm
  • Tasks that involve Design tokens

What it does

Cdp is an agent skill from wellwelwel/lagune. Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM. Use when a frontend change can only be confirmed once rendered, for layout, spacing, alignment, overflow, or theme tokens.

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `tools/cdp.ts`).

It sits in Frontend & Design, covering Design tokens. The repository describes itself as: 🌊 Lagune is your security copilot as you build, your Blue Team when you audit, whether you're a developer or not (no API key needed). The licence is MIT.

When your agent uses it

  • A frontend change can only be confirmed once rendered
  • Tasks that involve Design tokens

Example prompts

  • “/cdp”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit c97ddfc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npx
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cdp loads about 749 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 325 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~749

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wellwelwel/lagune at commit c97ddfc, republished under its MIT licence (© wellwelwel). 325 words, ~749 tokens.

Download SKILL.mdSave it as .claude/skills/cdp/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cdp
description
Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM. Use when a frontend change can only be confirmed once rendered, for layout, spacing, alignment, overflow, or theme tokens.
user-invocable
true
metadata.author
Weslley Araújo
metadata.version
1.0.0
metadata.source
https://github.com/wellwelwel/skills

Rendered result verification

This skill owns the verification of what the browser actually renders. It drives a running page through Chrome's built-in DevTools Protocol (CDP) to inspect the DOM, computed styles, and layout, and to capture screenshots. It works against any URL, whatever app or domain is serving it.

Measure, never eyeball

For any spacing or alignment claim, measure the rendered DOM and report the numbers. Read geometry off the elements themselves, for example the box between an element and its container's edges, and state the values you found. A screenshot that looks aligned is not evidence.

When to use it

Reach for it when a change is hard to verify from the source alone: layout, spacing, alignment, overflow, theme tokens, or anything that only shows up once rendered. Skip it for simple, self-evident edits, for example adding a shadow, where the result is obvious from the diff.

Dependencies

The helper needs playwright and tsx. Check each with npm ls <package>, install whatever is missing as a development dependency with the package manager the root lockfile points to, then fetch the pinned browser with npx playwright install chromium.

Running it

The helper ships with this skill, at tools/cdp.ts next to this file. Run it from the project root under npx tsx, pointing at wherever the skill is installed, and write the PNGs to a directory the project ignores in git.

sh
npx tsx <path-to-this-skill>/tools/cdp.ts --out ./temp/shots --shot 'label|<url>'
FlagPurpose
--shot 'label|url'One capture, repeatable. The label names the PNG
--measure <expr>Expression evaluated on every shot, its value printed with the shot
--out <dir>Where the PNGs are written
--attach <port>Reuse a Chromium already exposing a CDP endpoint
--width, --height, --scaleViewport and device pixel ratio
--settle <ms>Wait after load before measuring and capturing

Put any query params the page supports, a forced theme, a route, or a flag, straight in the URL. Take the same shot before and after a change when the point is the difference between them.

© wellwelwel, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/cdp of wellwelwel/lagune.

  • SKILL.md
  • tools/cdp.ts

Open the folder on GitHubat commit c97ddfc

Compare with similar skills

Cdp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cdp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cdp this skillwellwelwel/lagune173—~749Automated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Design SystemOhh-889/skyroc79511 repos~1.7kAutomated safety check: PassMIT
Design Dnazanwei/design-dna1.9k1 repos~2.1kAutomated safety check: PassMIT

Similar skills

  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed
  • Design Dna

    zanwei/design-dna

    Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects…

    1.9k GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Figma Design to Code

    warpdotdev/warp

    Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.

    65k GitHub starsUsed in 4 repos~2.9k tokens
    Frontend & DesignAuto-check passed

More from wellwelwel/lagune

All 8 skills in this repo
  • Simulate

    wellwelwel/lagune

    How to simulate a Lagune command end to end so the user sees both the process and the results in chat.

    173 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Specialize

    wellwelwel/lagune

    Author a new built-in Lagune sub-skill inside the Lagune source, not a scaffolded .lagune/ target.

    173 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check passed
  • UI

    wellwelwel/lagune

    Design engineering principles for making interfaces feel polished.

    173 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Dashboard

    wellwelwel/lagune

    Authoritative reference for the Lagune dashboard, a live view of a project's .lagune/ chain with a locked-down local action surface.

    173 GitHub stars~3k tokensUpdated 2 days ago
    Auto-check passed
  • Architecture

    wellwelwel/lagune

    Authoritative architecture reference for Lagune, covering repository layout, the command/template split, the core/adapter boundary, what it scaffolds, and the tracking-map model.

    173 GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check passed
  • Engineering

    wellwelwel/lagune

    Authoritative engineering reference covering code conventions, comments, TypeScript type rules, testing, and commit messages.

    173 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed

Questions about Cdp

What does Cdp do?

Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM. Cdp is an agent skill from wellwelwel/lagune. Visual verification of a running page through Chrome's DevTools Protocol, capturing screenshots and measuring the rendered DOM.

When should I use Cdp?

Cdp fits situations like: A frontend change can only be confirmed once rendered; tasks that involve Design tokens.

How do I install Cdp in Claude Code?

Run `npx skills add wellwelwel/lagune --skill cdp -a claude-code`. Or copy the skill folder (.claude/skills/cdp in wellwelwel/lagune) into .claude/skills/cdp in your project. Claude Code loads it when a task matches its description.

How do I install Cdp in Codex?

Run `npx skills add wellwelwel/lagune --skill cdp -a codex`. Or copy the skill folder (.claude/skills/cdp in wellwelwel/lagune) into .agents/skills/cdp in your project. Codex loads it when a task matches its description.

Can I use Cdp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wellwelwel/lagune --skill cdp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cdp, .gemini/skills/cdp, .github/skills/cdp and .opencode/skills/cdp in your project.

What does Cdp need to run?

Going by SKILL.md and its folder, Cdp needs TypeScript for the scripts in its folder and the command-line tools its instructions call (npx and npm). Our summary lists: Node.js.

Does Cdp access the network?

SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cdp safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cdp use?

Cdp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cdp use?

About 749 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cdp?

Skills that share tags, products or a category with Cdp: Figma Design System Builder (warpdotdev/warp, 65k stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars), MCP Development (coollabsio/coolify, 63k stars) and Design System (Ohh-889/skyroc, 795 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cdp?

wellwelwel (a GitHub user) maintains it in wellwelwel/lagune, which has 173 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 8, 2026.

Source: wellwelwel/lagune on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.