create-md-from-browsermcp-snapshot
Skill27 starsChanged 49 days agoMITView on GitHub
Extracts and converts BrowserMCP accessibility tree snapshots into clean, high-fidelity Markdown documents with correct structures (headings, lists, tables, blockquotes, code blocks, formatting, and links). Use when the user asks to create a Markdown document from a webpage; especially if they ask to do it with BrowserMCP.
In this repository8 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Before attempting to navigate a site or capture a snapshot:
- Very specific: line 28
Verify Tool Availability: Check whether the browsermcp server and its browser tool (or legacy browser_snapshot tool) are present in your …
- Distinctive: line 30
Stop execution immediately and notify the user.
- Distinctive: line 46
Use this skill when:
- Very specific: line 69
Capture Snapshot: Call the browsermcp browser tool with newline-separated commands to navigate to the target URL and capture a full …
- Distinctive: line 75
Save Snapshot Text: If the MCP response is not already saved to a step output file on disk, write the raw snapshot output to a temporary …
- Very specific: line 76
Execute Parser: Run parse_snapshot.py, passing the path of the captured snapshot text file and specifying the output Markdown path:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Markdown from BrowserMCP Snapshot
This skill converts a raw accessibility tree snapshot captured by BrowserMCP (via the browser tool's snapshot command in BrowserMCP 2.0+, or the legacy browser_snapshot tool in 1.x) into a cleanly formatted, high-fidelity Markdown document.
Prerequisites & BrowserMCP Check
[!IMPORTANT] This skill strictly requires the BrowserMCP server (2.0+ recommended) and Chrome extension to be installed and available in the environment.
Before attempting to navigate a site or capture a snapshot:
- Verify Tool Availability: Check whether the
browsermcpserver and itsbrowsertool (or legacybrowser_snapshottool) are present in your active MCP tools list. - If BrowserMCP is NOT Found:
- Stop execution immediately and notify the user.
- Guide the user to install BrowserMCP 2.0+ (
@browsermcp/mcp@latest) and configure thebrowsermcpserver entry in their MCP configuration (e.g. inconfig/mcp_config.jsonor Antigravity MCP settings):{ "mcpServers": { "browsermcp": { "command": "npx", "args": ["-y", "@browsermcp/mcp@latest"] } } } - Request that the user re-run the task once BrowserMCP is enabled and connected.
When to Use
Use this skill when:
- You have captured a webpage's accessibility tree YAML using the BrowserMCP
browsertool (snapshot --max 50000). - You need to generate a structured, high-fidelity Markdown (
.md) representation of the page content. - You want to extract clean headings, lists, tables (including
columnheaderrows), fenced code blocks, blockquotes, inline formatting, and link destinations from the captured page layout.
Note: This skill complements browser navigation using the BrowserMCP tool. It is NOT intended to be used with other browser navigation tools, such as Playwright or the Antigravity built-in browser agent. Be sure to be explicit about what tools to use and what to avoid.
How it Works
The skill runs a Python parser (parse_snapshot.py) that reads the captured accessibility tree YAML snapshot, reconstructs character-indexed undefined inline text nodes emitted by BrowserMCP 2.0, builds a parent-child node hierarchy, unwraps nested structural containers (main, article, generic), and recursively converts the tags and attributes into Markdown text.
Folder Structure
create-md-from-browsermcp-snapshot/
├── SKILL.md
└── scripts/
└── parse_snapshot.pyExecution Procedure
- Verify BrowserMCP: Confirm
browsermcp(browsertool) is installed as detailed in Prerequisites & BrowserMCP Check. If absent, guide the user to install it. - Capture Snapshot: Call the
browsermcpbrowsertool with newline-separated commands to navigate to the target URL and capture a full accessibility tree snapshot using--max 50000(so output is not truncated at the default 10,000-character cap):
(Tip: To avoid disturbing the user's active tab, you can open a temporary background tab withgoto <url> snapshot --max 50000tab new <url>, runsnapshot --max 50000, and close it withtab close. For very large pages, you can also scope the snapshot to the main content element, e.g.snapshot main --max 50000orsnapshot article --max 50000.) - Save Snapshot Text: If the MCP response is not already saved to a step output file on disk, write the raw snapshot output to a temporary file.
- Execute Parser: Run
parse_snapshot.py, passing the path of the captured snapshot text file and specifying the output Markdown path:
uv run python ~/.gemini/config/skills/create-md-from-browsermcp-snapshot/scripts/parse_snapshot.py \
--input <snapshot_path> \
--output <markdown_path> \
[--start-heading "<heading_title>"] \
[--end-marker "<footer_text>"]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.

