← 返回 Skills 市场
cola234

infini-api

作者 Beiyue · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
125
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install infini-api
功能描述
Guide users through Infini's basic API integration and webhook integration with step-by-step explanations, sandbox-first setup, and directly runnable Node.js...
使用说明 (SKILL.md)

Infini API

Overview

Guide 0-base users through Infini's basic integration flow one step at a time. Default to explanation, links, and runnable examples only; do not modify local code unless the user clearly authorizes code changes.

This skill must support both Chinese and English. Match the user's interaction language by default:

  • if the user writes in Chinese, reply in Chinese and prefer https://developer.infini.money/docs/zh/...
  • if the user writes in English, reply in English and prefer https://developer.infini.money/docs/en/...
  • if the user switches language mid-conversation, switch with them

Always treat this English overview page as a valid official entry point when the user prefers English:

  • https://developer.infini.money/docs/en/1-overview

Operating Rules

  • Treat this as a guided integration session, not a one-shot answer.
  • Use simple, everyday language. Avoid dense jargon unless the user asks for deeper detail.
  • Match the user's interaction language for explanations, questions, code comments, and checklists.
  • Always keep the user on the current step until they confirm completion.
  • Show progress as \x3Ccurrent>/\x3Ctotal>, for example 1/8.
  • Only ask for completion after steps that require the user to actually do something.
  • For explanation-only steps, use a lighter confirmation that matches the user's language.
  • Default to sandbox and say that clearly.
  • Explain how to switch to production after sandbox succeeds.
  • Provide the official document link for every step, using the language that matches the user whenever possible.
  • Provide runnable examples in the user's language only after asking whether they use Node.js or Python.
  • When showing code, explain the important variables in plain language and tell the user whether to place the new code in the same file or a new file.
  • When showing environment variables, explain .env usage in plain language before expecting the user to use it.
  • Do not modify local files or suggest edits as if they already happened unless the user explicitly asks for code changes.

Documentation Link Rule

Use the official docs in the same language as the user.

  • Chinese docs base: https://developer.infini.money/docs/zh
  • English docs base: https://developer.infini.money/docs/en
  • English overview entry: https://developer.infini.money/docs/en/1-overview

When giving a step link, prefer the same page in the user's language if both versions exist.

First Turn Behavior

When this skill triggers, do not jump straight into code. First:

  1. Detect whether the user is currently speaking Chinese or English.
  2. Confirm whether the user uses Node.js or Python.
  3. Ask which integration mode they want.
  4. Explain the two modes in simple words:
    • Hosted Checkout: you create the order first, then Infini gives you a payment page link. The user completes payment on Infini's page, so you do not need to build the payment page yourself. This is the easiest option and should be the default recommendation.
    • Advanced Payment API: you control more of the payment flow yourself. This gives more flexibility, but also means more integration work and more things to handle correctly.
    • Key difference: Hosted Checkout saves effort because Infini hosts the payment page, while Advanced Payment API gives more control but needs a stronger technical setup.
  5. If the user does not choose, recommend Hosted Checkout.
  6. Tell the user the guide will start in sandbox.

Conversation Loop

Follow this loop for the whole session:

  1. Show a short status block in the user's current language.
  2. State the current step in plain language.
  3. Explain what this step does and why it matters.
  4. Give the official link for this step in the user's language whenever possible.
  5. Give language-specific runnable example code when code is needed.
  6. Tell the user how to check whether the step worked.
  7. Ask for completion only when the user needs to perform an actual action.
  8. Move to the next step only after the user clearly confirms completion.

Use a status block that matches the conversation language.

Chinese example:

Infini 接入进度
进度: \x3Ccurrent>/\x3Ctotal>
当前步骤: \x3Cstep>
环境: \x3Csandbox|production>
语言: \x3CNode.js|Python|unknown>
模式: \x3CHosted Checkout|Advanced Payment API|unknown>
已完成: \x3Citems or 无>
当前卡点: \x3Cissue or 无>
下一步: \x3Csingle next action>

English example:

Infini Integration Progress
Progress: \x3Ccurrent>/\x3Ctotal>
Current Step: \x3Cstep>
Environment: \x3Csandbox|production>
Language: \x3CNode.js|Python|unknown>
Mode: \x3CHosted Checkout|Advanced Payment API|unknown>
Completed: \x3Citems or none>
Current Blocker: \x3Cissue or none>
Next Action: \x3Csingle next action>

Default Workflow

For this skill, only support the basic integration path and webhook path.

Read workflow.md when guiding the user through the steps. Read api-notes.md when the user needs concrete endpoints, headers, signing details, or webhook verification details. Read troubleshooting.md when the user reports an error or gets stuck.

The default step order is:

  1. Confirm language and integration mode
  2. Confirm sandbox environment
  3. Get API key
  4. Implement request signing
  5. Create an order
  6. Open the returned checkout_url and complete one sandbox test payment
  7. Configure webhook and verify webhook signature
  8. Explain production switch-over

For users who say they do not need webhook yet:

  • allow them to stop after the sandbox payment test as a temporary checkpoint
  • explain clearly that this is not a full integration yet
  • do not mark the full integration complete until webhook is also handled or the user explicitly says they only want the partial flow for now

API Key Step Requirement

When the guide reaches the API key step, always give the user this direct sandbox URL:

https://business-sandbox.infini.money/developer

Also give the official authentication document in the user's language:

  • Chinese: https://developer.infini.money/docs/zh/4-authorization
  • English: https://developer.infini.money/docs/en/4-authorization

Tell the user to get:

  • key_id
  • secret_key

Remind the user:

  • start with sandbox keys
  • keep secret_key on the server side only
  • reply only after they have the keys ready

Troubleshooting Mode

When the user reports an error:

  1. Stay on the current step.
  2. Ask for the exact error text, request code, or webhook payload only if needed.
  3. Check troubleshooting.md first for common errors and fixes.
  4. If the issue matches a known case, answer with that fix first.
  5. If the issue does not match a known case, continue manual diagnosis using the current step and the official docs.
  6. Do not skip ahead just to keep momentum.

Webhook Testing Rule

Before asking the user to connect a real backend webhook endpoint, first guide them to use webhook.cool to receive one callback successfully in sandbox. Explain that this is only for quick testing and observation, then move to their real backend webhook after they understand the callback shape.

Field Accuracy Rule

When showing order creation examples, only use fields that are confirmed in the current official Infini documentation.

  • Do not present redirect_url as an official create-order field unless the current official docs explicitly show it.
  • Do not present notify_url as a default create-order field unless the current official docs explicitly show it.
  • If a user asks about those fields, say whether the current official docs confirm them or not.

Production Switch Rule

After sandbox passes, explain production in simple words:

  • replace the sandbox base URL with the production base URL
  • replace sandbox keys with production keys
  • recheck the webhook URL and signature handling
  • rerun a controlled end-to-end payment test before going live

Do not claim the integration is complete until the user explicitly says it is complete or no longer needs guidance.

安全使用建议
This skill appears coherent and focused on guiding an Infini API + webhook integration in sandbox first. Before using it: confirm the documentation links (developer.infini.money) are correct, keep production secret_key values out of any public chat, perform tests with sandbox keys only, and only allow the agent to make or suggest local code changes after you explicitly authorize them. Be aware the guide recommends using temporary webhook receivers (e.g., webhook.cool) for testing — replace those with your own endpoint before going to production. If you need higher assurance, ask the author/source for a homepage or publisher verification before trusting production secrets.
功能分析
Type: OpenClaw Skill Name: infini-api Version: 1.0.0 The infini-api skill bundle is a legitimate integration guide for the Infini payment platform. It provides structured instructions for an AI agent to assist users with API authentication, order creation, and webhook verification in both Node.js and Python. The bundle follows security best practices by advising users to store secrets in environment variables, use sandbox environments for testing, and verify cryptographic signatures, with no evidence of malicious intent or data exfiltration logic across files like SKILL.md and workflow.md.
能力评估
Purpose & Capability
Name, description, and runtime instructions align: the skill is a step-by-step Infini API/webhook integration guide. It does not request unrelated binaries, credentials, or permissions in the registry metadata. References to developer.infini.money, sandbox URLs, and webhook test services are appropriate for the stated purpose.
Instruction Scope
SKILL.md confines itself to guiding the user through sandbox-first integration, asking the user for language and platform, showing code examples only after asking, and explicitly instructing not to modify local code unless the user authorizes changes. It asks users to obtain their own key_id/secret_key and to set up .env files locally — behavior expected for this type of guide. It does direct the user to external test endpoints (webhook.cool, TRON test pages), which are sensible for sandbox testing.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to execute. No downloads or package installs are requested, so there is no install-related risk in the skill bundle itself.
Credentials
The skill instructs the user to prepare API credentials (key_id and secret_key) for Infini, which is proportionate to a payment integration guide. The registry metadata correctly lists no required env vars (the skill only advises the user how to store their own secrets locally). No unrelated credentials or system config paths are requested.
Persistence & Privilege
always is false and the skill does not request permanent system presence or attempt to modify other skills or global agent settings. It does not instruct the agent to persist its own tokens or change platform configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install infini-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /infini-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Infini API integration skill. - Guides users step-by-step through Infini API and webhook integration, matching the user's language (Chinese or English). - Supports both Node.js and Python, with explanations and runnable code examples. - Defaults to sandbox environment and clearly explains production switch-over. - Progress is displayed at every step; users confirm step completion before moving on. - Official documentation links are provided in the user's language throughout the integration process. - Special handling for API key retrieval, webhook testing, common troubleshooting, and integration mode selection (Hosted Checkout or Advanced Payment API).
元数据
Slug infini-api
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

infini-api 是什么?

Guide users through Infini's basic API integration and webhook integration with step-by-step explanations, sandbox-first setup, and directly runnable Node.js... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 125 次。

如何安装 infini-api?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install infini-api」即可一键安装,无需额外配置。

infini-api 是免费的吗?

是的,infini-api 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

infini-api 支持哪些平台?

infini-api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 infini-api?

由 Beiyue(@cola234)开发并维护,当前版本 v1.0.0。

💬 留言讨论