jsdoc

jsdoc is a skill for Claude Code from ivklgn/ai-kit. It costs 88 tokens per session (1,136 once invoked), scanned B, original, MIT.

A set of instructions for writing documentation comments in JavaScript and TypeScript using JSDoc, a standard format for describing code. It adapts the comments to the project's type-checking and documentation setup.

In plain words
What is it for?
It helps add, fix, or review documentation for public functions, types, callbacks, and APIs. It can also guide checks for typed JSDoc in JavaScript projects.
Why use it?
It helps documentation explain behavior that function signatures do not show, such as units, rules, errors, and examples. It also avoids duplicating types that TypeScript already provides.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-kit plugin — 22 skills, 15 commands, 30 agents shipped together

Good fit It helps add, fix, or review documentation for public functions, types, callbacks, and APIs. It can also guide checks for typed JSDoc in JavaScript projects.

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

Made for: Claude Code.

Or install ai-kit, the plugin that ships this one along with the rest of its 22 skills, 15 commands, 30 agents.

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 jsdoc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivklgn/ai-kit/jsdoc"><img src="https://agentmods.dev/badge/skills/ivklgn/ai-kit/jsdoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00088 $0.01136
Opus 5.5 $0.00035 $0.00454
Sonnet 5.5 $0.00018 $0.00227
Haiku 4.5 $0.00009 $0.00114

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

Security

Grade B, and why

jsdoc scanned grade B with 1 finding 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

**Mode C — Doc generator present.** `typedoc`, `jsdoc`, or `documentation` in devDependencies or scripts: match its tag dialect and config (entry points, `@group`/`@category` conventions), and verify the build (`npm run
plugins/ai-kit/skills/jsdoc/SKILL.md · 68 lines

How it starts

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

JSDoc Skill

You are documenting JavaScript/TypeScript code with JSDoc. Good doc comments state the contract the signature cannot: meaning, units, invariants, error behavior, and examples. Bad doc comments restate the code. Produce only the first kind.

Step 1: Detect the Documentation Mode

Read package.json, tsconfig.json/jsconfig.json, and a sample of existing doc comments. Pick the mode — it changes what a correct comment looks like:

Mode A — Typed JSDoc (plain JS). Signals: .js sources with checkJs/// @ts-check, or JSDoc types used for editor intellisense. Types live IN the comments and are load-bearing:

  • Full type annotations: @param {Map<string, number>} counts, @returns {Promise<User|null>}
  • @typedef, @callback, @template for shapes and generics; import types with @typedef {import('./api').User} User or inline @type {import('./api').User}
  • Verify with npx tsc --noEmit (respecting the project's config) — typed JSDoc that doesn't check is worse than none

Mode B — TypeScript sources. Types live in the signature; JSDoc adds semantics only:

  • NO type braces: @param userId - The owner of the session, never @param {string} userId
  • Never repeat what the type already says; if a comment would only restate the signature, omit it
  • TSDoc-flavored tags when the project uses TypeDoc/API Extractor (@remarks, @internal, @alpha/@beta)

Mode C — Doc generator present. typedoc, jsdoc, or documentation in devDependencies or scripts: match its tag dialect and config (entry points, @group/@category conventions), and verify the build (npm run docs or equivalent) emits without warnings.

Match existing comment style: sentence casing, hyphen after param name, blank lines, @example formatting. Consistency beats personal preference.

Step 2: Decide What Deserves Documentation

Document, in priority order:

  1. Exported/public API — everything a consumer can reach: functions, classes, methods, types, constants, component props
  2. Non-obvious contracts — units (ms vs s), ranges, nullability semantics, mutation vs copy, ordering guarantees, idempotency
  3. Error behavior — @throws with the condition, rejected promise reasons
  4. Deprecations — @deprecated with the replacement and migration hint, never bare
  5. Tricky internals — only where the "why" isn't recoverable from the code

Read the full file on GitHub · 68 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 · 68 lines · 88 tokens per session scan B 2c2fdbd29ac6

Subscribe to this mod's changes

jsdoc is a skill published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 1,136 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). 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

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

ai-ml-development

AI and machine learning development with PyTorch, TensorFlow, and LLM integration. Use when building ML models, training pipelines, fine-tuning LLMs, or implementing AI features.

travisjneuman/.claude · 43 tokens

authentication-patterns

OAuth 2.0, JWT, SSO, MFA, NextAuth/Clerk/Supabase Auth implementation patterns.

travisjneuman/.claude · 28 tokens

email-systems

Transactional email (Resend, SendGrid, SES), templates (React Email, MJML), deliverability (SPF/DKIM/DMARC), and inboxing best practices. Use when building email infrastructure, designing templates, or troubleshooting deliverability.

travisjneuman/.claude · 55 tokens

agent-svelte-expert

Specialist subagent: Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity specialist. Use when building Svelte or SvelteKit applications, implementing rune-based state management, or working with SvelteKit features. Trigger phrases: Svelte, SvelteKit, runes, $state, $derived, $effect, $props…

travisjneuman/.claude · 101 tokens

performance-engineering

Web Vitals, bundle optimization, CDN, caching, and load analysis. Use when diagnosing slow pages or APIs, reducing bundle size, or designing caching and performance budgets.

travisjneuman/.claude · 38 tokens