cds-code

द्वारा coinbase

सत्र में एक बार, कौशल सक्रिय होने के बाद, निम्नलिखित कार्य करें।

npx skills add https://github.com/coinbase/cds --skill cds-code

CDS Code Skill

On every request

Before responding, determine what the user needs:

Coding — the user wants to create or update UI → follow the Coding Workflow.

Review — the user explicitly asks to audit, review, or check existing code for CDS adherence → read guidelines/code-review.md and follow it instead.

Default to coding. Only treat a request as a review if the user's intent is explicit. Writing code is the primary use case for this skill.

Initialization

Run this once per session, before doing anything else.

Run the discovery script: scripts/discover-cds-packages.sh

Its output tells you:

  • The CDS Runtime (web or mobile) — use this value as the platform argument for the CDS MCP server if it is needed.
  • Every installed CDS package: its name, version, and valid export subpaths — these import paths are the ONLY ALLOWED PATHS when importing from CDS packages

If the script cannot be run, much of the information it provides can be determined via manual inspection:

  • Infer the platform by inspecting existing CDS imports in the project's source code
  • Find valid import paths by reading the exports field of the package.json of installed CDS packages in node_modules

Coding Workflow

For all frontend coding tasks, follow these steps in order.

YOU MUST perform steps 1 and 2 before writing any code!

Step 1: Prepare CDS documentation

For any CDS documentation needs, use either of the following tools. If neither are available, let the user know but continue — documentation is helpful but not required.

  • Activate the cds-docs skill OR...
  • If the cds-docs skill is not configured, try calling the CDS MCP server list-cds-routes tool.

Then read the platform-specific docs (using the runtime detected in Initialization):

  • getting-started/styling
  • getting-started/theming

Step 2: Identify the appropriate components

Use guidelines/components.md to help identify the appropriate CDS components for the task. The guidelines file will cover most use cases, but you may optionally browse the CDS docs for the full list of supported CDS components.

If you decide your task will require icons (Icon or IconButton) or illustrations (SpotSquare, Pictogram, HeroSquare, etc.) please read the corresponding guidelines files for more details.

IconsIllustrations
guidelines/icons.mdguidelines/illustrations.md

If no CDS component fits your use case, you may fall back to the following options in this order of priority:

  1. search for a relevant and reusable React component from the project's codebase to use
  2. build your own custom React component using CDS primitives as building blocks
  3. use the native platform's JSX elements (div, View, etc.) for bespoke UI as a last resort

IMPORTANT: Always inform the user which CDS components you are planning to use before moving on to Step 3.

Step 3: Optionally read component docs

For any CDS component you plan to use, retrieve and read their documentation (see Step 1 in this workflow for more details on docs setup).

If documentation is not retrievable for any reason, the published type definitions for the component may be used to determine the full props API a component affords. This is no substitute for reading the documentation, but it can be a useful fallback when documentation is not available.

Step 4: Execute the task (writing code)

Now create or update the UI with proper CDS components and usage.

Package scope

The package name may vary between projects. Different repos may install CDS under different scopes. Always match the full CDS package name(s) as determined in the initialization step. If the project already has CDS imports in existing code, match whatever scope those files use.

Using the Design System

In most cases, you should avoid using inline style objects or CSS classNames (web only). Through these methods it is very easy to make common mistakes like using hardcoded property values instead of the CDS design tokens. Doing so would break the component's connection to the CDS theme.

If you must use a style object or a CSS className, you can still access the CDS theme either through the useTheme hook or by CSS variables (web only).

Most CDS components implement an API that conveniently allows you to apply CDS design tokens, internally we call these 'style props'.

In cds-web, style props essentially act as an API for applying atomic CSS classes, much like Tailwind's utility classes which are so prevelant in the web ecosystem.

You should prefer setting these style props for styling components over setting custom style via inline styles or CSS.

Why this matters: When you set font, color, textAlign, or other typography properties through style instead of props, the component loses its connection to the CDS theme. For example, setting fontSize and fontWeight via style without a font prop means the CDS font family never applies -- the text falls back to inherit and may render in the wrong typeface.

You should check a component's documentation which includes a props table to verify the available API.

Examples of opportunities to use style props over inline styles:

Instead of styleUse the prop
style={{ color: "var(--color-fgMuted)" }}color="fgMuted"
style={{ fontSize: 12, fontWeight: 500, lineHeight: "16px" }}font="caption" (or the matching CDS font token)
style={{ textAlign: "center" }}textAlign="center"
style={{ textTransform: "uppercase" }}textTransform="uppercase"
style={{ display: "flex", flexDirection: "column" }}Use VStack, or flexDirection="column" on Box
style={{ gap: 8 }}gap={1}
style={{ padding: 16 }}padding={2}
style={{ backgroundColor: "..." }}background="bgAlternate" (or semantic token)

Step 5: Validate changes

Your task will be complete if:

  1. You performed skill initialization and explicitly identified the specific CDS components you would use
  2. Your changes DO NOT include any raw rgb/hex/etc color values
  3. Your changes DO NOT use any raw pixel values for spacing properties (padding, margin, gap, border radius). Explicit layout dimensions like width or height set to specific designer-specified values are acceptable.
  4. Your changes DO NOT import any depreacted CDS components or hooks.
  5. Your changes use components' style props (e.g. font, color, background, textTransform, paddingX, gap) instead of customization via inline style objects or with CSS classNames.
  6. All import paths are valid CDS package exports, determined in initialization
  7. The project's linting/typechecking/formatting tasks are passing

coinbase की और Skills

authenticate-wallet
coinbase
ईमेल OTP-आधारित वॉलेट प्रमाणीकरण जिसमें सत्यापन और स्थिति जांच शामिल है। दो-चरणीय लॉगिन प्रक्रिया: ईमेल से शुरू करके 6 अंकों का OTP प्राप्त करें, फिर flowId और कोड के साथ सत्यापित करके प्रमाणीकरण पूरा करें। कमांड निष्पादित करने से पहले शेल इंजेक्शन को रोकने के लिए ईमेल, flowId और OTP के लिए इनपुट सत्यापन नियम शामिल हैं। साथी CLI कमांड के माध्यम से स्थिति जांच, शेष राशि क्वेरी, पता प्राप्ति और वॉले
official
fund
coinbase
Coinbase Onramp या सीधे ट्रांसफर के माध्यम से वॉलेट में USDC जमा करें। एक सहायक UI खुलता है जहां उपयोगकर्ता पूर्व निर्धारित राशि ($10, $20, $50) या कस्टम मान चुन सकते हैं और Apple Pay, डेबिट कार्ड, बैंक ट्रांसफर, या Coinbase खाता फंडिंग में से चुन सकते हैं। विभिन्न निपटान समय के साथ कई भुगतान विधियों का समर्थन करता है: कार्ड और Apple Pay के लिए तत्काल, ACH बैंक ट्रांसफर के लिए 1-3 दिन। Base नेटवर्क पर USDC के रूप में फं
official
monetize-service
coinbase
एक सशुल्क API एंडपॉइंट तैनात करें जिसे अन्य एजेंट x402 प्रोटोकॉल के माध्यम से खोज और भुगतान कर सकें। HTTP 402 भुगतान प्रोटोकॉल का उपयोग करके Base पर प्रति अनुरोध USDC चार्ज करता है; क्लाइंट हस्ताक्षरित लेन-देन के साथ भुगतान करते हैं, कोई API कुंजी या खाते की आवश्यकता नहीं है। जब आप डिस्कवरी एक्सटेंशन घोषित करते हैं तो एजेंट खोज के लिए स्वचालित रूप से एंडपॉइंट को x402 Bazaar के साथ पंजीकृत करता है।
official
pay-for-service
coinbase
बेस पर x402 प्रोटोकॉल के माध्यम से स्वचालित USDC भुगतान के साथ भुगतान वाले API को कॉल करें। x402-सक्षम एंडपॉइंट पर HTTP अनुरोध (GET, POST, आदि) निष्पादित करता है, जिसमें परमाणु USDC भुगतान स्वचालित रूप से संभाले जाते हैं। विधि, JSON बॉडी, क्वेरी पैरामीटर और कस्टम हेडर के माध्यम से अनुरोध अनुकूलन का समर्थन करता है। भुगतान नियंत्रण शामिल हैं: प्रति अनुरोध अधिकतम USDC राशि सेट करें और सहसंबंध आईडी के साथ संबं
official
query-blockchain-data
coinbase
बेस पर CDP SQL API के माध्यम से x402 का उपयोग करके ऑनचेन ब्लॉकचेन डेटा क्वेरी करें। इसका उपयोग तब करें जब आप या आपका उपयोगकर्ता डिकोड किए गए ब्लॉकों के बारे में ऑनचेन जानकारी देखना चाहते हैं,…
official
query-onchain-data
coinbase
Base पर ऑनचेन डेटा को SQL के माध्यम से प्रति-क्वेरी x402 भुगतान के साथ क्वेरी करें। CoinbaseQL के माध्यम से डिकोड की गई घटनाओं, लेन-देन और ब्लॉकों तक पहुँच प्राप्त करें, जो ClickHouse-आधारित SQL डायलेक्ट है और जॉइन, CTE, सबक्वेरी और मानक फंक्शन का समर्थन करता है। तीन मुख्य तालिकाएँ उपलब्ध हैं: base.events (डिकोड किए गए स्मार्ट कॉन्ट्रैक्ट लॉग), base.transactions (पूर्ण लेन-देन डेटा), और base.blocks (ब्लॉक मेटाडे
official
search-for-service
coinbase
x402 बाज़ार मार्केटप्लेस पर उपलब्ध भुगतान वाली API सेवाओं को खोजें और खोजें। BM25 प्रासंगिकता खोज का उपयोग करके मार्केटप्लेस को क्वेरी करें, सभी उपलब्ध संसाधनों की सूची बनाएं, या भुगतान के बिना मूल्य निर्धारण और भुगतान आवश्यकताओं को देखने के लिए विशिष्ट एंडपॉइंट का निरीक्षण करें। नेटवर्क (base, base-sepolia) और आउटपुट प्रारूपों (मानव-पठनीय या JSON) द्वारा फ़िल्टरिंग का समर्थन कर
official
send-usdc
coinbase
बेस पर ईथरियम पतों या ENS नामों पर USDC स्थानांतरित करें। प्राप्तकर्ताओं के रूप में हेक्स पतों (0x...) और ENS नामों (.eth) दोनों को स्वीकार करता है, स्वचालित ENS रिज़ॉल्यूशन के साथ। लचीले राशि प्रारूपों का समर्थन करता है: डॉलर संकेतन ($5.00), दशमलव (1.50), या परमाणु इकाइयाँ (1000000)। भेजने से पहले authenticate-wallet कौशल के माध्यम से वॉलेट प्रमाणीकरण और पर्याप्त USDC शेष की आवश्यकता होती है। शेल इंजेक्शन को रोक
official