cds-docs

Tujuan: Menarik dokumentasi CDS ke dalam sesi agar suntingan, rekomendasi, dan penggunaan API Anda selanjutnya didasarkan pada dokumen terkini —bukan untuk menghasilkan materi dokumentasi bagi pengguna.

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

CDS Documentation Skill

Goal: Pull CDS documentation into the session so your next edits, recommendations, and API usage are grounded in current docs—not to produce a documentation handout for the user.

Treat fetched pages as source material you have read: internalize props, patterns, imports, and setup constraints, then act (code, refactors, answers) from that understanding. Quote or summarize for the user only when it helps. Keep the actual doc page contents to yourself and only share their contents directly to the user if they ask.

Whether you use the CDS MCP server or fetch the pages yourself with curl is an implementation detail. The use does not need to know your methodology unless they indicated they are debugging this skill.

Ambiguous product requests (e.g. “turn this into tabs,” “make it a card”) after you’ve read the index: if several CDS components could be relevant (e.g. underline Tabs vs pill SegmentedTabs vs TabNavigation), it is acceptable and often better to ask one short, concrete question (e.g. which visual pattern matches their spec) while briefly naming the options and how they differ per the docs. Do not pick one arbitrarily just to avoid asking.

1. Choose platform

Decide whether the work targets web (React, @coinbase/cds-web) or mobile (React Native, @coinbase/cds-mobile). If unclear, infer from the repo (e.g. package.json dependencies, apps/* layout) or ask a single clarifying question.

Pass web or mobile to list-cds-routes and when building curl URLs.

2. Tool order (try in sequence)

  1. CDS MCP server (packaged mcp-docs in @coinbase/cds-mcp-server / packages/mcp-server):

    • list-cds-routes with platform: "web" | "mobile".
    • get-cds-doc with route: path including the platform, ending in .txt (e.g. web/getting-started/installation.txt). Paths must come from the index.
  2. curl if MCP is not configured, fails, or returns errors:

    • Index: https://cds.coinbase.com/llms/web/routes.txt or https://cds.coinbase.com/llms/mobile/routes.txt
    • Page: https://cds.coinbase.com/llms/<route> where <route> matches the index (e.g. web/getting-started/theming.txt).

    Use curl -fsSL '<url>'. Prefer targeted fetches (the pages you need for this task) over loading everything; the index is for routing, not for echoing back wholesale.

3. Workflow whenever this skill applies

  1. Resolve platform (web or mobile).
  2. Load the index once per platform focus (list-cds-routes or routes.txt) and use it as the canonical map of .txt paths.
  3. Fetch additional pages only as needed for the work ahead; after each fetch, apply what you learned (imports, props, patterns)—do not stop at regurgitating the file.

4. Practical notes

  • Routes are case-sensitive; doc content is .txt from MCP or HTTP.
  • Web and mobile docs differ; confirm the component or topic exists for that platform’s index.
  • Human-readable URLs inside the .txt files are optional to share with the user; your priority is correct implementation, not reproducing the doc site in the reply.

5. What “done” looks like

  • Platform is correct or explicitly chosen.
  • Index informed which pages you pulled.
  • User-facing output is implementation-focused (components, imports, structure); retrieval steps stay implicit unless the user needs them.
  • If multiple components fit, you either ground the choice in doc differences or ask one clarifying question when the product spec is under-specified.
  • Your actions and explanations reflect fetched CDS details (APIs, setup, tokens)—especially where memory would be risky—not a dump of documentation for its own sake.

Lebih banyak skill dari coinbase

authenticate-wallet
coinbase
Autentikasi dompet berbasis OTP email dengan validasi dan pemeriksaan status. Alur login dua langkah: mulai dengan email untuk menerima OTP 6 digit, lalu verifikasi dengan flowId dan kode untuk menyelesaikan autentikasi. Termasuk aturan validasi input untuk email, flowId, dan OTP untuk mencegah injeksi shell sebelum menjalankan perintah. Menyediakan pemeriksaan status, kueri saldo, pengambilan alamat, dan akses jendela dompet melalui perintah CLI pendamping. Semua perintah mendukung output --json untuk format yang dapat dibaca mesin...
official
fund
coinbase
Setor USDC ke dompet melalui Coinbase Onramp atau transfer langsung. Membuka UI pendamping di mana pengguna memilih jumlah preset ($10, $20, $50) atau nilai kustom dan memilih dari Apple Pay, kartu debit, transfer bank, atau pendanaan akun Coinbase. Mendukung beberapa metode pembayaran dengan waktu penyelesaian yang bervariasi: instan untuk kartu dan Apple Pay, 1–3 hari untuk transfer bank ACH. Menyetor dana sebagai USDC di jaringan Base; sebagai alternatif, pengguna dapat mengirim USDC langsung ke alamat dompet melalui npx [email protected]...
official
monetize-service
coinbase
Menerapkan titik akhir API berbayar yang dapat ditemukan dan dibayar oleh agen lain melalui protokol x402. Mengenakan biaya USDC per permintaan di Base menggunakan protokol pembayaran HTTP 402; klien membayar dengan transaksi yang ditandatangani, tanpa memerlukan kunci API atau akun. Secara otomatis mendaftarkan titik akhir ke Bazaar x402 untuk penemuan agen saat Anda mendeklarasikan ekstensi penemuan. Mendukung beberapa tingkatan harga, rute wildcard, dan beberapa opsi pembayaran per titik akhir menggunakan middleware Express. Dibangun di atas @x402/express dan @x402/core...
official
pay-for-service
coinbase
Memanggil API berbayar di Base dengan pembayaran USDC otomatis melalui protokol x402. Menjalankan permintaan HTTP (GET, POST, dll.) ke endpoint yang mendukung x402 dengan pembayaran USDC atomik yang ditangani secara otomatis. Mendukung kustomisasi permintaan melalui metode, body JSON, parameter kueri, dan header kustom. Menyertakan kontrol pembayaran: tetapkan jumlah maksimum USDC per permintaan dan kelompokkan operasi terkait dengan ID korelasi. Memerlukan autentikasi dompet dan saldo USDC yang mencukupi; memvalidasi semua input pengguna untuk mencegah shell...
official
query-blockchain-data
coinbase
Kueri data onchain blockchain di Base menggunakan CDP SQL API melalui x402. Gunakan ketika Anda atau pengguna Anda ingin melihat informasi onchain tentang blok yang telah didekode, …
official
query-onchain-data
coinbase
Kueri data onchain di Base menggunakan SQL dengan pembayaran x402 per kueri. Akses event, transaksi, dan blok yang telah didekode melalui CoinbaseQL, dialek SQL berbasis ClickHouse yang mendukung join, CTE, subkueri, dan fungsi standar. Tiga tabel utama tersedia: base.events (log kontrak pintar yang didekode), base.transactions (data transaksi lengkap), dan base.blocks (metadata blok). Memerlukan pemfilteran pada kolom terindeks (event_signature, address, block_timestamp) dalam kueri event untuk menghindari pemindaian tabel penuh...
official
search-for-service
coinbase
Cari dan temukan layanan API berbayar yang tersedia di pasar x402 bazaar. Lakukan kueri di pasar menggunakan pencarian relevansi BM25, daftarkan semua sumber daya yang tersedia, atau periksa titik akhir tertentu untuk melihat harga dan persyaratan pembayaran tanpa membayar. Mendukung pemfilteran berdasarkan jaringan (base, base-sepolia) dan format keluaran (dapat dibaca manusia atau JSON). Hasil disimpan dalam cache lokal dan diperbarui otomatis setiap 12 jam; tidak diperlukan autentikasi untuk operasi pencarian atau penemuan apa pun. Gunakan sebagai cadangan ketika tidak ada...
official
send-usdc
coinbase
Transfer USDC ke alamat Ethereum atau nama ENS di Base. Menerima alamat heksadesimal (0x...) dan nama ENS (.eth) sebagai penerima, dengan resolusi ENS otomatis. Mendukung format jumlah yang fleksibel: notasi dolar ($5.00), desimal (1.50), atau unit atomik (1000000). Memerlukan autentikasi dompet melalui skill authenticate-wallet dan saldo USDC yang cukup sebelum mengirim. Termasuk validasi input untuk mencegah injeksi shell dan output JSON opsional untuk penggunaan terprogram.
official