pandascript

pandascript is a skill for Claude Code, Codex from lightpanda-io/agent-skill. It costs 36 tokens per session (3,800 once invoked), scanned A, original, Apache-2.0.

A guide for writing PandaScript files, which are replayable browser-automation scripts for Lightpanda. It explains how to navigate pages, extract data, run page-side JavaScript, and manage multiple pages.

In plain words
What is it for?
Use it to create deterministic, token-free scripts that visit websites, read content, click elements, run page code, and process independent URLs.
Why use it?
It prevents scripts from using browser or Node.js features that PandaScript does not provide.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create deterministic, token-free scripts that visit websites, read content, click elements, run page code, and process independent URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lightpanda-io/agent-skill/pandascript
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.

Any agent
npx skills add lightpanda-io/agent-skill --skill pandascript
Clone the repo
git clone --depth 1 https://github.com/lightpanda-io/agent-skill

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin lightpanda — /plugin install lightpanda after adding the marketplace above.

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 pandascript

README.md
[![agentmods](https://agentmods.dev/badge/skills/lightpanda-io/agent-skill/pandascript/github.svg)](https://agentmods.dev/skills/lightpanda-io/agent-skill/pandascript)
Your own site
<a href="https://agentmods.dev/skills/lightpanda-io/agent-skill/pandascript"><img src="https://agentmods.dev/badge/skills/lightpanda-io/agent-skill/pandascript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pandascript

Your own site · 80×15
<a href="https://agentmods.dev/skills/lightpanda-io/agent-skill/pandascript"><img src="https://agentmods.dev/badge/skills/lightpanda-io/agent-skill/pandascript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,800 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.03800
Opus 5.5 $0.00014 $0.01520
Sonnet 5.5 $0.00007 $0.00760
Haiku 4.5 $0.00004 $0.00380

Measured today against content hash 4d11f38e4e16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pandascript 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 today.

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.

pandascript/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing Lightpanda agent scripts

Run with:

./lightpanda run script.js

Mental model (get this right first)

The script runs in its own V8 context — neither the page nor Node.js:

  • Page is the only global. new Page() makes a page and await page.goto(url) navigates it; every other primitive is a method on that page: const page = new Page(); await page.goto(url); page.extract({...}); page.click(sel);.
  • No window, document, DOM, localStorage — read pages with page.extract(...), run page-side JS only via page.evaluate("...").
  • No require, process, fs, npm. Standard ECMAScript built-ins only (JSON, Map, template literals, …).
  • page.goto(...) is async — always await it. Page methods are synchronous: const data = page.extract({...}), never await page.extract(...). The script body runs as an async function, so top-level await is allowed.
  • Re-navigating reuses the same page: await page.goto(url2) keeps page valid and points it at the new URL, discarding the old page — read it before navigating away. Independent URLs don't share a page: make a new Page() for each and load them in parallel (fan-out, best practice 2).
  • Page evaluate("...") cannot see script variables — interpolate values into the string. Script code cannot see page variables.
  • Variables persist across navigations within one run, so cross-page aggregation is plain JS.
  • return <value> is the script's output, printed automatically (objects/arrays as JSON). End with return page.extract({...}); or return results;. A bare trailing expression is NOT printed; neither is console.log(JSON.stringify(...)).

Primitives

Page is the only global; new Page() makes a page and everything else is a method on it.

Call Notes
new Page() Makes a page object. No navigation yet — call page.goto(url) before any other method. Make several to navigate in parallel (fan-out, best practice 2).
page.close() Marks the page done; later method calls on it error. The page is otherwise reclaimed at script end.
await page.goto(url[, { timeout, waitUntil }]) Async — must be awaited. Navigates the page (re-navigating reuses the same object). Waits for load. Rejects on navigation failure; a timeout does NOT reject (the page may still be usable). Default timeout 10000 ms. waitUntil: one of "load", "domcontentloaded", "networkalmostidle", "networkidle", "done".
page.screenshot([{ path, selector, fullPage, strip, url, timeout }]) path is required: writes a PNG of the text layout.
page.evaluate(script[, { url, timeout, save }]) Page-side JS escape hatch; returns text (JSON for objects/arrays).
page.extract(schema) The only primitive returning a real JS value (object/array). The schema is its only argument. See schema below.
page.click(selector)
page.fill(selector, value)
page.scroll([{ selector, x, y }])
page.waitForSelector(selector[, { timeout }]) waitFor* default timeout 5000 ms.
page.waitForScript(script[, { timeout }]) Re-evaluates page JS until truthy.
page.waitForState(state[, { timeout }]) state: one of "load", "domcontentloaded", "networkalmostidle", "networkidle", "done".
page.hover(selector)
page.press(selector, key) Selector first! page.press("Enter") binds "Enter" to selector and fails — use page.press(null, "Enter") or page.press({ key: "Enter" }).
page.selectOption(selector, value)
page.setChecked(selector[, checked]) checked defaults to true.
page.download([{ url, path }]) Sends the session's cookies, so authenticated downloads work. Nothing is written unless the status is 200-203, and a failed download leaves path as it was.
page.callPageTool([{ name, arguments }]) Runs a tool the page registered through WebMCP; returns its text result.
page.classify(questions[, { selector, presets }]) Classifies page state or candidate elements via TypeSafe Jev: an array of categories, or an object of presets and questions. Replay calls Jev live and needs TYPESAFE_API_KEY.
page.acceptCookies([{ prefer, selectors }]) Clicks the consent control Jev picks, then re-reads the page to check the banner went. Pass the selectors from an earlier result to click them with no model call; otherwise needs TYPESAFE_API_KEY. prefer: one of "accept", "reject".
page.login([{ password, username, usernameSelector, passwordSelector, submitSelector, nextSelector, decideOnly }]) Fills the sign-in fields Jev picks and submits. Credentials go in as $LP_* placeholders. Pass the *Selector fields from an earlier result to replay with no model call; otherwise needs TYPESAFE_API_KEY.

Read the full file on GitHub · 148 lines

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. today Changed · +12 lines 4d11f38e4e16
  2. 2mo ago First seen · 136 lines · 36 tokens per session scan A e163426d7026

Subscribe to this mod's changes

pandascript is a skill published in the GitHub repository lightpanda-io/agent-skill (115 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 3,800 once invoked, about $0.0001 per session on Opus 5.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

pandascript compared with skills from other repositories

pandascript next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pandascriptlightpanda-io/agent-skillSkill115yesterdayApache-2.0A36Claude Code, Codex
interactive-loginyc-software/qmSkill16kyesterdayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3k3d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.8kyesterdayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill895yesterdayMITA40Claude Code