stripe-implementation-planner
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStripe Implementation Planner
Stripe 实施规划器
Use the CLI command to obtain personalized product and implementation guidance based on the user’s business model, requirements, and constraints. Use it before writing integration code when possible.
stripe tools plan使用 CLI 命令,根据用户的业务模式、需求和约束条件获取个性化产品及实施指导。尽可能在编写集成代码之前使用该命令。
stripe tools planWhen to use this skill
何时使用此 skill
Use this skill for initial Stripe product selection and integration architecture, or when an existing integration is materially expanded, such as adding subscriptions, in-person payments, or third-party sellers.
For an existing Stripe setup, use this skill to plan new products or use cases. This skill does not inspect existing integration code or produce a code migration plan.
Don’t start a planning workflow for API upgrades, availability questions, debugging, narrow implementation changes, product explanations, or PR review alone. Address those requests directly. For API upgrades, troubleshooting, and code changes, use the skill if it’s available, or current Stripe documentation. For availability questions, consult current product-availability documentation.
stripe-best-practicesAn existing integration or a request involving Stripe code isn’t, by itself, a reason to run the planner. Respect explicit requests to skip planning.
在首次选择 Stripe 产品和规划集成架构时使用此 skill;当现有集成需要重大扩展时也应使用,例如增加订阅、线下支付或第三方卖家支持。
对于现有 Stripe 配置,使用此 skill 规划新产品或新用例。此 skill 不会检查现有集成代码,也不会生成代码迁移计划。
不要针对 API 升级、可用性问题、调试、小范围实施变更、产品说明或单纯的 PR 审查启动规划工作流。应直接处理这些请求。对于 API 升级、故障排查和代码变更,如果可以使用 skill,则优先使用该 skill,否则参考当前的 Stripe 文档。对于可用性问题,请查阅当前的产品可用性文档。
stripe-best-practices仅仅存在现有集成或请求涉及 Stripe 代码,并不意味着需要运行规划器。应尊重用户明确提出的跳过规划要求。
Coverage limits
覆盖范围限制
No product-specific planner guidance for:
- Atlas (company incorporation)
- Treasury (embedded accounts and money movement)
- Radar (fraud and risk rules)
- Issuing (virtual and physical cards)
- Global Payouts (worldwide third-party payouts)
- Capital (loans and cash advances)
- Sigma (SQL reporting)
- Data Pipeline (warehouse sync)
For requests involving only these products, skip CLI installation, authentication, drafts, decision trees, and accept calls. Use current Stripe documentation or an applicable skill. Coverage or account permissions must not block documentation guidance.
For mixed requests, plan the supported requirements, preserve the unsupported requirements, and supplement them with current documentation or applicable skills. State the coverage limits. Don’t present a partial plan as the complete solution.
规划器不提供以下产品的专项指导:
- Atlas(公司注册成立)
- Treasury(嵌入式账户和资金流转)
- Radar(欺诈和风险规则)
- Issuing(虚拟卡和实体卡)
- Global Payouts(面向全球第三方的付款)
- Capital(贷款和现金预支)
- Sigma(SQL 报表)
- Data Pipeline(数据仓库同步)
对于仅涉及这些产品的请求,请跳过 CLI 安装、身份验证、drafts、decision trees 和 accept 调用。使用当前的 Stripe 文档或适用的 skill。覆盖范围或账户权限不得阻碍文档指导的提供。
对于混合请求,应规划受支持的需求,保留不受支持的需求,并使用当前文档或适用的 skill 补充说明。应明确说明覆盖范围限制。不要将部分计划描述为完整解决方案。
Workflow
工作流
-
Gather enough context to describe the user’s needs accurately. Use context already available from the conversation and project. Ask only for missing information that could materially change the recommendation:
- What’s their business model? What are they selling? Who are their customers?
- How do they collect payments? For example, one-time, recurring, invoiced, or usage-based
- Whether they’re a direct business, platform, or marketplace
- Whether they accept payments online, in a mobile app, or in person
- Relevant countries, currencies, implementation constraints, and existing Stripe setup if it exists
-
Preserve the user’s full requirements. Don’t collapse a multi-product or mixed-channel request into a narrower use case.
-
Check that the Stripe CLI is available with. If it’s missing, install it with
which stripe && stripe --version. If installation fails, read the Stripe CLI installation guide and follow the instructions appropriate for the user’s environment. Verify the installation withnpm install -g @stripe/cli.stripe --version -
If the user doesn’t have a Stripe account and the CLI requires authentication, runto create a claimable test sandbox. Refer to
stripe sandbox createfor instructions on how to use claimable sandboxes. Then retry only as directed by the CLI. Explain that a sandbox is a Stripe test environment.stripe sandbox create --help -
Runfor the latest usage instructions.
stripe tools plan --help -
Run the planner with the user’s complete business and implementation context:
sh
stripe tools plan --message "<complete business and implementation context>"-
Follow the current help and command responses to generate and refine the plan.
-
Before finalizing, evaluate the plan against the user’s requirements. Adapt the recommendation when the output doesn’t reflect the constraints, and resolve any material gaps or decisions with the user as needed.
-
Finalize the plan by following the current command instructions. Only describe the plan as finalized after the command confirms successful acceptance. Then summarize the recommended setup, material tradeoffs, and unresolved decisions in terms of the user’s requirements.
-
收集足够的上下文,以准确描述用户的需求。优先使用对话和项目中已有的信息。仅询问缺失且可能实质性影响建议的信息:
- 用户的业务模式是什么?销售什么产品?客户是谁?
- 如何收取付款?例如一次性付款、经常性付款、发票付款或按使用量付费
- 用户属于直营企业、平台还是 marketplace
- 接受在线付款、移动应用内付款还是线下付款
- 相关国家、货币、实施约束,以及现有的 Stripe 配置(如有)
-
保留用户的完整需求。不要将涉及多个产品或多种渠道的请求缩减为更窄的单一用例。
-
使用检查 Stripe CLI 是否可用。如果缺少该命令,则通过
which stripe && stripe --version安装。如果安装失败,请阅读 Stripe CLI 安装指南,并按照适合用户环境的说明进行操作。使用npm install -g @stripe/cli验证安装结果。stripe --version -
如果用户没有 Stripe 账户,而 CLI 需要身份验证,请运行创建一个可认领的测试 sandbox。有关可认领 sandbox 的使用方式,请参阅
stripe sandbox create。然后仅按照 CLI 的指示重试。说明 sandbox 是 Stripe 的测试环境。stripe sandbox create --help -
运行以获取最新的使用说明。
stripe tools plan --help -
使用用户的完整业务和实施上下文运行规划器:
sh
stripe tools plan --message "<complete business and implementation context>"-
按照当前帮助信息和命令响应生成并完善计划。
-
最终确定计划前,根据用户需求评估计划。如果输出结果未反映约束条件,应调整建议,并根据需要与用户解决任何重大缺口或待决策事项。
-
按照当前命令说明最终确定计划。只有在命令确认成功接受计划后,才能将其描述为已最终确定。然后结合用户需求,总结推荐配置、重大权衡和未解决的决策事项。
Critical rules
关键规则
- Prefer the CLI path. If the CLI is unavailable and the user’s authenticated Stripe MCP session exposes , use the MCP tool. Don’t assume the MCP tool is available or authenticated.
stripe_implementation_planner - Don’t run the planner with a vague prompt when the missing context could change the recommendation. Ask focused questions first.
- Don’t treat a product omitted from the output as evidence that it’s irrelevant.
- When the request extends beyond the planner’s supported scope, supplement the plan with current Stripe documentation and clearly identify which guidance came from outside the planner.
- Treat the plan as a starting point, not an unquestionable answer. Check it against the user’s stated requirements, geographic needs, compatibility constraints, and existing implementation.
- Don’t dump raw planner JSON on the user unless they explicitly ask for it. Summarize the recommendation, tradeoffs, and unresolved decisions.
- For supported planning requests, don’t write integration code until the planning step is complete unless the user explicitly asks to skip planning.
- 优先使用 CLI 路径。如果 CLI 不可用,但用户已通过身份验证的 Stripe MCP 会话公开了 ,则使用 MCP 工具。不要假定该 MCP 工具一定可用或已完成身份验证。
stripe_implementation_planner - 如果缺失的上下文可能改变建议,不要使用含糊的提示运行规划器。应先提出有针对性的问题。
- 不要将输出中未提及某个产品视为该产品与需求无关的证据。
- 当请求超出规划器的支持范围时,使用当前 Stripe 文档补充计划,并清楚标明哪些指导来自规划器之外。
- 应将计划视为起点,而非绝对可靠的答案。根据用户明确提出的需求、地理区域需求、兼容性约束和现有实现情况进行核对。
- 除非用户明确要求,否则不要向用户直接输出原始规划器 JSON。应总结建议、权衡和未解决的决策事项。
- 对于受支持的规划请求,在规划步骤完成之前不要编写集成代码,除非用户明确要求跳过规划。