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.
72
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this skill to write well-formed JSDoc for Effect public APIs.
When updating public API JSDoc:
@see and **Gotchas** audits.Use a normal multiline JSDoc comment in TypeScript source:
/**
* 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
*/**When to use**
to make the API understandable.Creates, Returns, Checks, Provides, Represents, Converts,
Decodes, or Formats.Schema for,
Layer that, Service that, Context reference that, or
Constructors and matchers for.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 ....Constructors and matchers for ... over wording that
only says an API uses Data.taggedEnum.**When to use****Details****Gotchas****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....**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.**When to use** sentence should still read naturally if reused as
a user intent prompt, for example after I need ... or I have ....short and **When to use** distinct: the short description says what
the API is or does; **When to use** says when to choose it.@see tags only for semantically useful related public APIs.@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.# Heading or ad hoc bold headings such as **Notes**; only the standard headings are allowed.**Example** (Title), optional prose, and exactly one non-empty ts code fence.for, for
example Parsing JSON, Creating a scoped runtime, or Comparing structs.Parse JSON, vague labels such as Syntax
or Basic usage, and title-cased fragments such as String Ordering.Option, Effect, Schema, DateTime, HashMap, Base64, and JSON.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.@example.**Example** (Title) sections.{@link Symbol} targets must resolve to TypeScript symbols; do not link to URLs with {@link}.{@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.@internal means the item is ignored; do not rewrite it as public docs.symbols,
type IDs, or prototypes over compensating with verbose descriptions.When multiple tags are present, keep them in this order:
@deprecated@default@see@category@sinceTag requirements by declaration kind:
@category and stable-semver @since, and must
not use @default.@since,
may use @category, and must not use @default.@since, may use non-empty @default,
and must not use @category.@deprecated with a non-empty message and repeated
non-empty @see tags for semantically useful related public APIs.When fixing or updating existing docs:
**When to use**, behavior details into **Details**, and real caveats into **Gotchas**.@example tags and loose ts fences into **Example** (Title) sections.@see, @deprecated, @default, @category, and @since tags.@see tags that do not point to semantically useful related public APIs.{@link ...} tags with plain code formatting when
the link target is already obvious from the current declaration or module.When asked to refine an existing module:
@see and **Gotchas** audits across the module before finishing.When refining an existing public API module, always do a dedicated @see pass:
@see tags and referenced APIs before keeping, changing, or removing them.@see only when the linked API is semantically useful to understand the documented API.@see targets include sibling APIs, alternatives, inverse operations, lower-level or higher-level variants, complementary operations, and closely returned, consumed, or configured types/values.@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.@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.When refining an existing public API module, always do a dedicated **Gotchas** pass:
**Details** into **Gotchas** when they describe edge cases, footguns, preconditions, surprising behavior, or important failure modes.**Gotchas** only when the caveat is concrete and useful to a reader choosing or using the API.Run the narrowest validation that matches the change:
pnpm docgen from that package directory.pnpm lint because the linter includes the custom rule that checks public API JSDoc.8d347f8
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.