From 4da6cfbf59fda3f869f65688b195db8a0a33131e Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Tue, 7 Apr 2026 20:27:27 -1000 Subject: [PATCH] docs: regenerate SKILL.md with Extraction category Add Extraction category to browse command table ordering. Regenerate SKILL.md files to include media, data, download, scrape, archive commands in the generated documentation. Co-Authored-By: Claude Opus 4.6 (1M context) --- SKILL.md | 9 +++++++++ browse/SKILL.md | 9 +++++++++ scripts/resolvers/browse.ts | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/SKILL.md b/SKILL.md index 3d951a67..94ba826b 100644 --- a/SKILL.md +++ b/SKILL.md @@ -773,11 +773,20 @@ Refs are invalidated on navigation — run `snapshot` again after `goto`. | Command | Description | |---------|-------------| | `accessibility` | Full ARIA tree | +| `data [--jsonld|--og|--meta|--twitter]` | Structured data: JSON-LD, Open Graph, Twitter Cards, meta tags | | `forms` | Form fields as JSON | | `html [selector]` | innerHTML of selector (throws if not found), or full page HTML if no selector given | | `links` | All links as "text → href" | +| `media [--images|--videos|--audio] [selector]` | All media elements (images, videos, audio) with URLs, dimensions, types | | `text` | Cleaned page text | +### Extraction +| Command | Description | +|---------|-------------| +| `archive [path]` | Save complete page as MHTML via CDP | +| `download [path] [--base64]` | Download URL or media element to disk using browser cookies | +| `scrape [--selector sel] [--dir path] [--limit N]` | Bulk download all media from page. Writes manifest.json | + ### Interaction | Command | Description | |---------|-------------| diff --git a/browse/SKILL.md b/browse/SKILL.md index 5bc9b02b..420e2b0b 100644 --- a/browse/SKILL.md +++ b/browse/SKILL.md @@ -665,11 +665,20 @@ $B prettyscreenshot --cleanup --scroll-to ".pricing" --width 1440 ~/Desktop/hero | Command | Description | |---------|-------------| | `accessibility` | Full ARIA tree | +| `data [--jsonld|--og|--meta|--twitter]` | Structured data: JSON-LD, Open Graph, Twitter Cards, meta tags | | `forms` | Form fields as JSON | | `html [selector]` | innerHTML of selector (throws if not found), or full page HTML if no selector given | | `links` | All links as "text → href" | +| `media [--images|--videos|--audio] [selector]` | All media elements (images, videos, audio) with URLs, dimensions, types | | `text` | Cleaned page text | +### Extraction +| Command | Description | +|---------|-------------| +| `archive [path]` | Save complete page as MHTML via CDP | +| `download [path] [--base64]` | Download URL or media element to disk using browser cookies | +| `scrape [--selector sel] [--dir path] [--limit N]` | Bulk download all media from page. Writes manifest.json | + ### Interaction | Command | Description | |---------|-------------| diff --git a/scripts/resolvers/browse.ts b/scripts/resolvers/browse.ts index 9a20447b..ef7e9485 100644 --- a/scripts/resolvers/browse.ts +++ b/scripts/resolvers/browse.ts @@ -13,7 +13,7 @@ export function generateCommandReference(_ctx: TemplateContext): string { // Category display order const categoryOrder = [ - 'Navigation', 'Reading', 'Interaction', 'Inspection', + 'Navigation', 'Reading', 'Extraction', 'Interaction', 'Inspection', 'Visual', 'Snapshot', 'Meta', 'Tabs', 'Server', ];