jsdoc-conventions

jsdoc-conventions is a skill for Claude Code from pau-vega/Devkit-AI. It costs 102 tokens per session (1,335 once invoked), scanned A, original, MIT.

A guide for writing JSDoc, the comment format used to document TypeScript and JavaScript code, at Minimal, Standard, or Strict levels.

In plain words
What is it for?
Use it when adding or improving JSDoc, choosing a documentation level, or checking whether code meets that level.
Why use it?
It makes documentation expectations clear and helps keep exported code and internal details documented consistently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the jsdoc-standards plugin — 1 skill, 1 command, 1 agent, 1 hook shipped together

Good fit Use it when adding or improving JSDoc, choosing a documentation level, or checking whether code meets that level.

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

Made for: Claude Code.

Or install jsdoc-standards, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent, 1 hook.

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-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/pau-vega/devkit-ai/jsdoc-conventions.svg)](https://agentmods.dev/skills/pau-vega/devkit-ai/jsdoc-conventions)
Your own site
<a href="https://agentmods.dev/skills/pau-vega/devkit-ai/jsdoc-conventions"><img src="https://agentmods.dev/badge/skills/pau-vega/devkit-ai/jsdoc-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,335 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.
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.00102 $0.01335
Opus 5 $0.00051 $0.00668
Sonnet 5 $0.00020 $0.00267
Haiku 4.5 $0.00010 $0.00134

Measured 7d ago against content hash 35e6181f05f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

jsdoc-conventions 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 7d 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.

plugins/jsdoc-standards/skills/jsdoc-conventions/SKILL.md · 190 lines

How it starts

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

JSDoc Conventions for TypeScript

Enforcement Levels

Three levels control documentation scope. Each level includes all requirements from the previous one.

Minimal

Document exported functions, classes, interfaces, and type aliases with a brief summary line.

/** Parses a raw CSV string into structured row objects. */
export const parseCsv = (raw: string): CsvRow[] => { ... };

/** Represents a single row of parsed CSV data. */
export interface CsvRow { ... }

Standard

Everything in Minimal, plus:

  • @param and @returns tags on exported functions
  • Public class methods documented
  • Complex type parameters described
/**
 * Fetches a user by ID from the database.
 *
 * @param userId - The unique identifier of the user
 * @returns The user object, or undefined if not found
 */
export const getUser = async (userId: string): Promise<User | undefined> => { ... };

Strict

Everything in Standard, plus:

  • Module-level constants documented
  • Private and internal helper functions documented
  • @example blocks on non-trivial functions
  • @throws, @see, and {@link} where applicable
/** Maximum number of retry attempts for failed API calls. */
const MAX_RETRIES = 3;

/**
 * Retries an async operation with exponential backoff.
 *
 * @param fn - The async function to retry
 * @param maxAttempts - Maximum retry attempts (defaults to {@link MAX_RETRIES})
 * @returns The result of the first successful invocation
 * @throws {RetryExhaustedError} When all attempts fail
 *
 * @example
 * ```ts
 * const data = await retry(() => fetchApi("/users"), 5);
 * ```
 *
 * @see {@link MAX_RETRIES} for the default retry limit
 */
const retry = async <TResult>(
  fn: () => Promise<TResult>,
  maxAttempts: number = MAX_RETRIES,
): Promise<TResult> => { ... };

Core Rules (All Levels)

Format

  • Always use /** */ block comments, never // for documentation
  • First line is a concise summary ending with a period
  • Separate summary from tags with a blank line

Read the full file on GitHub · 190 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 190 lines · 102 tokens per session scan A 35e6181f05f3

Subscribe to this mod's changes

jsdoc-conventions is a skill published in the GitHub repository pau-vega/Devkit-AI (2 stars, last pushed 21d ago), licensed MIT. It adds 102 tokens to every session and 1,335 once invoked, about $0.0005 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

react-patterns

React + TypeScript component and hook standards. TRIGGER when: creating components, custom hooks, or reviewing React code. SKIP: visual styling and theme tokens (use mui-styling); global store design (use state-management).

komluk/scaffolding · 51 tokens

pretext

Help developers use @chenglou/pretext, a small TypeScript text measurement library that computes exact text metrics without DOM reflows. Use when users mention pretext, @chenglou/pretext, @chenglou/pretext/rich-inline, measuring text height without triggering DOM reflow, measuring text height or line count in JS…

yaniv-golan/pretext-skill · 182 tokens

fe-build

Implements frontend components and pages for React / Next.js / Vite SPA + TypeScript projects. Use when: starting implementation after feature.md or a spec is approved, writing components, building pages. Do NOT load for: writing specs, code review, bug analysis.

sh5623/fe-rail · 57 tokens

typescript-best-practices

TypeScript/Node.js best practices. Use when writing or reviewing TypeScript code. Covers type safety, async patterns, and error handling.

Taoidle/plan-cascade · 34 tokens

ts-quality

A TypeScript quality-checking workflow that runs the TypeScript compiler, ESLint, Prettier, and tests. TypeScript is JavaScript with static type checking; ESLint checks code patterns, and Prettier checks formatting.

morodomi/dev-crew · 53 tokens

migrate

Code migration assistant — upgrade frameworks, convert languages, modernize patterns.

vikisingh23/neuraforge-ai · 16 tokens