javascript-sast

javascript-sast is a skill for Claude Code, Codex from vladkesler/initrunner. It costs 31 tokens per session (532 once invoked), scanned A, original, Apache-2.0.

A security scanner for JavaScript and Node.js projects that checks third-party packages and searches source code for several unsafe patterns.

In plain words
What is it for?
Use it when a project has JavaScript package files to run an npm dependency audit and inspect matches such as eval, unsafe HTML insertion, and document.write.
Why use it?
It helps identify vulnerable dependencies and code that may enable cross-site scripting, dynamic code execution, or prototype pollution.

Skill for Claude CodeCodex

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

Good fit Use it when a project has JavaScript package files to run an npm dependency audit and inspect matches such as eval, unsafe HTML insertion, and document.write.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vladkesler/initrunner/javascript-sast
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 vladkesler/initrunner --skill javascript-sast
Clone the repo
git clone --depth 1 https://github.com/vladkesler/initrunner

Made for: Claude Code, Codex.

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 javascript-sast

README.md
[![agentmods](https://agentmods.dev/badge/skills/vladkesler/initrunner/javascript-sast/github.svg)](https://agentmods.dev/skills/vladkesler/initrunner/javascript-sast)
Your own site
<a href="https://agentmods.dev/skills/vladkesler/initrunner/javascript-sast"><img src="https://agentmods.dev/badge/skills/vladkesler/initrunner/javascript-sast/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 javascript-sast

Your own site · 80×15
<a href="https://agentmods.dev/skills/vladkesler/initrunner/javascript-sast"><img src="https://agentmods.dev/badge/skills/vladkesler/initrunner/javascript-sast.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 532 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.00031 $0.00532
Opus 5.5 $0.00012 $0.00213
Sonnet 5.5 $0.00006 $0.00106
Haiku 4.5 $0.00003 $0.00053

Measured 1mo ago against content hash 43a0e8899a6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

javascript-sast 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 1mo 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.

examples/roles/security-scanner/skills/javascript-sast/SKILL.md · 79 lines

How it starts

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

JavaScript and Node.js security scanning skill.

When to activate

Use this skill when the repository contains package.json or package-lock.json.

Scanner commands

Dependency audit

npm audit --json 2>/dev/null

Returns advisories with severity, module_name, title, url, and findings[].paths showing which dependencies pull in the vulnerable package.

Source pattern scan

rg -n 'eval\(|innerHTML\s*=|dangerouslySetInnerHTML|document\.write\(' \
  --glob '*.{js,ts,jsx,tsx}' \
  --glob '!node_modules/**' \
  --glob '!*.test.*' \
  --glob '!*.spec.*'

Parsing npm audit output

The JSON output contains an advisories object keyed by advisory ID. Each advisory has:

  • severity -- critical, high, moderate, low
  • module_name -- the vulnerable package
  • title -- vulnerability description
  • url -- link to the advisory
  • findings[].paths -- dependency paths that include this package

Focus on production dependencies. Skip devDependency-only findings.

Verification

For source pattern matches, read 10-15 lines of surrounding context:

  1. Is the argument to eval() a variable or a constant string?
  2. Is innerHTML assigned from user input, URL params, or API response?
  3. Is there DOMPurify or other sanitization before the assignment?
  4. For prototype pollution: is there a recursive merge without hasOwnProperty check on user-supplied objects?

MUST flag

  • eval() with variables (not constant strings)
  • innerHTML assigned from user input, URL params, or API response without sanitization
  • Prototype pollution patterns (recursive merge without hasOwnProperty)
  • Missing CSRF protection on state-changing routes
  • Production dependency advisories with severity high or critical

MUST NOT flag

  • eval in build configs (webpack.config.js, babel.config.js, jest.config.js, vite.config.ts)
  • innerHTML with DOMPurify-sanitized content
  • dangerouslySetInnerHTML with compile-time constants
  • devDependency-only audit findings (not in production bundle)
  • Test and spec files

Read the full file on GitHub · 79 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. 1mo ago First seen · 79 lines · 31 tokens per session scan A 43a0e8899a6a

Subscribe to this mod's changes

javascript-sast is a skill published in the GitHub repository vladkesler/initrunner (41 stars, last pushed today), licensed Apache-2.0. It adds 31 tokens to every session and 532 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

Other skills, from other repositories

typescript

Skill "typescript" from dhaupin/vant, covering typescript, when to use, what to do, 1. types and 2. generics.

dhaupin/vant · 6 tokens

code-review-typescript

Deep TypeScript-specific code review covering type safety, ESM/CJS, async correctness, money precision, and domain modeling. Applied in addition to the generic code-review skill when TypeScript/JavaScript code is detected. Invoked when reviewing TS/JS PRs, TypeScript changes, or performing TypeScript-specific quality…

soulcodex/agentic · 71 tokens

react-component-design

Designs or reviews React component APIs. Handles prop drilling decisions, composition patterns, controlled/uncontrolled contracts, and minimal public API surfaces for React 18+ TypeScript components. Invoked when creating new components, refactoring existing ones, or reviewing component contracts.

soulcodex/agentic · 56 tokens

typescript-expert

TypeScript expert for type system, generics, utility types, and strict mode patterns.

ginkida/rustyhand · 21 tokens

migrating-vercel-ai-sdk-and-eve-to-pydantic-ai

Migrate TypeScript Vercel AI SDK or Eve applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness. Use when source code imports ai, @ai-sdk/, or eve, or relies on generateText, streamText, ToolLoopAgent, useChat, Eve agents, tools, skills, subagents, approvals, sessions, channels, schedules…

pydantic/pydantic-ai · 107 tokens

migrating-pi-to-pydantic-ai

Migrate TypeScript Pi coding-agent applications, extensions, or packages to Python with Pydantic AI and Pydantic AI Harness. Use when source code imports @earendil-works/pi-, calls createAgentSession, registers Pi extensions, or relies on Pi tools, hooks, skills, sessions, compaction, providers, TUI, RPC, or packages.

pydantic/pydantic-ai · 88 tokens