Claude Code React Reference Writer Skill for Hook API Pages
Choose the react.dev reference template for a Hook, component, option, or directive. Make parameters, returns, caveats, and examples easy to find.
中文Install in Claude Code
Use Claude Code in the pinned react.dev checkout with a verified API contract. Keep the companion docs-voice, docs-components, and docs-sandpack skills.
- Open the pinned repository checkout and confirm `.claude/skills/docs-writer-reference/SKILL.md` is present.
- Start Claude Code in the repository root and call `/docs-writer-reference` with the work and its verification goal.
Example task
Draft a reference for a fictional useReadingFilter hook. It accepts records and filter options and returns matching items. Show a read-status change as the smallest usage example.What to check
The reference gives a signature, parameters, and return values. Usage shows the filter changing. Leave any unknown ordering behavior pending.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should a component and a Hook use the same reference template?
Choose the layout based on the reader's lookup task. Components need props and rendering behavior. Hooks need signatures, return values, and caveats.