js_code

js_code is a skill for Claude Code from vibesurf-ai/claude-surf. It costs 45 tokens per session (239 once invoked), scanned A, original, MIT.

A tool for extracting repeated information from webpages, such as product listings, articles, links, or table rows. It generates and runs JavaScript to return the extracted data in a structured form.

In plain words
What is it for?
Use it to collect all products and prices, article titles, listings, table data, or links of a particular kind from a webpage.
Why use it?
It removes the need to manually copy many similar items or write webpage-parsing code from scratch.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the surf plugin — 21 skills, 1 hook shipped together

Good fit Use it to collect all products and prices, article titles, listings, table data, or links of a particular kind from a webpage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vibesurf-ai/claude-surf/js_code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vibesurf-ai/claude-surf/js_code
Any agent
npx skills add vibesurf-ai/claude-surf --skill js_code
Clone the repo
git clone --depth 1 https://github.com/vibesurf-ai/claude-surf

Made for: Claude Code.

Or install surf, the plugin that ships this one along with the rest of its 21 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for js_code

README.md
[![agentmods](https://agentmods.dev/badge/skills/vibesurf-ai/claude-surf/js_code.svg)](https://agentmods.dev/skills/vibesurf-ai/claude-surf/js_code)
Your own site
<a href="https://agentmods.dev/skills/vibesurf-ai/claude-surf/js_code"><img src="https://agentmods.dev/badge/skills/vibesurf-ai/claude-surf/js_code.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 239 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00239
Opus 5 $0.00023 $0.00120
Sonnet 5 $0.00009 $0.00048
Haiku 4.5 $0.00005 $0.00024

Measured 6d ago against content hash ea484e64be0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

js_code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/js_code/SKILL.md · 37 lines

What it actually says

JS Code - Structured Data Extraction

Overview

Automatically generates and executes JavaScript to extract structured data from webpages. Best for extracting multiple items with the same structure.

When to Use

  • Extract all products/prices from a page
  • Get all posts/articles/listings
  • Pull table data
  • Extract repeated elements with same structure

Available Actions

Action Description
skill_code Generate and execute JavaScript from functional requirements with iterative retry logic

How It Works

Call VibeSurf API with skill_code and a prompt describing what to extract. The system generates optimized JavaScript and returns parsed results.

Best For

Use Case Why
All product prices Repeated structure
All article titles List extraction
Table data Structured parsing
All links of a type Pattern matching
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 37 lines · 45 tokens per session scan A ea484e64be0c

Subscribe to this mod's changes

js_code is a skill published in the GitHub repository vibesurf-ai/claude-surf (24 stars, last pushed 6mo ago), licensed MIT. It adds 45 tokens to every session and 239 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

memstack-development-webapp-testing

Use when the user says 'write browser tests', 'test this page', 'playwright test', 'e2e test', 'end to end test', 'browser test', 'test the UI', or needs Playwright-based browser testing for a web application. Do NOT use for unit tests, API tests, or non-browser testing.

cwinvestments/memstack · 75 tokens

browser-tools

Security wrapper over the upstream agent-browser skill, adding URL blocklisting, rate limiting, robots.txt enforcement, and scraping guardrails. Use when automating browser workflows that need safety limits.

yonatangross/orchestkit · 40 tokens

browser-automation-agent

Automate web browsers for AI agents using agent-browser CLI with deterministic element selection.

besoeasy/open-skills · 21 tokens

using-web-scraping

Search and scrape public web content with headless Chrome and DuckDuckGo using safe practices.

besoeasy/open-skills · 24 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

datit309/supergraph · 35 tokens

search

Search Google, Bing, Amazon, Walmart, YouTube, Google Maps, Google Scholar, and 100+ other engines via the SerpApi REST API. Calls the API using curl. Use when the user wants to search the web, find products or prices, look up local businesses, research academic papers, check news, find jobs, compare flights or…

serpapi/serpapi-claude-plugin · 86 tokens