Agent skill

Jsdocs

by Effect-TS in Effect-TS/effect-smol

Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule.

MITAuto-check passedDevelopment

Install Jsdocs

skills CLI
$ npx skills add Effect-TS/effect-smol --skill jsdocs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Effect-TS/effect-smol jsdocs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Effect-TS/effect-smol.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/jsdocs .claude/skills/jsdocs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
jsdocs
GitHub stars
782
Token cost
~2.8k tokens
SKILL.md length
1,544 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule.

  • Works in 5 steps: Inspect the declaration, implementation,… → Decide whether the task is a single API… → Rewrite comments into the required… → …
  • Fixing JSDoc comments
  • SKILL.md covers Workflow, Required documentation shape, Prose Rules and Tag rules, plus 5 more sections
  • Calls pnpm

What it does

Jsdocs is an agent skill from Effect-TS/effect-smol. Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule. Use when adding or fixing JSDoc comments, resolving jsdocs diagnostics, preparing docs for JSON extraction, or reviewing public API documentation.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Technical documentation. The repository describes itself as: Core libraries and experimental work for Effect v4. The licence is MIT.

When your agent uses it

  • Fixing JSDoc comments
  • Resolving jsdocs diagnostics
  • Preparing docs for JSON extraction
  • Reviewing public API documentation

Example prompts

  • “/jsdocs”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Inspect the declaration, implementation, nearby tests, and nearby JSDoc before editing.
  2. Decide whether the task is a single API fix or a module refinement pass.
  3. Rewrite comments into the required documentation shape while preserving correct facts and examples.
  4. For module refinements, complex APIs, or APIs with related alternatives, run the @see and Gotchas audits.
  5. Run the narrowest relevant validation.

What it can do on your machine

Read from SKILL.md and the folder at commit 3a1128c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Jsdocs loads about 2.8k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 1,544 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Effect-TS/effect-smol at commit 3a1128c, republished under its MIT licence (© Effect-TS). 1,544 words, ~2,804 tokens.

Download SKILL.mdSave it as .claude/skills/jsdocs/SKILL.md (or your agent's skills folder).
name
jsdocs
description
Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule. Use when adding or fixing JSDoc comments, resolving jsdocs diagnostics, preparing docs for JSON extraction, or reviewing public API documentation.

Use this skill to write well-formed JSDoc for Effect public APIs.

Workflow

When updating public API JSDoc:

  1. Inspect the declaration, implementation, nearby tests, and nearby JSDoc before editing.
  2. Decide whether the task is a single API fix or a module refinement pass.
  3. Rewrite comments into the required documentation shape while preserving correct facts and examples.
  4. For module refinements, complex APIs, or APIs with related alternatives, run the @see and **Gotchas** audits.
  5. Run the narrowest relevant validation.

Required documentation shape

Use a normal multiline JSDoc comment in TypeScript source:

ts
/**
 * Short description as one paragraph.
 *
 * **When to use**
 *
 * Optional practical usage guidance.
 *
 * **Details**
 *
 * Optional details for complex APIs, options, overloads, or behavior.
 *
 * **Gotchas**
 *
 * Optional edge cases, footguns, or surprising behavior.
 *
 * **Example** (Short title)
 *
 * Optional prose explaining the example.
 *
 * ```ts
 * const result = example()
 * ```
 *
 * @category constructors
 * @since 1.0.0
 */

Prose Rules

  • Use sober, practical prose.
  • Write all public JSDoc prose in English.
  • Do not use jargon when a plain word works.
  • Do not be clever.
  • Do not add filler sections.
  • The short description is required and must be exactly one paragraph.
  • Make the short description stand on its own. Do not rely on **When to use** to make the API understandable.
  • For functions and methods, prefer present-tense, action-first prose such as Creates, Returns, Checks, Provides, Represents, Converts, Decodes, or Formats.
  • For technical value exports, use consistent noun forms such as Schema for, Layer that, Service that, Context reference that, or Constructors and matchers for.
  • Avoid leading A or An for canonical technical nouns when the surrounding module uses a standard noun family, for example prefer Schema for ... over A schema for ....
  • Do not describe implementation mechanics when a public concept is clearer. For example, prefer Constructors and matchers for ... over wording that only says an API uses Data.taggedEnum.
  • Avoid generic purity or non-mutation remarks unless they document a real surprise, caveat, or meaningful contrast with a mutating-looking API.
  • Optional sections must appear in this order:
    1. **When to use**
    2. **Details**
    3. **Gotchas**
  • Include an optional section only when it has useful, non-empty content.
  • Prefer prose over bullet lists for single-item **Details**, **When to use**, or **Gotchas** sections. Use bullets only when there are two or more parallel facts, options, cases, or caveats.
  • **When to use** describes the positive use case for the documented API. Do not use it as a routing section for sibling APIs. If neighboring APIs need to be mentioned, put that boundary in @see tag text instead.
  • **When to use** is important when the API has close alternatives, trade-offs, or @see tags. If @see tags are present, inspect the referenced APIs and add **When to use** when it clarifies the documented API's own use case.
  • **When to use** must start with one of these practical guidance forms: Use to, Use when, Use as, or Use with. Avoid bullet lists and vague openers such as Use this... or Useful for....
  • Prefer reader-centered **When to use** wording, especially Use when you ..., when the sentence describes a user's goal. Avoid third-person noun-phrase subjects such as the input is ..., a service needs ..., or values should ... when they would become awkward in generated prompts.
  • A good **When to use** sentence should still read naturally if reused as a user intent prompt, for example after I need ... or I have ....
  • Keep short and **When to use** distinct: the short description says what the API is or does; **When to use** says when to choose it.
  • Add internal @see tags only for semantically useful related public APIs.
  • Write @see tag text as normal prose after the link; no special separator is required. Prefer forms like @see {@link otherApi} for ... when a short explanation helps.
  • Use exactly one blank line between the short description, sections, examples, and tags.
  • Do not use Markdown headings such as # Heading or ad hoc bold headings such as **Notes**; only the standard headings are allowed.
  • Examples must use **Example** (Title), optional prose, and exactly one non-empty ts code fence.
  • Example titles must be unique after trimming and lowercasing.
  • Example titles should be short use-case phrases, not generic labels.
  • Prefer gerund or action-noun titles that read naturally after for, for example Parsing JSON, Creating a scoped runtime, or Comparing structs.
  • Avoid imperative titles such as Parse JSON, vague labels such as Syntax or Basic usage, and title-cased fragments such as String Ordering.
  • Preserve canonical technical capitalization inside the phrase, such as Option, Effect, Schema, DateTime, HashMap, Base64, and JSON.
  • For multiple examples on the same API, make each title describe the distinct use case shown by that example.
  • Prefer examples with stable, deterministic output. Avoid assertions or console.log comments that depend on stack traces, object inspection, Error formatting, concurrency order, timing, randomness, or environment-specific formatting. Examples may assume Node.js console formatting. Direct Set / Map output is acceptable when insertion order is deterministic and the expected output uses Node's format; otherwise demonstrate a stable property instead.
  • Do not use @example.
  • Do not put TypeScript code fences outside **Example** (Title) sections.
  • Inline {@link Symbol} targets must resolve to TypeScript symbols; do not link to URLs with {@link}.
  • Avoid overlinking in prose. Use {@link Symbol} only when navigation to that symbol helps the reader choose or understand the API. For the API being documented, the module's central type, nearby obvious names, or repeated mentions, prefer plain code formatting such as Cause, Effect, or Context.
  • Do not document module-level comments; module JSDoc is ignored by this rule.
  • @internal means the item is ignored; do not rewrite it as public docs.
  • Default exports are ignored by this rule and do not need JSDoc.
  • Do not add unsupported constructs such as enums or empty exports in checked files.
  • For low-level public values, prefer accurate categories such as symbols, type IDs, or prototypes over compensating with verbose descriptions.
Show full SKILL.md (629 more words)Show less

Tag rules

When multiple tags are present, keep them in this order:

  1. @deprecated
  2. @default
  3. @see
  4. @category
  5. @since

Tag requirements by declaration kind:

  • Root declarations require @category and stable-semver @since, and must not use @default.
  • Namespaces and declarations inside namespaces require stable-semver @since, may use @category, and must not use @default.
  • Member JSDoc is optional. When present, it follows the same prose and layout rules, may use optional stable-semver @since, may use non-empty @default, and must not use @category.
  • Any declaration may use @deprecated with a non-empty message and repeated non-empty @see tags for semantically useful related public APIs.

Updating existing JSDoc

When fixing or updating existing docs:

  1. Preserve correct facts and examples.
  2. Rewrite the layout into the standard template.
  3. Move usage guidance into **When to use**, behavior details into **Details**, and real caveats into **Gotchas**.
  4. Convert @example tags and loose ts fences into **Example** (Title) sections.
  5. Preserve valid @see, @deprecated, @default, @category, and @since tags.
  6. Remove @see tags that do not point to semantically useful related public APIs.
  7. Replace redundant inline {@link ...} tags with plain code formatting when the link target is already obvious from the current declaration or module.
  8. Remove sections that would be empty.

Module refinement

When asked to refine an existing module:

  1. First scan the module for local documentation patterns, repeated API families, and category conventions.
  2. Keep the change focused on documentation quality unless the user also asked for rule or source changes.
  3. Prefer improving existing comments over rewriting every comment into a new voice.
  4. Preserve examples unless they are wrong, stale, nondeterministic, or fail the required documentation shape.
  5. Apply the @see and **Gotchas** audits across the module before finishing.

See audit

When refining an existing public API module, always do a dedicated @see pass:

  1. Inspect existing @see tags and referenced APIs before keeping, changing, or removing them.
  2. Look for close alternatives in the same module or API family when the documented API is one of several ways to do similar work.
  3. Keep or add @see only when the linked API is semantically useful to understand the documented API.
  4. Good @see targets include sibling APIs, alternatives, inverse operations, lower-level or higher-level variants, complementary operations, and closely returned, consumed, or configured types/values.
  5. Do not use @see for implementation dependencies, broad concepts, external background links, APIs that merely share a word or name, helper APIs used only inside examples, undocumented/private members, or APIs that are only generally compatible.
  6. When @see tags are kept or added, include **When to use** guidance if the documented API's own use case is not obvious from the short description. Keep comparisons with sibling APIs in the @see tag text.

Gotchas audit

When refining an existing public API module, always do a dedicated **Gotchas** pass:

  1. Scan existing prose for caveat language: warnings, exceptions, limitations, preconditions, special cases, or behavior that is easy to misuse.
  2. Inspect the implementation and nearby tests for behavior that is not obvious from the type signature or short description.
  3. Move real caveats from **Details** into **Gotchas** when they describe edge cases, footguns, preconditions, surprising behavior, or important failure modes.
  4. Add **Gotchas** only when the caveat is concrete and useful to a reader choosing or using the API.
  5. If no gotchas are added during a refinement pass, state that a gotchas audit was performed and why no caveats were worth documenting.

Validation

Run the narrowest validation that matches the change:

  • For JSDoc or example changes in a package with generated docs, run pnpm docgen from that package directory.
  • Run pnpm lint because the linter includes the custom rule that checks public API JSDoc.
  • Do not run broad validation for prose-only skill edits.

© Effect-TS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/jsdocs of Effect-TS/effect-smol.

Open the folder on GitHubat commit 3a1128c

Compare with similar skills

Jsdocs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Jsdocs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Jsdocs this skillEffect-TS/effect-smol782—~2.8kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Simple Englishmoeru-ai/airi50k2 repos~4.6kAutomated safety check: PassMIT
Get API Docs with chubandrewyng/context-hub14k2 repos~775Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mailspring App ScreenshotsFoundry376/Mailspring18k—~1.5kAutomated safety check: PassGPL-3.0

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 2 repos~775 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mailspring App Screenshots

    Foundry376/Mailspring

    Captures screenshots of the running Mailspring dev app for docs, PRs or visual checks by launching it with a debugging port, driving the UI and clipping to an element.

    18k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes

More from Effect-TS/effect-smol

  • Scratchpad

    Effect-TS/effect-smol

    Extract the JSDoc example nearest the active source selection or cursor into ./scratchpad as a TypeScript file.

    782 GitHub stars~459 tokensUpdated 2 mo ago
    Auto-check passed
  • Grill Me

    Effect-TS/effect-smol

    Interview the user about a plan or design until reaching shared understanding, resolving each branch of the decision tree.

    782 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Categories

Questions about Jsdocs

What does Jsdocs do?

Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule. Jsdocs is an agent skill from Effect-TS/effect-smol. Write, insert, or update Effect public API JSDoc so it satisfies the jsdocs oxlint rule.

When should I use Jsdocs?

Jsdocs fits situations like: fixing JSDoc comments; resolving jsdocs diagnostics; preparing docs for JSON extraction; reviewing public API documentation.

How do I install Jsdocs in Claude Code?

Run `npx skills add Effect-TS/effect-smol --skill jsdocs -a claude-code`. Or copy the skill folder (.agents/skills/jsdocs in Effect-TS/effect-smol) into .claude/skills/jsdocs in your project. Claude Code loads it when a task matches its description.

How do I install Jsdocs in Codex?

Run `npx skills add Effect-TS/effect-smol --skill jsdocs -a codex`. Or copy the skill folder (.agents/skills/jsdocs in Effect-TS/effect-smol) into .agents/skills/jsdocs in your project. Codex loads it when a task matches its description.

Can I use Jsdocs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Effect-TS/effect-smol --skill jsdocs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/jsdocs, .gemini/skills/jsdocs, .github/skills/jsdocs and .opencode/skills/jsdocs in your project.

What does Jsdocs need to run?

Going by SKILL.md and its folder, Jsdocs needs the command-line tools its instructions call (pnpm). Our summary lists: Node.js.

Does Jsdocs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Jsdocs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Jsdocs use?

Jsdocs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Jsdocs use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Jsdocs?

Skills that share tags, products or a category with Jsdocs: Diagram Design (cathrynlavery/diagram-design, 45k stars), Simple English (moeru-ai/airi, 50k stars), Get API Docs with chub (andrewyng/context-hub, 14k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Jsdocs?

Effect-TS (a GitHub organization) maintains it in Effect-TS/effect-smol, which has 782 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on July 14, 2026.

Source: Effect-TS/effect-smol on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.