jsdocs

Writes and updates Effect public API JSDoc to satisfy the jsdocs oxlint rule.

6|6|Updated Aug 7, 2026
One-click install
npx skills add https://github.com/NateBJones-Projects/unlock-ai-workbench --skill jsdocs-natebjones-projects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jsdocs
Source: https://github.com/NateBJones-Projects/unlock-ai-workbench/tree/main/.repos/effect-smol/.agents/skills/jsdocs
Command: npx skills add https://github.com/NateBJones-Projects/unlock-ai-workbench --skill jsdocs-natebjones-projects

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Public API documentation in the Effect codebase must follow a strict JSDoc structure enforced by a custom oxlint rule, and writing or fixing these comments by hand is error-prone and inconsistent. ## Core Features & Use Cases - Standardized JSDoc authoring: Generates comments with the required short description, optional **When to use**, **Details**, **Gotchas**, and **Example** (Title) sections in the correct order. - Tag compliance: Enforces correct @category, @since, @see, @deprecated, and @default tag usage per declaration kind (root, namespace, member). - Module refinement audits: Runs dedicated @see and **Gotchas** audits across a module to keep cross-references and caveats accurate. - Use Case: When a new public function in an Effect package triggers jsdocs lint diagnostics, use this Skill to rewrite its comment into the compliant shape, then validate with pnpm docgen and pnpm lint. ## Quick Start Ask the assistant to write or fix the JSDoc for a specific Effect public API so it passes the jsdocs lint rule.

Frequently Asked Questions about jsdocs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write JSDoc for Effect public APIs that passes the jsdocs lint rule?

Write a multiline JSDoc comment with a one-paragraph short description, optional `**When to use**`, `**Details**`, and `**Gotchas**` sections in that order, `**Example** (Title)` sections with one ts code fence each, and ordered tags ending with `@category` and `@since`.

How do I fix jsdocs oxlint diagnostics in an Effect package?

Inspect the declaration and existing comment, rewrite it into the required documentation shape while preserving correct facts and examples, then run `pnpm docgen` from the package directory and `pnpm lint` to confirm the diagnostics are resolved.

What sections are allowed in Effect public API JSDoc?

Only the standard sections are allowed: a short description, `**When to use**`, `**Details**`, `**Gotchas**`, and `**Example** (Title)` sections. Markdown headings and ad hoc bold headings like `**Notes**` are not permitted.

When should I use @see tags in Effect API documentation?

Use `@see` only for semantically useful related public APIs such as siblings, alternatives, or inverse operations. Do not link implementation dependencies, broad concepts, or APIs that merely share a name, and pair `@see` tags with `**When to use**` guidance when the use case is not obvious.

Does the jsdocs rule apply to module-level comments or internal APIs?

No. Module-level JSDoc is ignored by the rule, declarations marked `@internal` are skipped, and default exports do not require JSDoc. Only public root, namespace, and member declarations are checked.