| Deprecates a CDS component, hook, or other exported symbol with consistent JSDoc, version tags, and docsite metadata across every public export path (web, mobile, common, visualization), not only the original package. Use whenever the user asks to deprecate a CDS component or API, mark something as deprecated, add @deprecated / @deprecationExpectedRemoval, or update deprecation warnings in apps/docs metadata under components or hooks (webMetadata.json / mobileMetadata.json / metadata.json). Also use when replacing a component or hook and sunsetting the old one. Always finish by running
npx skills add https://github.com/coinbase/cds --skill deprecate-cds-api
Automate the standard CDS deprecation workflow for symbols exported from packages/web, packages/mobile, or packages/common.
warning text.@deprecationExpectedRemoval use? (e.g. v9, v10.) Ask the user to confirm if they have not already stated it. If they want a default, suggest the next major from the relevant package.json (see Step 2) and confirm they accept it before editing.Deprecate the symbol everywhere it is publicly reachable, not only where it is first implemented.
web, mobile, common), trace the symbol from that package’s package.json exports map → barrel / index files → the module that declares or re-exports the symbol.Grep for the symbol name under packages/<name>/src (e.g. export { Foo, export * from, Foo as) to catch re-exports and alternate entry paths.@coinbase/cds-web, @coinbase/cds-mobile, @coinbase/cds-common, etc. all surface the deprecation).Do not skip a package because the symbol is “originally” defined elsewhere—if consumers can import it from that package, it must be deprecated there too.
Add or extend JSDoc immediately above the deprecated export (component, function, type alias, const, interface field, etc.).
Use the standard JSDoc tag @deprecated (not @deprecate).
Required shape:
/**
* …existing description if any…
*
* @deprecated <Clear guidance referencing the replacement>. This will be removed in a future major release.
* @deprecationExpectedRemoval v<NEXT_MAJOR>
*/
Rules:
@deprecated line must end with exactly: This will be removed in a future major release. (same sentence as the rest of the deprecation message, as in existing CDS examples).@deprecationExpectedRemoval must match v + version (e.g. v9 or v9.0.0; full semver is allowed by ESLint).The repo’s ESLint rule internal/deprecated-jsdoc-has-removal-version (libs/eslint-plugin-internal) enforces the prose ending and the presence of @deprecationExpectedRemoval; lint must pass after edits (see Step 6).
@deprecationExpectedRemovalThe tag must satisfy @deprecationExpectedRemoval v… as enforced by ESLint (e.g. v10 or v10.0.0).
N to use, unless they already specified it in Inputs (e.g. “remove in v10” → use v10).version field from the relevant package.json and set N = current major + 1.packages/web, packages/mobile, and packages/common always share the same semver — read version from any one of them (e.g. 8.60.0 → suggest v9).N, use @deprecationExpectedRemoval v<N> everywhere for this deprecation (same Step 3).Do not assume the default without checking—either the user names N, or they accept the suggested next-major after you show the current version.
@deprecated guidance and @deprecationExpectedRemoval v<N> value everywhere the symbol is exported (adjust wording only if a platform’s API genuinely differs).packages/common that are also re-exported from web or mobile: follow Step 0 — ensure deprecation is visible on every public import path (common barrels and web/mobile re-exports if applicable).apps/docs/docs)Only when the symbol has existing docs under the docs app. Do not add new doc folders unless the docs workflow already expects them.
apps/docs/docs/components/)apps/docs/docs/components/<category>/<ComponentName>/.webMetadata.json and/or mobileMetadata.json (some components have both; some only one).warning string:"warning": "This component is deprecated. Please use {replacement} instead."
Examples:
"Please use Tabs instead.""Please use MediaCard instead."Match the tone of existing deprecations when the replacement is not a single component name (e.g. “Use indeterminate ProgressCircle for loading indicators instead.”) — still keep the opening: This component is deprecated.
apps/docs/docs/hooks/)apps/docs/docs/hooks/<hookName>/.webMetadata.json and mobileMetadata.json, or a single shared metadata.json — update whichever file(s) exist for that hook.warning string using hook wording:"warning": "This hook is deprecated. Please use {replacement} instead."
Use the same {replacement} phrasing as in JSDoc. If the replacement is not a single hook name, adapt the sentence but keep the opening: This hook is deprecated.
@deprecated includes replacement guidance and the exact closing sentence about future major removal.@deprecationExpectedRemoval v<N> matches the confirmed removal major (Step 2), not an unverified default.warning in metadata matches the replacement story: this component is deprecated for component docs, this hook is deprecated for hook docs (apps/docs/docs/hooks/).yarn nx run <project>:lint has been run for every touched project (Step 6) and passes.After all edits, run the lint target on every Nx project that contains changed source files so internal/deprecated-jsdoc-has-removal-version (and the rest of the package lint config) passes.
Use the workspace convention:
yarn nx run <project>:lint
Examples: web, mobile, common — run each project you touched. Fix any reported issues before finishing (most often: missing @deprecationExpectedRemoval, or @deprecated text not ending with the standard sentence).
@deprecationExpectedRemoval under packages/web/src (e.g. TabNavigation.tsx, Spinner.tsx).libs/eslint-plugin-internal — rule deprecated-jsdoc-has-removal-version (exposed as internal/deprecated-jsdoc-has-removal-version in the root eslint.config.mjs)."warning": "This component is deprecated under apps/docs/docs/components; hook docs live under apps/docs/docs/hooks/ (use This hook is deprecated for hook warning text).Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take coinbase/deprecate-cds-api from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.