jsdocs
Skill782 starsChanged 5 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Effect-TS/effecttheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Effect-TS/effect★ 18ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- grill-meSkill
- scratchpadSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
45 rules. About 0 are common, 24 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Use this skill to write well-formed JSDoc for Effect public APIs.
- Distinctive: line 10
When updating public API JSDoc:
- Distinctive: line 16
Run the narrowest relevant validation.
- Distinctive: line 20
Use a normal multiline JSDoc comment in TypeScript source:
- Distinctive: line 53
Use sober, practical prose.
- Distinctive: line 54
Write all public JSDoc prose in English.
- Distinctive: line 55
Do not use jargon when a plain word works.
- Distinctive: line 56
Do not be clever.
- Distinctive: line 57
Do not add filler sections.
- Very specific: line 67
Avoid leading A or An for canonical technical nouns when the surrounding module uses a standard noun family, for example prefer Schema for …
- Very specific: line 70
Do not describe implementation mechanics when a public concept is clearer.
- Distinctive: line 73
Avoid generic purity or non-mutation remarks unless they document a real surprise, caveat, or meaningful contrast with a mutating-looking …
- Very specific: line 80
Prefer prose over bullet lists for single-item Details, When to use, or Gotchas sections.
- Very specific: line 84
Prefer reader-centered When to use wording, especially Use when you ..., when the sentence describes a user's goal.
- Very specific: line 90
Keep short and When to use distinct: the short description says what the API is or does.
- Very specific: line 92
Add internal @see tags only for semantically useful related public APIs.
- Very specific: line 93
Write @see tag text as normal prose after the link.
- Distinctive: line 94
Use exactly one blank line between the short description, sections, examples, and tags.
- Very specific: line 95
Do not use Markdown headings such as # Heading or ad hoc bold headings such as Notes.
- Very specific: line 99
Prefer gerund or action-noun titles that read naturally after for, for example Parsing JSON, Creating a scoped runtime, or Comparing …
- Very specific: line 101
Avoid imperative titles such as Parse JSON, vague labels such as Syntax or Basic usage, and title-cased fragments such as String Ordering.
- Very specific: line 107
Prefer examples with stable, deterministic output.
- Very specific: line 114
Do not use @example.
- Very specific: line 115
Do not put TypeScript code fences outside Example (Title) sections.
- Very specific: line 117
Avoid overlinking in prose.
- Distinctive: line 122
Do not document module-level comments.
- Distinctive: line 124
Default exports are ignored by this rule and do not need JSDoc.
- Distinctive: line 125
Do not add unsupported constructs such as enums or empty exports in checked files.
- Distinctive: line 131
When multiple tags are present, keep them in this order:
- Distinctive: line 153
When fixing or updating existing docs:
- Very specific: line 160
Remove @see tags that do not point to semantically useful related public APIs.
- Distinctive: line 163
Remove sections that would be empty.
- Distinctive: line 167
When asked to refine an existing module:
- Distinctive: line 170
Keep the change focused on documentation quality unless the user also asked for rule or source changes.
- Distinctive: line 171
Prefer improving existing comments over rewriting every comment into a new voice.
- Very specific: line 178
When refining an existing public API module, always do a dedicated @see pass:
- Distinctive: line 181
Look for close alternatives in the same module or API family when the documented API is one of several ways to do similar work.
- Very specific: line 182
Keep or add @see only when the linked API is semantically useful to understand the documented API.
- Very specific: line 184
Do not use @see for implementation dependencies, broad concepts, external background links, APIs that merely share a word or name, helper …
- Very specific: line 185
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 …
- Very specific: line 194
Add Gotchas only when the caveat is concrete and useful to a reader choosing or using the API.
- Distinctive: line 195
If no gotchas are added during a refinement pass, state that a gotchas audit was performed and why no caveats were worth documenting.
- Distinctive: line 199
Run the narrowest validation that matches the change:
- Very specific: line 202
Run pnpm lint because the linter includes the custom rule that checks public API JSDoc.
- Distinctive: line 203
Do not run broad validation for prose-only skill edits.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use this skill to write well-formed JSDoc for Effect public APIs.
Workflow
When updating public API JSDoc:
- Inspect the declaration, implementation, nearby tests, and nearby JSDoc before editing.
- Decide whether the task is a single API fix or a module refinement pass.
- Rewrite comments into the required documentation shape while preserving correct facts and examples.
- For module refinements, complex APIs, or APIs with related alternatives, run the
@seeand**Gotchas**audits. - Run the narrowest relevant validation.
Required documentation shape
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
*/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, orFormats. - For technical value exports, use consistent noun forms such as
Schema for,Layer that,Service that,Context reference that, orConstructors and matchers for. - Avoid leading
AorAnfor canonical technical nouns when the surrounding module uses a standard noun family, for example preferSchema for ...overA 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 usesData.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:
**When to use****Details****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@seetag text instead.**When to use**is important when the API has close alternatives, trade-offs, or@seetags. If@seetags 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, orUse with. Avoid bullet lists and vague openers such asUse this...orUseful for....- Prefer reader-centered
**When to use**wording, especiallyUse when you ..., when the sentence describes a user's goal. Avoid third-person noun-phrase subjects such asthe input is ...,a service needs ..., orvalues 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 afterI need ...orI have .... - Keep
shortand**When to use**distinct: the short description says what the API is or does;**When to use**says when to choose it. - Add internal
@seetags only for semantically useful related public APIs. - Write
@seetag 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
# Headingor ad hoc bold headings such as**Notes**; only the standard headings are allowed. - Examples must use
**Example** (Title), optional prose, and exactly one non-emptytscode 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 exampleParsing JSON,Creating a scoped runtime, orComparing structs. - Avoid imperative titles such as
Parse JSON, vague labels such asSyntaxorBasic usage, and title-cased fragments such asString Ordering. - Preserve canonical technical capitalization inside the phrase, such as
Option,Effect,Schema,DateTime,HashMap,Base64, andJSON. - 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.logcomments that depend on stack traces, object inspection,Errorformatting, concurrency order, timing, randomness, or environment-specific formatting. Examples may assume Node.js console formatting. DirectSet/Mapoutput 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 asCause,Effect, orContext. - Do not document module-level comments; module JSDoc is ignored by this rule.
@internalmeans 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, orprototypesover compensating with verbose descriptions.
Tag rules
When multiple tags are present, keep them in this order:
@deprecated@default@see@category@since
Tag requirements by declaration kind:
- Root declarations require
@categoryand 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
@deprecatedwith a non-empty message and repeated non-empty@seetags for semantically useful related public APIs.
Updating existing JSDoc
When fixing or updating existing docs:
- Preserve correct facts and examples.
- Rewrite the layout into the standard template.
- Move usage guidance into
**When to use**, behavior details into**Details**, and real caveats into**Gotchas**. - Convert
@exampletags and loosetsfences into**Example** (Title)sections. - Preserve valid
@see,@deprecated,@default,@category, and@sincetags. - Remove
@seetags that do not point to semantically useful related public APIs. - Replace redundant inline
{@link ...}tags with plain code formatting when the link target is already obvious from the current declaration or module. - Remove sections that would be empty.
Module refinement
When asked to refine an existing module:
- First scan the module for local documentation patterns, repeated API families, and category conventions.
- Keep the change focused on documentation quality unless the user also asked for rule or source changes.
- Prefer improving existing comments over rewriting every comment into a new voice.
- Preserve examples unless they are wrong, stale, nondeterministic, or fail the required documentation shape.
- Apply the
@seeand**Gotchas**audits across the module before finishing.
See audit
When refining an existing public API module, always do a dedicated @see pass:
- Inspect existing
@seetags and referenced APIs before keeping, changing, or removing them. - Look for close alternatives in the same module or API family when the documented API is one of several ways to do similar work.
- Keep or add
@seeonly when the linked API is semantically useful to understand the documented API. - Good
@seetargets include sibling APIs, alternatives, inverse operations, lower-level or higher-level variants, complementary operations, and closely returned, consumed, or configured types/values. - Do not use
@seefor 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. - When
@seetags 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@seetag text.
Gotchas audit
When refining an existing public API module, always do a dedicated **Gotchas** pass:
- Scan existing prose for caveat language: warnings, exceptions, limitations, preconditions, special cases, or behavior that is easy to misuse.
- Inspect the implementation and nearby tests for behavior that is not obvious from the type signature or short description.
- Move real caveats from
**Details**into**Gotchas**when they describe edge cases, footguns, preconditions, surprising behavior, or important failure modes. - Add
**Gotchas**only when the caveat is concrete and useful to a reader choosing or using the API. - 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 docgenfrom that package directory. - Run
pnpm lintbecause the linter includes the custom rule that checks public API JSDoc. - Do not run broad validation for prose-only skill edits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

