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.
npx skills add pau-vega/Devkit-AI --skill jsdoc-conventionsgit clone --depth 1 https://github.com/pau-vega/Devkit-AIWrote 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.
[](https://agentmods.dev/skills/pau-vega/devkit-ai/jsdoc-conventions)<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>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.
| Model | Per session | Once 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 |
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.
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:
@paramand@returnstags 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
@exampleblocks 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
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.
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.
- 7d ago First seen · 190 lines · 102 tokens per session scan A 35e6181f05f3
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.
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).
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…
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.
typescript-best-practices
TypeScript/Node.js best practices. Use when writing or reviewing TypeScript code. Covers type safety, async patterns, and error handling.
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.
migrate
Code migration assistant — upgrade frameworks, convert languages, modernize patterns.