jsdocs

Public API JSDoc. Use when authoring or reviewing Effect API documentation, refining a module's documentation, or fixing documentation related diagnostics.

Install
npx skills add 'https://github.com/Effect-TS/effect/tree/main/.agents/skills/jsdocs'
Download bundle ↓
main · 90695b0Scanned 2026-09-15

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

examples.md

examples.mdBrowse 4 files
View on GitHub
← Back to SKILL.md

Examples

Examples are optional. Keep or add one only for behavior not evident from the signature, meaningful composition, or useful inference or narrowing. Replace or remove examples that are trivial, misleading, contrived, or scaffolding-heavy.

Use **Example** (Unique use-case title), optional prose, and exactly one non-empty ts fence. Titles must remain unique after trimming and lowercasing.

Read packages/tools/doctest/README.md for runnable-fence and inline-assertion syntax. Additionally:

  • Use public imports and arrange nontrivial examples as setup, operation, then semantic observation.
  • The transform does not run Effects or await promises automatically. Prefer awaited Effect.runPromise; use Effect.runSync only when synchronous execution is the documented contract.
  • Keep type-level examples marked without tautological runtime assertions.
  • Leave examples that register tests and intentionally non-executable examples as plain ts fences.
  • Use Ref, Deferred, or Queue rather than mutable probes for concurrency, interruption, or races.

If example research suggests an implementation or type bug, report it instead of changing runtime code during a documentation-only pass.

Referenced from SKILL.md