git.repo-manager

作者: coinbase

git.repo-manager — 一个可安装的AI代理技能,由coinbase/cds发布。

npx skills add https://github.com/coinbase/cds --skill git.repo-manager

Manages a local repository cache at temp/repo-cache/. Use these patterns for repo lifecycle operations.

Ensure a repo is available and up to date

  1. Check whether the repo directory already exists:

    test -d temp/repo-cache/<name> && echo "exists" || echo "missing"
    
  2. If missing — clone a shallow copy of the default branch:

    git clone --depth 1 <repo-url> temp/repo-cache/<name> --quiet
    
  3. If already present — pull the latest commits:

    cd temp/repo-cache/<name> && git pull --quiet
    

Clean up a repo

Remove a cached repo when it's no longer needed or when explicitly asked:

rm -rf temp/repo-cache/<name>

Rules

  • Always use temp/repo-cache/ as the cache root — never clone repos to other locations
  • Always clone with --depth 1 (shallow) to minimize disk usage and clone time
  • Never clone more than the single repo you need for the current task

来自 coinbase 的更多技能

agentic-wallet
coinbase
通过awal CLI进行加密钱包操作——登录、查看余额、发送USDC/ETH/POL/SOL、交易代币、为钱包充值,以及使用x402支付协议来…
official
authenticate-wallet
coinbase
基于邮箱OTP的钱包认证,包含验证与状态检查。两步登录流程:通过邮箱发起请求获取6位数字OTP,随后使用flowId和验证码完成认证。在执行命令前,对邮箱、flowId和OTP进行输入验证规则检查,防止shell注入。提供状态检查、余额查询、地址获取及通过配套CLI命令访问钱包窗口。所有命令支持--json输出,便于机器读取...
official
fund
coinbase
通过Coinbase Onramp或直接转账将USDC存入钱包。打开配套界面,用户可选择预设金额(10美元、20美元、50美元)或自定义数值,并选择Apple Pay、借记卡、银行转账或Coinbase账户充值。支持多种支付方式,结算时间不同:卡和Apple Pay即时到账,ACH银行转账需1-3天。资金以USDC形式存入Base网络;用户也可通过npx awal@2.0.3...直接将USDC发送至钱包地址。
official
monetize-service
coinbase
部署一个付费API端点,其他代理可通过x402协议发现并支付。基于Base网络使用HTTP 402支付协议按请求收取USDC;客户端通过签名交易支付,无需API密钥或账户。声明发现扩展后自动将端点注册到x402 Bazaar供代理发现。支持多种定价层级、通配符路由及每个端点多个支付选项,使用Express中间件实现。基于@x402/express和@x402/core构建...
official
pay-for-service
coinbase
通过x402协议在Base上调用付费API,自动完成USDC支付。执行HTTP请求(GET、POST等)到支持x402的端点,自动处理原子级USDC支付。支持通过方法、JSON体、查询参数和自定义标头定制请求。包含支付控制:设置每次请求的最大USDC金额,并通过关联ID对相关操作进行分组。需要钱包认证和足够的USDC余额;验证所有用户输入以防止shell...
official
query-blockchain-data
coinbase
通过x402使用CDP SQL API查询Base上的链上区块链数据。当你或你的用户想要查看关于已解码区块的链上信息时使用…
official
query-onchain-data
coinbase
使用SQL在Base上查询链上数据,每次查询通过x402支付。通过CoinbaseQL(基于ClickHouse的SQL方言,支持连接、CTE、子查询和标准函数)访问解码后的事件、交易和区块。提供三个主要表:base.events(解码的智能合约日志)、base.transactions(完整交易数据)和base.blocks(区块元数据)。在事件查询中需对索引字段(event_signature、address、block_timestamp)进行过滤,以避免全表扫描...
official
search-for-service
coinbase
搜索并发现x402集市市场上可用的付费API服务。通过BM25相关性搜索查询市场,列出所有可用资源,或检查特定端点以查看定价和支付要求(无需付费)。支持按网络(base、base-sepolia)和输出格式(人类可读或JSON)进行过滤。结果本地缓存,每12小时自动刷新;所有搜索或发现操作无需认证。当无其他可用选项时作为备用方案使用。
official