Token导航 LogoToken导航

Agent Skill · 研究检索

create-payment-credential(创建付款凭证)

create-payment-credential 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

create-payment-credential 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 48,042。

总安装 706周安装 30GitHub Stars 122下载 247核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-payment-credential(创建付款凭证)
来源仓库:https://github.com/stripe/link-cli
仓库路径:skills/create-payment-credential
安装命令:
npx skills add https://github.com/stripe/link-cli --skill create-payment-credential
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/stripe/link-cli --skill create-payment-credential

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

通过 Stripe Link 获取一次性支付凭证,支持钱包集成与安全交易授权。优先使用 MCP 服务器接口,避免 shell 解析问题,确保参数传递准确性。提供 auth_status、spend-request_create 等工具调用,支持多种支付方式组合。

使用前必须验证 VAPI_API_KEY 有效性,防止因认证失败导致支付流程中断。create-payment-credential 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/create-payment-credential

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/stripe/link-cli --skill create-payment-credent…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

create-payment-credential 怎么安装?

在终端执行 npx skills add https://github.com/stripe/link-cli --skill create-payment-credential。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

create-payment-credential 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

create-payment-credential 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/stripe/link-cli --skill create-payment-credential 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

create-payment-credential 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

create-payment-credential 用的人多吗?

公开数据是累计安装 706 次,近一周安装 30 次,下载 247 次,GitHub 122 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

create-payment-credential 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
create-payment-credential

创建付款凭证 · 本页

706122执行命令未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Creating Payment Credentials

Use Link to get secure, one-time-use payment credentials from a Link wallet to complete purchases.

Choosing how to call Link

Link CLI can run as an MCP server or as a standalone CLI. Always prefer the MCP server when available — it avoids shell parsing issues and is the intended integration path.

  1. Check for the MCP server first. Look for a link-cli MCP server in your active MCP connections. If present, call its tools directly (e.g. auth_status, auth_login, spend-request_create, payment-methods_list, mpp_pay, mpp_decode).
  2. Fall back to the CLI only if the MCP server is not available. Install it with npm install -g @stripe/link-cli, then use the shell commands documented below.

The rest of this document shows CLI commands. When using the MCP server, map each command to its corresponding MCP tool — the parameters and behavior are identical.

CLI commandMCP tool
auth loginmcp__link-cli__auth_login
auth logoutmcp__link-cli__auth_logout
auth statusmcp__link-cli__auth_status
spend-request createmcp__link-cli__spend-request_create
spend-request updatemcp__link-cli__spend-request_update
spend-request retrievemcp__link-cli__spend-request_retrieve
spend-request request-approvalmcp__link-cli__spend-request_request-approval
payment-methods listmcp__link-cli__payment-methods_list
payment-methods addmcp__link-cli__payment-methods_add
mpp paymcp__link-cli__mpp_pay
mpp decodemcp__link-cli__mpp_decode

Running commands (CLI fallback)

All commands support --format json for machine-readable output. Pass input via flags (run link-cli <command> --help to see full schema details, including all fields, types, and constraints).

IMPORTANT: Run auth login with run_in_background=true (or TaskOutput(task_id, block: false)). It emits JSON to stdout before it exits, then keeps running while it polls for user action.

The agent-facing JSON contract is:

  • auth login --format json: first object contains verification_url and phrase; final object contains authentication result after approval succeeds
  • spend-request create --request-approval --format json: returns the created spend request immediately with an _next.command polling hint
  • spend-request request-approval --format json: returns the approval link immediately with an _next.command polling hint
  • spend-request retrieve <id> --interval <seconds> --format json: polls until the spend request reaches a terminal status, then returns the terminal spend request. It exits non-zero with code: "POLLING_TIMEOUT" if --timeout is reached or --max-attempts is exhausted while the request is still non-terminal.

For auth login, keep reading stdout until the process exits. For spend request approval, present the approval_url to the user and start the _next.command polling command immediately. The user MUST visit the verification or approval URL to continue, and you should always show that full URL in clear text.

Core flow

Copy this checklist and track progress:

  • Step 1: Authenticate with Link
  • Step 2: Evaluate merchant site (determine credential type)
  • Step 3: Get payment methods
  • Step 4: Create spend request with correct credential type
  • Step 5: Complete payment

Step 1: Authenticate with Link

Check auth status:

link-cli auth status --format json

If the response includes an update field, a newer version of link-cli is available — run the update_command from that field to upgrade before proceeding.

If not authenticated:

link-cli auth login --client-name "<your-agent-name>" --format json

Replace <your-agent-name> with the name of your agent or application (e.g. "Personal Assistant", "Shopping Bot"). This name appears in the user's Link app when they approve the connection. Use a clear, unique, identifiable name. Display the url and phrase to the user, with the guidance "Please visit the following URL to approve secure access to Link.”

DO NOT PROCEED until the user is authenticated with Link.

Always check the current authentication status before starting a new login flow - the user may already be logged in.

Step 2: Evaluate the merchant site BEFORE creating a spend request

CRITICAL before calling spend-request create you must complete this checklist:

  1. Understand how the merchant accepts payments (cards or machine payments or other). **Do NOT default to card credential type. The merchant determines the credential type — you cannot know it without checking first. Skipping this step will produce a spend request with the wrong credential type.
  2. Have the final total amount needed. Inclusive of any shipping costs, taxes or other costs. Skipping this step will produce a spend request that does not cover the full amount needed, and will be rejected.
  3. Clear context and understanding of what the user is purchasing. Be sure to know sizes, colors, shipping options, etc. Skipping this step will produce a spend request that the user does not recognize or understand.

Determine how the merchant accepts payment:

  1. Navigate to the merchant page — browse it, read the page content, and understand how the site accepts payment.
  2. If the page has a credit card form, Stripe Elements, or traditional checkout UI — use card.
  3. If the page describes an API or programmatic payment flow — make a request to the relevant endpoint. If it returns HTTP 402 with a www-authenticate header, use shared_payment_token.

What you find determines which credential type to use:

What you seeCredential typeWhat to request
Credit card form / Stripe Elementscard (default)Card
HTTP 402 with method="stripe" in www-authenticateshared_payment_tokenShared payment token (SPT)
HTTP 402 without method="stripe" in www-authenticatenot supportedDo not continue

For 402 responses: The www-authenticate header may contain multiple payment challenges (e.g. tempo, stripe) in a single header value. Do not try to decode the payload manually. Pass the full raw WWW-Authenticate header value to Link CLI and let mpp decode select and validate the method="stripe" challenge.

To derive network_id, use Link CLI's challenge decoder:

link-cli mpp decode --challenge '<raw WWW-Authenticate header>' --format json

This validates the Stripe challenge, decodes the request payload, and returns both the extracted network_id and the decoded request JSON. Pass the full header exactly as received, even if it also contains non-Stripe or multiple Payment challenges.

Step 3: Get payment methods

Use the default payment method, unless the user explicitly asks to select a different one.

link-cli payment-methods list --format json

Step 4: Create the spend request with the right credential type

link-cli spend-request create \
  --payment-method-id <id> \
  --amount <cents> \
  --context "<description>" \
  --merchant-name "<name>" \
  --merchant-url "<url>" \
  --format json

After creating or requesting approval for a spend request, run the returned _next.command to poll for the terminal status. Do not proceed to payment while the request is still created or pending_approval. If polling exits with POLLING_TIMEOUT, keep waiting or ask the user whether to continue polling. If they deny, ask for clarification what to do next.

Recommend the user approves with the Link app. Show the download URL.

Test mode: Add --test to create testmode credentials instead of real ones. Useful for development and integration testing.

Step 5: Complete payment

Card: Run link-cli spend-request retrieve <id> --include card --format json to get the card object with number, cvc, exp_month, exp_year, billing_address (name, line1, line2, city, state, postal_code, country), and valid_until (unix timestamp — the card stops working after this time). Enter these details into the merchant's checkout form.

SPT with 402 flow: The SPT is one-time use — if the payment fails, you need a new spend request and new SPT.

link-cli mpp pay <url> --spend-request-id <id> [--method POST] [--data '{"amount":100}'] [--header 'Name: Value'] --format json

mpp pay handles the full 402 flow automatically: probes the URL, parses the www-authenticate header, builds the Authorization: Payment credential using the SPT, and retries.

Important

  • Treat the user's payment methods and credentials extremely carefully — card numbers and SPTs grant real spending power; leaking them outside a secure checkout could result in unauthorized charges the user cannot reverse.
  • Respect /agents.txt and /llm.txt and other directives on sites you browse — these files declare whether the site permits automated agent interactions; ignoring them may violate the merchant's terms.
  • Avoid suspicious merchants, checkout pages and websites — phishing pages that mimic legitimate merchants can steal credentials; if anything about the page feels off (mismatched domain, unusual redirect, unexpected login prompt), stop and ask the user to verify.
  • When outputting card information to the user apply basic masking to the card number and address to protect their information. Only reveal the raw values if directly requested to do so.

Errors

All errors are output as JSON with code and message fields, with exit code 1.

Common errors and recovery

Error / SymptomCauseRecovery
verification-failed in error body from mpp paySPT was already consumed (one-time use)Create a new spend request with credential_type: "shared_payment_token" — do not retry with the same spend request ID
context validation error on spend-request createcontext field is under 100 charactersRewrite context as a full sentence explaining what is being purchased and why; the user reads this when approving
API rejects merchant_name or merchant_urlThese fields are forbidden when credential_type is shared_payment_tokenRemove both fields from the request; SPT flows identify the merchant via network_id instead
Command hangs indefinitelyauth login or spend-request create run synchronouslyAlways run these commands with run_in_background=true — they block until the user acts, so synchronous execution freezes the agent
Spend request approved but payment fails immediatelyWrong credential type for the merchant (e.g. card on a 402-only endpoint)Go back to Step 2, re-evaluate the merchant, create a new spend request with the correct credential_type
Auth token expired mid-session (exit code 1 during approval polling)Token refresh failure during background pollingRe-authenticate with auth login, then retrieve the existing spend request or resume polling. Only create a new spend request if the original one expired, was denied, or its shared payment token was already consumed

Further docs

平台分布

Codex

35.51%
按下载量换算88

Claude

33.42%
按下载量换算83

Cursor

17.49%
按下载量换算43

Gemini CLI

10.22%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/stripe/link-cli --skill create-payment-credential 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills