research.deprecation-usage

โดย coinbase

ตรวจสอบความถี่ในการใช้งาน CDS exports ที่เลิกใช้งานแล้วในโค้ดเบสของลูกค้าผ่านเครื่องมือค้นหา Sourcegraph MCP ใช้ทักษะนี้เมื่อใดก็ตามที่ถูกขอให้ประเมิน…

npx skills add https://github.com/coinbase/cds --skill research.deprecation-usage

Objective

Your objective is to provide information to user about the extent to which deprecated members of CDS are used in customer repositories. This information should be as accurate as possible as it will be used to inform decisions on whether or not it is safe to drop certain exports in a release or hold them for the next major version.

Removal readiness policy: a deprecated API must remain for one full major version undisturbed before removal. If it was deprecated during major M, it must survive all of M+1; the earliest removal major is M+2 (see @deprecationExpectedRemoval and .claude/skills/deprecate-cds-api/SKILL.md).

Follow the

1 - Determining Research Scope

You may be asked to investigate a single, specific deprecation or all CDS deprecations in general.

If you need to perform a comprehensive audit, there is one additional preparation step:

yarn node scripts/findDeprecations.mjs --json

This script extracts the deprecations with metadata from all CDS packages in JSON format.

2 - Determining the Type of Deprecation

There are two common categories of deprecations in CDS packages:

  1. A single prop of a React component
  2. A whole React component, function or constant

If you are researching a single deprecation, find it in this monorepo's source code (DO NOT USE SOURCEGRAPH). It will be marked with the jsdoc @deprecated annotation. Inspect the code around the deprecation to determine which of the two categories it falls into. If the deprecation is found in multiple CDS packages you may ask the user to clarify which package is of interest to them.

If you are performing a comprehensive audit for all CDS deprecations, the output of the script you ran in Step 1 will have already classified the deprecaations for you.

3 - Using Sourcegraph

For every deprecation you must research, perform a search on Sourcegraph to find evidence of usage.

IMPORTANT: Only attempt to search for one deprecation at a time.

IMPORTANT: Do not attempt to search if you do not have the information to

You must perform a keyword search using the Sourcegraph MCP server. For the query parameter you must use the EXACT queries I share below, substituing in the name(s) of the deprecation you are investigating.

Components, Functions, Constants

Replace NAME_HERE with the name of the deprecated component/function/constant

NOT repo:frontend/cds(-(internal|public|next))?$ file:..(t|j)sx?$ /import[^;'"]*?\bNAME_HERE\b[^;'"]*?from\s+['"][^'"]*(?:cds-web|cds-mobile)[^'"]*['"]/

React prop

Replace NAME_HERE with the name of the React component and PROP_HERE with the name of the deprecated prop.

NOT repo:frontend/cds(-(internal|public|next))?$ file:..(t|j)sx?$ /<\\s*NAME_HERE\\b[^>]*?\\s+PROP_HERE[\\s=\/>]/

4 - Structured Output

Your output will depend on the number of deprecations you needed to audit:

Single Deprecation Output

State the total number of usages found and output a markdown table with columns: Repo, Hits, Search Link — where each link uses a full Sourcegraph URL that will take the user directly to the relevant regex search for the deprecation, filtered by the repo represented in the row of the table.

How to build per-repo Sourcegraph search

For the following sourcegraph search:

/<\\s*CellMedia\\b[^>]*\\stitle[\\s=\\/>]/ NOT repo:frontend/cds(-(internal|public|next))?$ file:\\.(t|j)sx?$

Here is an example for repo coinbase.ghe.com/payments/onramp-widget:

https://sourcegraph.cbhq.net/search?q=NOT+repo%3Afrontend%2Fcds%28-%28internal%7Cpublic%7Cnext%29%29%3F%24+file%3A..%28t%7Cj%29sx%3F%24+%3C%5Cs*CellMedia%5Cb%5B%5E%3E%5D*%3F%5Cs%2Btitle%5B%5Cs%3D%2F%3E%5D&patternType=regexp&sm=0&__cc=1&df=%5B%22repo%22%2C%22coinbase.ghe.com%2Fpayments%2Fonramp-widget%22%2C%22repo%3A%5Ecoinbase%5C%5C.ghe%5C%5C.com%2Fpayments%2Fonramp-widget%24%22%5D

Multiple Deprecations Output

When you have analyzed more than one deprecation, simply list out every deprecation and the total number of matches that came back from its sourcegraph query.

Skills เพิ่มเติมจาก coinbase

git.repo-manager
coinbase
git.repo-manager — ทักษะที่สามารถติดตั้งได้สำหรับเอเจนต์ AI เผยแพร่โดย coinbase/cds
official
agentic-wallet
coinbase
ดำเนินการกระเป๋าเงินคริปโตผ่าน CLI awal — ลงชื่อเข้าใช้ ตรวจสอบยอดเงิน ส่ง USDC/ETH/POL/SOL ซื้อขายโทเค็น เติมเงินในกระเป๋า และใช้โปรโตคอลการชำระเงิน x402 เพื่อ...
official
authenticate-wallet
coinbase
การยืนยันตัวตนกระเป๋าเงินผ่าน OTP ทางอีเมล พร้อมการตรวจสอบความถูกต้องและสถานะ ขั้นตอนการเข้าสู่ระบบสองขั้นตอน: เริ่มต้นด้วยอีเมลเพื่อรับ OTP 6 หลัก จากนั้นยืนยันด้วย flowId และรหัสเพื่อดำเนินการยืนยันตัวตนให้สมบูรณ์ รวมถึงกฎการตรวจสอบข้อมูลนำเข้าสำหรับอีเมล flowId และ OTP เพื่อป้องกันการแทรกคำสั่งเชลล์ก่อนดำเนินการคำสั่ง ให้การตรวจสอบสถานะ การสอบถามยอดคงเหลือ การดึงที่อยู่ และการเข้าถึงหน้าต่างกระเป๋าเงินผ่านคำสั่ง CLI ที่เกี่ยวข้อง คำสั่งทั้งหมดรองรับเอาต์พุต --json สำหรับการอ่านโดยเครื่อง...
official
fund
coinbase
ฝาก USDC เข้ากระเป๋าเงินผ่าน Coinbase Onramp หรือโอนโดยตรง เปิด UI คู่หูที่ให้ผู้ใช้เลือกจำนวนเงินที่กำหนดไว้ ($10, $20, $50) หรือกำหนดเอง และเลือกจาก Apple Pay, บัตรเดบิต, โอนผ่านธนาคาร หรือการเติมเงินจากบัญชี Coinbase รองรับวิธีการชำระเงินหลายวิธีโดยมีระยะเวลาการชำระที่แตกต่างกัน: ทันทีสำหรับบัตรและ Apple Pay, 1–3 วันสำหรับการโอนผ่านธนาคารแบบ ACH ฝากเงินเป็น USDC บนเครือข่าย Base; หรือผู้ใช้สามารถส่ง USDC ไปยังที่อยู่กระเป๋าเงินโดยตรงผ่าน npx awal@2.0.3...
official
monetize-service
coinbase
ปรับใช้ปลายทาง API แบบชำระเงินที่เอเจนต์อื่นสามารถค้นพบและชำระเงินผ่านโปรโตคอล x402 คิดค่าบริการเป็น USDC ต่อคำขอบน Base โดยใช้โปรโตคอลการชำระเงิน HTTP 402; ลูกค้าชำระเงินด้วยธุรกรรมที่ลงนามแล้ว ไม่ต้องใช้คีย์ API หรือบัญชีใดๆ ลงทะเบียนปลายทางกับ x402 Bazaar โดยอัตโนมัติเพื่อให้เอเจนต์ค้นพบเมื่อคุณประกาศส่วนขยายการค้นพบ รองรับระดับราคาหลายระดับ เส้นทางแบบ Wildcard และตัวเลือกการชำระเงินหลายแบบต่อปลายทางโดยใช้ Express Middleware สร้างบน @x402/express และ @x402/core...
official
pay-for-service
coinbase
เรียกใช้ API แบบชำระเงินบน Base ด้วยการชำระเงิน USDC อัตโนมัติผ่านโปรโตคอล x402 ดำเนินการร้องขอ HTTP (GET, POST ฯลฯ) ไปยังเอนด์พอยต์ที่รองรับ x402 โดยจัดการชำระเงิน USDC แบบอะตอมิกโดยอัตโนมัติ รองรับการปรับแต่งคำขอผ่านเมธอด, เนื้อหา JSON, พารามิเตอร์คิวรี, และส่วนหัวที่กำหนดเอง รวมถึงการควบคุมการชำระเงิน: กำหนดจำนวน USDC สูงสุดต่อคำขอ และจัดกลุ่มการดำเนินการที่เกี่ยวข้องด้วยรหัส correlation ต้องมีการยืนยันตัวตนของกระเป๋าเงินและยอดคงเหลือ USDC ที่เพียงพอ ตรวจสอบอินพุตของผู้ใช้ทั้งหมดเพื่อป้องกันเชลล์...
official
query-blockchain-data
coinbase
สอบถามข้อมูลบล็อกเชนออนเชนบน Base โดยใช้ CDP SQL API ผ่าน x402 ใช้เมื่อคุณหรือผู้ใช้ของคุณต้องการดูข้อมูลออนเชนเกี่ยวกับบล็อกที่ถอดรหัสแล้ว…
official
query-onchain-data
coinbase
สอบถามข้อมูลออนเชนบน Base โดยใช้ SQL พร้อมการชำระเงินแบบ x402 ต่อคำสั่งค้นหา เข้าถึงอีเวนต์ ธุรกรรม และบล็อกที่ถอดรหัสแล้วผ่าน CoinbaseQL ซึ่งเป็นภาษา SQL ที่ใช้ ClickHouse รองรับการ join, CTE, subquery และฟังก์ชันมาตรฐาน มีตารางหลักสามตาราง: base.events (บันทึกสัญญาอัจฉริยะที่ถอดรหัสแล้ว), base.transactions (ข้อมูลธุรกรรมทั้งหมด), และ base.blocks (ข้อมูลเมตาของบล็อก) จำเป็นต้องกรองฟิลด์ที่จัดทำดัชนี (event_signature, address, block_timestamp) ในการค้นหาอีเวนต์เพื่อหลีกเลี่ยงการสแกนทั้งตาราง...
official