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.
npx skills add lightpanda-io/agent-skill --skill pandascriptgit clone --depth 1 https://github.com/lightpanda-io/agent-skillWrote 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.
[](https://agentmods.dev/skills/lightpanda-io/agent-skill/pandascript)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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:
Pageis the only global.new Page()makes a page andawait 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 withpage.extract(...), run page-side JS only viapage.evaluate("..."). - No
require,process,fs, npm. Standard ECMAScript built-ins only (JSON,Map, template literals, …). page.goto(...)is async — alwaysawaitit. Page methods are synchronous:const data = page.extract({...}), neverawait page.extract(...). The script body runs as an async function, so top-levelawaitis allowed.- Re-navigating reuses the same page:
await page.goto(url2)keepspagevalid and points it at the new URL, discarding the old page — read it before navigating away. Independent URLs don't share a page: make anew 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 withreturn page.extract({...});orreturn results;. A bare trailing expression is NOT printed; neither isconsole.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. |
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.
- today Changed · +12 lines 4d11f38e4e16
- 2mo ago First seen · 136 lines · 36 tokens per session scan A e163426d7026
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.
pandascript compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pandascriptlightpanda-io/agent-skill | Skill | 115 | yesterday | Apache-2.0 | A | 36 | Claude Code, Codex |
| interactive-loginyc-software/qm | Skill | 16k | yesterday | MIT | A | 46 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 10d ago | MIT | A | 52 | Claude Code, Codex |
| azure-messaging-webpubsub-javamicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 43 | Claude Code |
| cua-driverdavidondrej/skills | Skill | 4.3k | 3d ago | MIT | A | 68 | Claude Code, Codex |
| open-design-browsercompozy/compozy | Skill | 2.8k | yesterday | MIT | A | 56 | Claude Code, Codex |
| southwestborski/travel-hacking-toolkit | Skill | 895 | yesterday | MIT | A | 40 | Claude Code |