writing-javascript

writing-javascript is a skill for Claude Code, Codex from AleksandarBisevac/claude-plugins. It costs 163 tokens per session (2,623 once invoked), scanned A, original, MIT.

A guide to writing browser JavaScript in this repository. It explains the shared modern JavaScript style and how the code is assembled into pages without a bundler, package manager, or build step.

In plain words
What is it for?
It is for adding or changing JavaScript in the report and panel interfaces, choosing compatible browser features, documenting behavior with JSDoc, and following the repository's assembly rules.
Why use it?
It reduces guesswork about which language features, documentation style, and file structure are safe in the repository's two browser interfaces.

Skill for Claude CodeCodex

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/aleksandarbisevac/claude-plugins/writing-javascript
Any agent
npx skills add AleksandarBisevac/claude-plugins --skill writing-javascript
Clone the repo
git clone --depth 1 https://github.com/AleksandarBisevac/claude-plugins

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aleksandarbisevac/claude-plugins/writing-javascript.svg)](https://agentmods.dev/skills/aleksandarbisevac/claude-plugins/writing-javascript)
Your own site
<a href="https://agentmods.dev/skills/aleksandarbisevac/claude-plugins/writing-javascript"><img src="https://agentmods.dev/badge/skills/aleksandarbisevac/claude-plugins/writing-javascript.svg" alt="Measured on agentmods" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,623 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 $0.00163 $0.02623
Opus 5 $0.00081 $0.01311
Sonnet 5 $0.00033 $0.00525
Haiku 4.5 $0.00016 $0.00262

Measured 4d ago against content hash c133906fe09e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

writing-javascript 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 4d 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.

.claude/skills/writing-javascript/SKILL.md · 170 lines

How it starts

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

Writing JavaScript here

There is no bundler, no npm, no TypeScript and no build step. The ordered parts under ui/report/ and ui/panel/ are concatenated by Python into exactly one inline <script> per page. The mechanics of that — ordering, the byte pins, splitting — belong to refactoring-the-assembled-ui. This file is about the code you type.

Which dialect

Modern ES, in both — and both surfaces now speak it. This section used to carry a table showing report.js as strictly ES5 against a modern panel.js; that gap was closed, and the table went on describing it. Re-derive rather than reading a number here:

for d in report panel; do
  printf '%s: var=%s function()=%s\n' "$d" \
    "$(grep -rho '\bvar ' plugins/audit/scripts/ui/$d/ | wc -l | tr -d ' ')" \
    "$(grep -rho 'function *(' plugins/audit/scripts/ui/$d/ | wc -l | tr -d ' ')"
done

Both are at zero var and zero function (). What is NOT yet symmetric is JSDoc — the report's parts carry a block per exported behaviour and the panel's parts carry almost none — and since this project has no TypeScript, JSDoc is the type system it gets. Types must be specific ({HTMLTableRowElement}, {(a: string, b: string) => number}), never {Object}; when the type and the code disagree, fix the CODE.

let-const has been Baseline widely available since 2019-03-20, and every other modern construct this code would use is in the same bracket. Check before assuming, though — grep '^| let-const ' in .claude/skills/refactoring-the-assembled-ui/references/baseline-snapshot.md.

Two gates before using any feature. Baseline: widely = free, newly = feature-detect with a fallback, limited = no. file://: Baseline measures engines, not schemes — js-modules is widely available since 2020 and still impossible here, and localStorage is widely available and inconsistent from disk (which is why every storage call in the tree is already wrapped in try/catch). A feature must pass both.

Read the full file on GitHub · 170 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. 4d ago First seen · 170 lines · 163 tokens per session scan A c133906fe09e

Subscribe to this mod's changes

writing-javascript is a skill published in the GitHub repository AleksandarBisevac/claude-plugins (4 stars, last pushed 3d ago), licensed MIT. It adds 163 tokens to every session and 2,623 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories

document-hunter

Searches and retrieves documents from free public sources using automated browser navigation. Use when research needs primary source documents like court filings, government reports, or public records.

bitwize-music-studio/claude-ai-music-skills · 36 tokens

broken-link-checker

Scans a website to find broken links (404s, 500s). Crawls internal pages, identifies broken outbound links, and reports source pages for easy fixing. Use this when the user asks to "check for broken links", "find 404s", "audit my links", or "is my site healthy".

nowork-studio/notfair-plugin · 72 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

find-hypertable-candidates

Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. Trigger when user asks to: Analyze database tables for hypertable conversion potential Identify time-series or event tables in an existing schema Evaluate if a table would…

timescale/pg-aiguide · 184 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

preview-screens

Use when the user wants to preview generated screens in a browser without starting Metro / a simulator — for example after /create-mobile-app finishes or after /edit-app regenerates a screen.

microsoft/power-platform-skills · 41 tokens