browser-discovery

Automate browser-based documentation discovery with curl fallback and structured JSON output.

8|1|Updated Jul 11, 2025
One-click install
npx skills add https://github.com/Consiliency/treesitter-chunker --skill browser-discovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: browser-discovery
Source: https://github.com/Consiliency/treesitter-chunker/tree/main/.ai-dev-kit/skills/browser-discovery
Command: npx skills add https://github.com/Consiliency/treesitter-chunker --skill browser-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the discovery of documentation pages by using browser automation when static fetches fail or JS-rendered content is present, enabling reliable indexing of online docs.

Core Features & Use Cases

  • Automatic browser-tool detection: Identify available tools (Antigravity, Cursor, Playwright) and select the best option for the task.
  • Curl-first fallback with JS rendering: Try curl when possible and fall back to browser automation for dynamic pages.
  • Structured discovery output: Return a JSON object with discovered pages, a navigation structure, and an indicator if JS rendering was required.

Quick Start

To begin, supply a homepage URL and let the skill fetch the document structure. For example, discover docs at https://docs.example.dev to obtain a list of pages and their sections.

Frequently Asked Questions about browser-discovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate discovery of documentation pages when static fetches fail?

Browser-based documentation discovery automates fetching when curl or static methods fail on JavaScript-rendered sites. It detects available tools like Playwright, applies curl-first logic, and returns structured JSON with discovered pages, navigation structure, and a rendering-required indicator.

Can I use Playwright for automated documentation indexing?

Yes. Playwright is one of several browser tools this skill automatically detects and uses for documentation discovery. The skill selects the best available tool—Playwright, Cursor, or Antigravity—based on your environment and falls back to curl when static fetches succeed.

What's the best way to handle JavaScript-rendered documentation sites?

Browser automation handles JavaScript-rendered docs by detecting when static fetches fail, then triggering dynamic rendering to extract links and sections. The skill tries curl first for efficiency, then escalates to browser tools only when needed, returning structured output with a JS-rendering indicator.

Do I need to configure tool detection for browser automation?

No manual configuration required. Browser-tool detection is automatic—the skill identifies Playwright, Cursor, or Antigravity availability in your environment and selects the optimal option without setup overhead.

How does curl-fallback logic work in documentation discovery?

Curl-fallback attempts static fetches first for speed and simplicity. If curl succeeds, documentation pages are extracted immediately. Only if static fetches fail or JS rendering is detected does the skill activate browser automation for dynamic content extraction.

What output structure does automated documentation discovery provide?

Structured JSON output includes discovered pages, a navigation hierarchy representing site structure, and a flag indicating whether JavaScript rendering was required. This enables reliable indexing and downstream processing of online documentation portals.