spark-web: Skill for Cursor

.cursor/skills/chrome-devtools-storybook/SKILL.md

chrome-devtools-storybook is a skill for Cursor from leboncoin/spark-web. It costs 38 tokens per session (1,064 once invoked), scanned A, original, MIT.

A guide to testing Storybook components in a real browser with Chrome DevTools. Storybook is a tool that displays isolated component examples, and the guide uses each example's direct iframe page for interaction and visual checks.

In plain words
What is it for?
Use it to open a local Storybook story, click or type in it, check focus and keyboard behavior, and capture visual results through Chrome DevTools.
Why use it?
It avoids testing the surrounding Storybook documentation page when the actual target is the component example. This makes browser navigation and checks more direct.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is leboncoin/spark-web's own configuration. It tells Cursor how to work on spark-web 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 spark-web configures →

Reuse

Borrowing it

Nothing to install: this file belongs to leboncoin/spark-web. 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/leboncoin/spark-web/main/.cursor/skills/chrome-devtools-storybook/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/leboncoin/spark-web

Made for: Cursor.

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-devtools-storybook

README.md
[![agentmods](https://agentmods.dev/badge/skills/leboncoin/spark-web/chrome-devtools-storybook/github.svg)](https://agentmods.dev/skills/leboncoin/spark-web/chrome-devtools-storybook)
Your own site
<a href="https://agentmods.dev/skills/leboncoin/spark-web/chrome-devtools-storybook"><img src="https://agentmods.dev/badge/skills/leboncoin/spark-web/chrome-devtools-storybook/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chrome-devtools-storybook

Your own site · 80×15
<a href="https://agentmods.dev/skills/leboncoin/spark-web/chrome-devtools-storybook"><img src="https://agentmods.dev/badge/skills/leboncoin/spark-web/chrome-devtools-storybook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,064 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
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.00038 $0.01064
Opus 5 $0.00019 $0.00532
Sonnet 5 $0.00008 $0.00213
Haiku 4.5 $0.00004 $0.00106

Measured 5d ago against content hash 1634d377bec0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

chrome-devtools-storybook 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 5d 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.

.cursor/skills/chrome-devtools-storybook/SKILL.md · 83 lines

How it starts

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

Chrome DevTools + Storybook Browser Tests

Use the project-0-spark-chrome-devtools MCP server to run browser-level tests and interactions against local Storybook stories. Storybook renders stories inside iframes on the docs pages, so you must always target the underlying iframe.html story URL to avoid unnecessary DOM exploration.

When to Use

  • User asks for browser-based testing or visual checks of a Storybook component
  • User mentions chrome devtools, CDP, DevTools MCP, or similar
  • User provides a Storybook URL on http://localhost:6006 (or another Storybook host)
  • You need to interact with a specific story (click, type, focus, keyboard navigation, screenshots, etc.)

Storybook URL Rules

Storybook has two kinds of URLs:

  • Docs pages (outer shell with iframes and MDX):
    http://localhost:6006/?path=/docs/components-accordion--docs
  • Story iframes (what you actually want to test):
    http://localhost:6006/iframe.html?id=components-accordion--default&viewMode=story

Always navigate chrome-devtools to the iframe URL, not the docs page.

Converting docs/story URLs to iframe URLs

  1. Docs page URL (?path=/docs/...):

    • Example: http://localhost:6006/?path=/docs/components-accordion--docs
    • Extract the part after /docs/ and before --docs → here: components-accordion
    • Build the default story id by appending --default:
      • id=components-accordion--default
    • Final iframe URL:
      • http://localhost:6006/iframe.html?id=components-accordion--default&viewMode=story
  2. Story page URL (?path=/story/...):

    • Example: http://localhost:6006/?path=/story/components-accordion--with-icon
    • Extract everything after /story/ → here: components-accordion--with-icon
    • Use this as the id directly:
      • id=components-accordion--with-icon
    • Final iframe URL:
      • http://localhost:6006/iframe.html?id=components-accordion--with-icon&viewMode=story
  3. Other query params:

    • Always include viewMode=story in the iframe URL.
    • If the user provides globals, args, or other query parameters, append them to the iframe URL as-is.

Read the full file on GitHub · 83 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. 5d ago First seen · 83 lines · 38 tokens per session scan A 1634d377bec0

Subscribe to this mod's changes

chrome-devtools-storybook is a skill published in the GitHub repository leboncoin/spark-web (93 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,064 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.