inspect
Skill0 starsChanged 7 days agoMITView on GitHub
Resolve a natural-language element description ("the red button in the hero", "the third card from the top") to a concrete DOM element in the current preview + source-code location. Uses Chrome DevTools MCP take_snapshot UIDs for deterministic targeting. Use when user asks to change/style/remove a specific visual element without pointing at source code.
18 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- saleh-alhaddad/itqan-engineeringtheir own version, first seen Nov 28, 2026
- sanityops-org/sanityops-frameworktheir own version, first seen Nov 28, 2026
- cyrilichti/agent-workflowstheir own version, first seen Nov 24, 2026
- rillmd/rilltheir own version, first seen Nov 22, 2026
- Josephbadigar/sitepeeltheir own version, first seen Nov 16, 2026
- Noah-OS/longhaultheir own version, first seen Nov 15, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- bluzir/claude-code-design★ 10298% same
Wrote their own version · 17
- chalk-lab/Mooncake.jl★ 411same name
- Arman-Kudaibergenov/1c-ai-development-kit★ 163same name
- matthewdonsemail-lab/log★ 103same name
- NakaokaRei/swift-mcp-gui★ 61same name
- howardpen9/cc-inspect★ 17same name
- saleh-alhaddad/itqan-engineering★ 12same name
- rillmd/rill★ 9same name
- HaipingShi/coderail★ 8same name
- Noah-OS/longhaul★ 4same name
- cyrilichti/agent-workflows★ 3same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- animated-videoSkill
- apply-editsSkill
- apply-tweaksSkill
- copy-exampleSkill
- create-design-systemSkill
- doctorSkill
- export-pdfSkill
- export-pptxSkill
- export-standaloneSkill
- governance-reviewSkill
- handoffSkill
- ingest-documentSkill
- ingest-figmaSkill
- ingest-githubSkill
- ingest-screenshotSkill
- interactive-prototypeSkill
- live-reloadSkill
- local-commentsSkill
- make-deckSkill
- make-editableSkill
- make-tweakableSkill
- publishSkill
- register-assetSkill
- ship-branchSkill
- snapshotSkill
- sync-design-systemSkill
- use-design-systemSkill
- verify-artifactSkill
- wireframeSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Prefer Read .claude/last-snapshot.txt if recent (< 5 min, same URL)
- Distinctive: line 31
Pick the best UID: If multiple candidates, show the top 3 to the user with a one-line summary each:
- Very specific: line 67
Optional next step: if user requested an edit alongside inspection ("make it bigger") — perform the Edit directly with the located line …
- Distinctive: line 71
When user phrase maps to multiple candidates:
- Distinctive: line 80
If >3 candidates and vision can't disambiguate — ask the user: "you mean X, Y, or Z?"
- Distinctive: line 84
Only resolves elements that rendered successfully (not in-error components)
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inspect
Replaces Claude Design's <mentioned-element> inline-comment protocol with a terminal-native alternative: user describes an element in English, Claude resolves to a specific DOM node + source location for surgical edits.
Prerequisites
- Chrome DevTools MCP has a page loaded (via
/previewor/done) .claude/last-snapshot.txtexists (produced by/done) — or we snapshot fresh
Pipeline
- Get snapshot:
- Prefer
Read .claude/last-snapshot.txtif recent (< 5 min, same URL) - Otherwise
mcp__chrome-devtools__take_snapshotto get fresh tree
- Prefer
- Match the description against snapshot nodes. Use vision + text heuristics:
- Role/tag match ("button" → role=button, tag=button)
- Text content match ("the CTA that says 'Get started'")
- Positional hints ("hero", "top", "third from left", "right sidebar")
- Color hints ("the red button") — if ambiguous, take screenshot and visually match
- Size hints ("the big heading")
- Hierarchy ("inside the first card")
- Pick the best UID. If multiple candidates, show the top 3 to the user with a one-line summary each:
Candidates for "red button in hero": [uid=3_12] <button> "Get started" — background #d83 [uid=3_28] <a class="btn"> "Try free" — background #c55 [uid=3_07] <div role=button> "Sign up" — background #d80 Which one (or describe differently)? - Resolve to source location. Once UID is confirmed:
mcp__chrome-devtools__evaluate_script— select by UID and return useful identifiers:// (Pass the picked uid as an arg to the evaluate function) (el) => ({ tag: el.tagName.toLowerCase(), id: el.id || null, classList: Array.from(el.classList), textContent: el.textContent.trim().slice(0, 80), dataAttrs: Object.fromEntries( Array.from(el.attributes) .filter(a => a.name.startsWith('data-')) .map(a => [a.name, a.value]) ), outerHTML: el.outerHTML.slice(0, 300), })- With these signals,
Grepthe source HTML (currentartifacts/<name>.html) for the matching element — preferringid>data-*> unique class combination > text snippet > outerHTML substring. - Return: source file path + approximate line number.
- Report:
Element: <button> "Get started" (uid 3_12) Source: artifacts/landing.html:142-148 Selector: #cta-primary - Optional next step: if user requested an edit alongside inspection ("make it bigger") — perform the
Editdirectly with the located line range. Otherwise just report and wait.
Heuristic priorities for "the red button" style references
When user phrase maps to multiple candidates:
- Explicit labels win — if
<button aria-label="Subscribe">and user says "the subscribe button", pick that regardless of visual cues - Visible-first — prefer elements currently in viewport over below-fold
- Unique before common — a unique hero button beats the third of eight grid buttons
- Large before small — for "the big title" prefer larger font-size
- Top-first for ambiguous position — "the button" → closest to top-of-page in reading order
When to fall back to asking
If >3 candidates and vision can't disambiguate — ask the user: "you mean X, Y, or Z?"
Limits
- Only resolves elements that rendered successfully (not in-error components)
- React components with generated class names (CSS modules): selector might not round-trip — use outerHTML substring for source grep
- Elements inside shadow DOM are visible to
take_snapshotbut Grep on source HTML won't find them — warn the user if this path fails
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

