.cursor/skills/packages-documentation/SKILL.md
Write, update, and format docs for public APIs - API reference, README, docstrings, usage examples, migration guides, deprecation notices
npx skillsauth add reactive/data-client packages-documentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This guide covers how to write and format documentation for public library interfaces.
The /docs folder is organized by package:
docs/core/ - Documentation for @data-client/core and @data-client/reactdocs/rest/ - Documentation for @data-client/restdocs/graphql/ - Documentation for @data-client/graphqlEach package documentation has subdirectories:
api/ - API reference documentation (one file per public class/function/hook)guides/ - How-to guides and tutorialsconcepts/ - Conceptual documentationgetting-started/ - Getting started guidesAPI documentation files should match the exported name:
useSuspense.ts → docs/core/api/useSuspense.mdRestEndpoint.js → docs/rest/api/RestEndpoint.mdController.ts → docs/core/api/Controller.mdEntity.ts → docs/rest/api/Entity.md (or docs/core/api/Entity.md)All API documentation files should include:
---
title: API Name
sidebar_label: Display Name
---
Description - What the API does
Usage examples - Code examples showing how to use it
Parameters/Options - Document all parameters, options, and return types
Type information - TypeScript types and examples
Related APIs - Links to related documentation
packages/core, packages/rest, etc.)index.ts or main entry point to see what's exporteddocs/{package}/api/docs/{package}/guides/packages/react/src/hooks/useNewFeature.tsdocs/core/api/useNewFeature.md with usage examples and API referencepackages/rest/src/RestEndpoint.js (changing extend() method)docs/rest/api/RestEndpoint.md with new signature, migration notes, and updated examplespackages/core/src/SomeClass.ts (deprecating oldMethod())docs/core/api/SomeClass.md with deprecation noticepackages/rest/src/RestEndpoint.js (adding newOption parameter)docs/rest/api/RestEndpoint.md to document the new option with examplesBefore completing changes to public APIs in /packages:
/docs/{package}/api/index.ts or src/index.ts)_, not exported, or marked as @internal) don't require documentation updatestools
Create a GitHub pull request from current working changes. Handles all git states - uncommitted changes, no branch, unpushed commits, etc. Analyzes diffs and changesets to generate a PR with filled-in template. Opens the PR in the browser when done. Use when the user asks to create a PR, open a PR, submit changes, or push for review.
tools
Migrate @data-client/rest path strings from path-to-regexp v6 to v8 syntax. Use when upgrading path-to-regexp, updating RestEndpoint.path or resource path strings, or when seeing errors about unexpected ?, +, (, or ) in paths.
tools
Setup, install, and onboard new developers to Reactive Data Client monorepo - nvm, yarn, build, test, getting started guide
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.