Write, update, and format documentation for @data-client public APIs - API reference (Docusaurus/MDX), README files, JSDoc/TSDoc docstrings, usage examples, migration guides, deprecation notices, changelog entries. Use when changing exported APIs (docs must update in the same PR), writing new package docs, or updating the dataclient.io site.
71
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
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 updatese823560
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.