javascript

A beginner-friendly guide to JavaScript, the programming language used to make web pages interactive and also to build server-side applications with Node.js. It explains common syntax and concepts such as variables, functions, objects, and arrays.

In plain words
What is it for?
Use it while working on .js, .mjs, .jsx, or .ts files to learn the language concepts most often needed in rapid, conversational coding.
Why use it?
It helps people who are new to JavaScript understand code they encounter while building or changing applications, instead of treating unfamiliar syntax as a black box.

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/dojocodinglabs/code-sensei/javascript
Any agent
npx skills add DojoCodingLabs/code-sensei --skill javascript
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/code-sensei

Made for: Claude Code, Codex.

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 670 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.00038 $0.00670
Opus 5 $0.00019 $0.00335
Sonnet 5 $0.00008 $0.00134
Haiku 4.5 $0.00004 $0.00067

Measured yesterday against content hash 9a4b559a1c78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/javascript/SKILL.md · 54 lines

How it starts

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

JavaScript — CodeSensei Teaching Module

What is JavaScript?

  • Analogy: If HTML is the skeleton and CSS is the skin, JavaScript is the brain and muscles. It makes things HAPPEN — clicks, animations, data loading, form validation.
  • Key insight: JavaScript runs in the browser (frontend) AND on the server (backend with Node.js). Same language, two different environments.

Core Concepts to Teach (in order of frequency during vibecoding)

const / let / var

  • const = a constant, can't be reassigned (use this most of the time)
  • let = a variable that can change
  • var = the old way, avoid it (mention only if Claude uses it)
  • Quiz: "Why did Claude use const instead of let here?"

Arrow Functions () => {}

  • Analogy: A shorthand recipe card. Instead of writing "Function: do this thing," you write "=> do this thing"
  • This is the #1 syntax that confuses beginners. Normalize it early.

Objects {}

  • Analogy: A filing cabinet with labeled drawers. Each drawer (property) has a name and contains something.
  • { name: "Juan", age: 25 } — the object has two "drawers"

Arrays []

  • Analogy: A numbered list. Items have positions (starting from 0, not 1!)
  • .map(), .filter(), .forEach() — the "assembly line" methods

Async/Await

  • Analogy: Ordering food at a restaurant. You place the order (await) and the kitchen works on it while you chat. When it's ready, it arrives. You don't stand at the kitchen door waiting.
  • Key insight: Some things take time (loading data, saving to database). await means "wait for this to finish before moving on."

Import/Export

  • Analogy: Sharing tools between workshops. export puts a tool in the shared toolbox. import grabs it from there.
  • Key insight: This is how code is organized into separate files that work together.

Template Literals `Hello ${name}`

  • Analogy: Mad Libs — the backtick string has blanks (${}) that get filled in with real values.

Read the full file on GitHub · 54 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. yesterday First seen · 54 lines · 38 tokens per session scan A 9a4b559a1c78

Subscribe to this mod's changes

javascript is a skill published in the GitHub repository DojoCodingLabs/code-sensei (14 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 670 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

ai-meeting

Run structured AI meetings for plans, product ideas, technical designs, business decisions, feature proposals, and strategy choices. Use when the user wants an AI meeting, AI roundtable, multi-agent discussion, debate, proposal review, plan review, decision review, or wants Codex, Claude Code, and other CLI agents to…

ccplugins/awesome-claude-code-plugins · 120 tokens

fastapi-app

Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…

ccplugins/awesome-claude-code-plugins · 103 tokens

flutter-app

Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new Flutter app, a cross-platform mobile app, an Android or iOS app in Dart, or asks to "create a new flutter app". Handles BYOK LLM…

ccplugins/awesome-claude-code-plugins · 96 tokens

nextjs-app

Bootstrap a new Next.js (App Router, TypeScript) web app with current packages and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new Next.js project, a React web app, a SaaS or dashboard or landing page on Next.js, or asks to "create a new nextjs app". Handles private, open-source, and…

ccplugins/awesome-claude-code-plugins · 105 tokens

ai-divination-skills

Use this skill when the user asks for a tarot reading, I Ching (Yijing) hexagram cast, or Chinese Xiao Liu Ren (小六壬) divination. Calls audited local Python tools that produce deterministic JSON output; the model never invents the result, it only interprets the JSON.

ccplugins/awesome-claude-code-plugins · 69 tokens

better-auth

Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.

secondsky/claude-skills · 53 tokens