Jsdoc annotation specialist

From kriegcloud/beep-effect · View interactive version

Jsdoc annotation specialist is an AI agent skill from the GitHub repository kriegcloud/beep-effect. JSDoc/TSDoc and schema annotation compliance: Effect-style section grammar, kind-aware Examples, described @see, $I.annote/$I.annoteSchema gaps, TSDoc violations, docgen failures, and documentation post-passes on exported symbols.

How to use this skill

Skill file

JSDoc Annotation Specialist

Use this skill to author, upgrade, or review JSDoc and schema annotations. The

binding source is .patterns/jsdoc-documentation.md; this skill turns that law

into a repeatable editing posture.

References

before/after block, imports, categories, and forbidden patterns.

schema kind, including same-name type companions.

grep audits.

Load references/conventions.md whenever writing or upgrading a doc block. Load

the annotation reference for schemas and the grep reference for multi-file audits.

Authoring workflow

  1. Inventory the owning declarations for public exports; do not document barrel

re-exports as though they were new symbols.

  1. Classify each export as value-level or pure type-level.
  2. Write one lead paragraph that explains purpose rather than restating the

signature. Annotated schemas, their same-name type companions and barrel

re-exports take their lead from the $I.annote* description: write none, and

delete one that restates it (the inventory counts it as restating-lead).

  1. Add only useful body sections in this order: **When to use**, **Details**,

**Gotchas**, then titled **Example** (Title) blocks.

  1. Require an Example for value-level exports. For pure type-level exports, require

prose and add an Example only when it teaches something material.

  1. Never introduce @example or @remarks: the repo-wide zero-legacy gate fails

on any occurrence in packages/**/src. Move @remarks content into Details or

Gotchas and write examples as titled Example sections.

  1. Add conditional tags only for facts absent from the signature, order them per

references/conventions.md, and describe every @see with a purpose phrase.

  1. Verify @category, @since 0.0.0, TSDoc grammar, imports, and Example safety.
  2. For schema values, verify $I.annote or $I.annoteSchema using the annotation

reference.

  1. Run the bounded docgen check and fix Example compilation failures.

Section grammar

When to use -> Details -> Gotchas -> Examples last.

Example section.

**Example** (Title) is canonical everywhere. The legacy @example/@remarks

carriers are retired repo-wide. The default beep quality jsdoc-ratchet scan

covers non-generated {packages,apps}/**/src; use --include-generated when

proving generator output. A default pass does not prove generated compliance.

The generated residual allowlist is currently empty.

Kind split

Value-level exports require an Example: functions, constants, classes, schemas,

services, layers, and other runtime values. Pure type-level exports require prose

only: aliases, interfaces, namespaces, .Encoded companions, and same-name schema

type companions. Their Example is optional.

TSDoc hard rules

the type.

@throws.

Post-pass checklist

  1. Every owning export has a useful one-paragraph lead (or a derived one that no

written lead restates), canonical @category, and @since 0.0.0.

  1. Every value-level export has a titled, single-fence, observable, compilable

Example; pure type-level exports have precise prose.

  1. Sections are non-empty, unique, canonical-order, and Example-last; When-to-use

text has an allowed opener; no loose ts fence exists.

  1. Files whose documentation was touched have no @remarks or legacy @example

carrier.

  1. Conditional tags add information, follow tag order, and every @see is

described.

  1. Examples use S/A/O/P/R namespaces, contain no any, assertions,

declare, empty generators, or deprecated @effect/schema imports.

  1. Schema annotations and same-name type companions follow

references/annotation-patterns.md.

  1. bun run docgen:local passes; use

bun run beep docgen quality -p <package> as advisory editorial input.

The ratchet has two layers: the totals baseline fails on growth, and the

zero-legacy scan fails on any legacy carrier in packages/**/src regardless of

whether the file was touched.

Escalation

new tagged-error hierarchies.

Source references

schema and annotation

annotation examples

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.