write-api-docs

Installation
SKILL.md

Write API Docs

Overview

Use this skill when documenting public APIs in Remix packages.

The goal is to document the API users can actually import, not every helper in src/lib. Work from the package exports outward, add concise JSDoc to the public declarations, and make sure the result passes the repo's ESLint JSDoc rules.

This skill owns detailed JSDoc style and lint expectations. If documenting an API reveals that the TypeScript contract itself should change, use the expert-typescript-programmer skill for the type design work.

Workflow

  1. Identify the package's public exports.
  2. Find the src entry files that back those exports.
  3. Trace those entry files to the declarations they re-export from src/lib.
  4. Add or tighten JSDoc on the public declarations only.
  5. Run package typecheck if appropriate and always run pnpm run lint.
Related skills

More from remix-run/remix

Installs
6
Repository
remix-run/remix
GitHub Stars
32.9K
First Seen
Mar 13, 2026