verify-heading▌
example.com/pr-47-ai-gateway-smoke-6wh3lw · updated May 21, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Fetches https://example.com and verifies its main <h1> reads 'Example Domain'. Minimal end-to-end smoke test using the Browserbase Fetch API.
| name | verify-heading |
| title | Verify example.com Main Heading |
| description | >- Fetches https://example.com and verifies its main <h1> reads 'Example Domain'. Minimal end-to-end smoke test using the Browserbase Fetch API. |
| website | example.com |
| category | testing |
| tags | - testing - smoke-test - fetch-api - static-html - example |
| source | 'community: agent-runtime 2026-05-19' |
| updated | '2026-05-19' |
| recommended_method | api |
| alternative_methods | - method: browser rationale: >- Live Browserbase session works but is overkill — example.com is pure server-rendered HTML with one <h1>. Use only when the Fetch API is unavailable on the host. |
Verify example.com Main Heading
Purpose
Fetches https://example.com and verifies its main <h1> heading. Returns the heading text, the page title, and a boolean indicating whether the heading matches the canonical value Example Domain. Read-only; no auth, no forms, no JS execution required.
When to Use
- Smoke-testing a Browserbase-based stack end-to-end (API key, network egress, parsing pipeline).
- Validating a new agent's HTTP fetch path against a stable, known-good HTML response.
- Demonstrating the minimal
recommended_method: apihonesty pattern (Fetch API beats live-browser for static HTML). - Health-checking outbound connectivity in a CI/sandbox before exercising a more expensive site.
Workflow
-
Fetch the page via the Browserbase Fetch API (optimal — no browser session needed):
browse cloud fetch https://example.com --allow-redirects --output page.htmlExpected response:
{"ok": true, "statusCode": 200, "contentType": "text/html", "sizeBytes": ~528}. -
Extract the first
<h1>from the returned HTML. A regex is sufficient because example.com's markup is hand-written, single-line, with exactly one<h1>:python3 -c "import re,sys; m=re.search(r'<h1[^>]*>(.*?)</h1>', open('page.html').read(), re.I|re.S); print(m.group(1).strip() if m else '')" -
Compare against the canonical value
Example Domain. If equal, return{"verified": true, ...}; otherwise return{"verified": false, "heading": "<observed>"}so the caller can investigate whether IANA changed the reference page. -
(Optional) Also extract
<title>for a secondary sanity check — it has the same valueExample Domainand gives independent confirmation that the response wasn't a proxy error page.
Browser fallback
If for any reason the Fetch API is unavailable, drive a Browserbase session:
sid=$(browse cloud sessions create --keep-alive | jq -r .id)
ws=$(browse cloud sessions debug "$sid" | jq -r .wsUrl)
browse open https://example.com --cdp "$ws" --wait load
browse get text "h1" --cdp "$ws"
browse screenshot --cdp "$ws" --out final.png
browse cloud sessions update "$sid" --status REQUEST_RELEASE
Stealth/proxies are not needed — example.com is IANA's reserved demo domain with no anti-bot infrastructure.
Site-Specific Gotchas
- The page is pure server-rendered HTML — there is no JS, no XHR, no SPA hydration. Anyone reaching for a live browser to extract the H1 is over-engineering; the Fetch API returns the entire 528-byte document in one round trip.
- Exactly one
<h1>, hand-written single-line markup. A naïve regex<h1[^>]*>(.*?)</h1>works reliably; you do not need an HTML parser. Don't over-build. - The canonical heading is
Example Domain(verified 2026-05-19 against the live IANA reference page). If you ever see something else, treat it as a signal that either (a) IANA changed the example template, or (b) you hit a captive-portal / proxy intercept page rather than the real origin. <title>and<h1>have the same value. Two independent fields you can cross-check for free.- Redirects. Pass
--allow-redirectstobrowse cloud fetchdefensively — at the time of authoring,https://example.comreturns 200 directly with no redirect, but some networks intercept and 30x. - CDP from restricted sandboxes. The Browserbase CDP endpoints (
connect.browserbase.com,connect.usw2.browserbase.com) are sometimes blocked even whenapi.browserbase.comis allowlisted. On such hosts the Fetch API path is the only viable route — another reason it's the recommended method here. - No site-specific anti-bot caveats observed. No proxies, no stealth, no captcha, no user-agent fingerprinting. example.com is the canonical bare-friendly test domain.
Expected Output
{
"url": "https://example.com",
"status_code": 200,
"content_type": "text/html",
"size_bytes": 528,
"title": "Example Domain",
"heading": "Example Domain",
"verified": true
}
On a mismatch (defensive shape):
{
"url": "https://example.com",
"status_code": 200,
"title": "Example Domain",
"heading": "<observed-text>",
"verified": false,
"reason": "heading text differs from canonical 'Example Domain'"
}
On an upstream failure (Fetch API non-2xx, redirect loop, network block):
{
"url": "https://example.com",
"status_code": 0,
"verified": false,
"reason": "fetch failed: <error>"
}
How to use verify-heading on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add verify-heading
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches verify-heading from GitHub repository example.com/pr-47-ai-gateway-smoke-6wh3lw and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate verify-heading. Access the skill through slash commands (e.g., /verify-heading) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
Task Automation & Efficiency
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Knowledge Enhancement
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Quality Improvement
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Installation Steps
- 1.Install skill using provided installation command
- 2.Test with simple use case relevant to your work
- 3.Evaluate output quality and relevance
- 4.Iterate on prompts to improve results
- 5.Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices▌
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This▌
✓ Use When
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid When
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path▌
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★45 reviews- ★★★★★Tariq Bhatia· Dec 28, 2024
verify-heading has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Fatima Okafor· Dec 24, 2024
Solid pick for teams standardizing on skills: verify-heading is focused, and the summary matches what you get after install.
- ★★★★★Aisha Zhang· Dec 20, 2024
Useful defaults in verify-heading — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Shikha Mishra· Dec 16, 2024
verify-heading has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Tariq Thomas· Dec 4, 2024
verify-heading is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Aisha Lopez· Nov 27, 2024
Registry listing for verify-heading matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Aanya Liu· Nov 23, 2024
Keeps context tight: verify-heading is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Aanya Srinivasan· Nov 19, 2024
verify-heading reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Hassan Bhatia· Nov 15, 2024
I recommend verify-heading for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Rahul Santra· Nov 7, 2024
verify-heading reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 45