Use when: deprecating Primer React components or hooks. Covers source annotations, docs metadata, changesets, docs page updates, and validation for deprecations.
70
85%
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
Use this skill when a task involves marking a public Primer React API as deprecated.
@deprecated annotation to the exported component, hook, prop, or type following existing patterns nearby.*.docs.json file with "status": "deprecated".*.hookDocs.json file with "status": "deprecated".packages/react/script/*-json/.contributor-docs/deprecating-components.md.contributor-docs/versioning.md to choose the correct bump.Prefer targeted validation first, then broader validation if needed:
npx prettier --write <paths>npx eslint --fix <paths>npm run build:hooks.json -w @primer/reactnpm run build:components.json -w @primer/reactpackages/react/src/**/*.docs.jsonpackages/react/src/**/*.hookDocs.jsonpackages/react/script/components-json/*packages/react/script/hooks-json/*contributor-docs/deprecating-components.md.changeset/*.mdb111781
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.