Agent skill

Kryptogo Pay Checkout

by paid-tw in paid-tw/skills

Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration.

MITAuto-check: notesBackend & APIs

Install Kryptogo Pay Checkout

skills CLI
$ npx skills add paid-tw/skills --skill kryptogo-pay-checkout -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install paid-tw/skills kryptogo-pay-checkout --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/kryptogo-pay/skills/kryptogo-pay-checkout .claude/skills/kryptogo-pay-checkout && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kryptogo-pay-checkout
GitHub stars
284
Token cost
~1.5k tokens
SKILL.md length
258 words
Files
5 (incl. references)
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration.

  • Works in 6 steps: 確認專案環境 → 檢查環境變數 → 建立支付模組 → …
  • Integrating crypto payment
  • SKILL.md covers 串接 Checklist, Step 1: 確認專案環境, Step 2: 檢查環境變數 and Step 3: 建立支付模組, plus 5 more sections
  • Calls npm; reaches wallet.kryptogo.app; needs STUDIO_API_KEY and KRYPTOGO_STUDIO_API_KEY

What it does

Kryptogo Pay Checkout is an agent skill from paid-tw/skills. Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration. Use when integrating crypto payment, creating checkout flows, or building KryptoGO 穩定幣收款頁面.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/code-examples.md`, `references/error-codes.md` and `references/payment-intent-fields.md`).

It sits in Backend & APIs, covering Third-party API integration. It works with React. The repository describes itself as: 台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi. The licence is MIT.

When your agent uses it

  • Integrating crypto payment
  • Creating checkout flows
  • Building KryptoGO 穩定幣收款頁面

Example prompts

  • “Use the kryptogo-pay-checkout skill to implement KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook…”
  • “/kryptogo-pay-checkout”

Requirements

  • Python 3
  • Node.js
  • A credential in STUDIO_API_KEY
  • A credential in KRYPTOGO_STUDIO_API_KEY
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Grep, Glob

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 確認專案環境
  2. 檢查環境變數
  3. 建立支付模組
  4. 建立支付端點
  5. 建立回調處理
  6. 測試驗證

What it can do on your machine

Read from SKILL.md and the folder at commit 1cd84bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • wallet.kryptogo.app

    Also links to:

    • studio.kryptogo.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • STUDIO_API_KEY
    • KRYPTOGO_STUDIO_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kryptogo Pay Checkout loads about 1.5k tokens when it runs, and up to ~6.5k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 258 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:57
    搜尋專案中的 `.env` 或設定檔,確認是否已設定:
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from paid-tw/skills at commit 1cd84bd, republished under its MIT licence (© paid-tw). 258 words, ~1,522 tokens.

Download SKILL.mdSave it as .claude/skills/kryptogo-pay-checkout/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
kryptogo-pay-checkout
description
Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration. Use when integrating crypto payment, creating checkout flows, or building KryptoGO 穩定幣收款頁面.
allowed-tools
Read, Write, Edit, Bash, Grep, Glob
argument-hint
[整合方式: SDK/API] [框架: React/Express/Python]
context
fork
agent
general-purpose
disable-model-invocation
true
user-invocable
true

KryptoGO Payment 收款串接任務

你的任務是在用戶的專案中實作 KryptoGO Payment 穩定幣收款功能。

串接 Checklist

完成以下步驟即可完成串接:

  • 環境確認 - 確認整合方式(SDK / API)與框架類型
  • 環境變數 - 設定 KRYPTOGO_CLIENT_ID、STUDIO_API_KEY、ORIGIN
  • 支付模組 - 建立 Payment Intent 建立與管理功能
  • 支付頁面 - 建立支付 UI 或 API 端點
  • 回調處理 - 建立 Webhook 端點接收狀態更新
  • 測試驗證 - 使用測試環境驗證完整流程

Step 1: 確認專案環境

詢問用戶:

  1. 整合方式:你要如何串接?

    • React SDK(前端 usePayment Hook)
    • Direct API(後端 REST API)
    • 兩者都要
  2. 專案框架:你使用什麼框架?

    • React / Next.js(SDK 整合)
    • Node.js (Express / Fastify / NestJS)
    • Python (Django / Flask / FastAPI)
    • 其他

用戶輸入: $ARGUMENTS

Step 2: 檢查環境變數

搜尋專案中的 .env 或設定檔,確認是否已設定:

  • KRYPTOGO_CLIENT_ID(或 CLIENT_ID)
  • KRYPTOGO_STUDIO_API_KEY(或 STUDIO_API_KEY)
  • KRYPTOGO_ORIGIN(或 ORIGIN)

若未設定,引導用戶前往 KryptoGO Studio 取得金鑰。

Step 3: 建立支付模組

路徑 A: React SDK 整合

安裝依賴:

bash
npm install @kryptogo/kryptogokit-sdk-react wagmi viem@2.x @tanstack/react-query

建立 Provider 設定:

tsx
import { WagmiProvider } from 'wagmi';
import { getDefaultConfig, KryptogoKitProvider } from '@kryptogo/kryptogokit-sdk-react';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
import '@kryptogo/kryptogokit-sdk-react/styles.css';

const queryClient = new QueryClient();
const clientId = process.env.NEXT_PUBLIC_KRYPTOGO_CLIENT_ID;
const config = getDefaultConfig();

function App({ children }) {
  return (
    <WagmiProvider config={config}>
      <QueryClientProvider client={queryClient}>
        <KryptogoKitProvider clientId={clientId}>
          {children}
        </KryptogoKitProvider>
      </QueryClientProvider>
    </WagmiProvider>
  );
}

建立支付元件(使用 usePayment Hook):

tsx
import { usePayment } from '@kryptogo/payment';

function PaymentButton() {
  const {
    openPaymentModal,
    closePaymentModal,
    data,
    txHash,
    error,
    isLoading,
    isSuccess,
    isError
  } = usePayment();

  const handlePayment = () => {
    openPaymentModal({
      fiat_amount: '100',
      fiat_currency: 'TWD',
      callback_url: 'https://your-server.com/payment/callback',
      order_data: {
        orderId: '12345',
        productName: 'Product Name',
      },
      group_key: 'product_purchase',
    });
  };

  return (
    <div>
      <button onClick={handlePayment} disabled={isLoading}>
        {isLoading ? '處理中...' : '立即付款'}
      </button>
      {isSuccess && <p>付款成功!TxHash: {txHash}</p>}
      {isError && <p>付款失敗:{error?.message}</p>}
    </div>
  );
}
路徑 B: Direct API 整合

建立位置建議:

  • Express: services/kryptogo-payment.js
  • NestJS: src/payment/payment.service.ts
  • Python: services/kryptogo_payment.py

核心功能:

  1. createPaymentIntent(fiatAmount, fiatCurrency, options) - 建立 Payment Intent
  2. getPaymentIntent(paymentIntentId) - 查詢單筆支付
  3. listPaymentIntents(filters) - 列出支付意圖
  4. handleWebhook(payload) - 處理 Webhook 回調

Step 4: 建立支付端點

Express API 端點範例
javascript
const express = require('express');
const axios = require('axios');
const router = express.Router();

const KG_BASE_URL = 'https://wallet.kryptogo.app';
const headers = {
  'Content-Type': 'application/json',
  'X-Client-ID': process.env.KRYPTOGO_CLIENT_ID,
  'Origin': process.env.KRYPTOGO_ORIGIN,
  'X-STUDIO-API-KEY': process.env.KRYPTOGO_STUDIO_API_KEY,
};

// 建立 Payment Intent
router.post('/payment/intent', async (req, res) => {
  const { fiat_amount, fiat_currency, callback_url, order_data, group_key } = req.body;

  const response = await axios.post(
    `${KG_BASE_URL}/v1/studio/api/payment/intent`,
    { fiat_amount, fiat_currency, callback_url, order_data, group_key },
    { headers }
  );

  res.json(response.data);
});

Step 5: 建立回調處理

建立 Webhook 端點接收支付狀態更新:

javascript
router.post('/payment/callback', (req, res) => {
  const payment = req.body;

  switch (payment.status) {
    case 'success':
      // 更新訂單為已付款
      break;
    case 'expired':
      // 標記訂單為過期
      break;
    case 'insufficient_not_refunded':
      // 金額不足,等待退款
      break;
    case 'insufficient_refunded':
      // 已退款處理
      break;
  }

  res.status(200).send();
});

Step 6: 測試驗證

引導用戶進行測試:

  1. 在 KryptoGO Studio 建立測試用 Client ID
  2. 建立一個小額 Payment Intent(fiat_amount: "0.01")
  3. 驗證 Payment Intent 回傳正確
  4. 確認 Webhook 回調可正常接收
  5. 確認支付狀態更新正確

API 參考

端點
方法路徑說明
POST/v1/studio/api/payment/intent建立 Payment Intent
GET/v1/studio/api/payment/intent/{id}查詢單筆 Payment Intent
GET/v1/studio/api/payment/intents列出 Payment Intents
POST/v1/studio/api/asset_pro/transfer代幣轉帳/提領
Required Headers
Header說明
X-Client-IDKryptoGO Client ID
X-STUDIO-API-KEYStudio API Key
Origin你的網域
Content-Typeapplication/json
建立 Payment Intent 參數
參數類型必填說明
fiat_amountString✓法幣金額(最低 0.01)
fiat_currencyString✓TWD 或 USD
callback_urlStringWebhook 回調 URL
order_dataObject自訂訂單資料(最多 1000 字元)
group_keyString支付分類標籤
Payment Status 狀態
狀態說明
pending等待付款
success付款成功
expired付款逾時
insufficient_not_refunded金額不足,等待退款
insufficient_refunded金額不足,已退款

詳細參考文件

© paid-tw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in plugins/kryptogo-pay/skills/kryptogo-pay-checkout of paid-tw/skills.

  • SKILL.md
  • references/code-examples.md
  • references/error-codes.md
  • references/payment-intent-fields.md
  • references/troubleshooting.md

Open the folder on GitHubat commit 1cd84bd

Compare with similar skills

Kryptogo Pay Checkout next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kryptogo Pay Checkout compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kryptogo Pay Checkout this skillpaid-tw/skills284—~1.5kAutomated safety check: NotesMIT
AI ClientOpentrons/opentrons523—~1.6kAutomated safety check: PassApache-2.0
NEAR Intents Swap Integrationinternet-court/internet-court-skill6.6k1 repos~939Automated safety check: PassCustom licence
Shopify ExpertJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT
Trpc Fullstacksickn33/agentic-awesome-skills47k2 repos~3.9kAutomated safety check: PassMIT
API IntegrationMadAppGang/claude-code285—~2.6kAutomated safety check: PassMIT

Similar skills

  • AI Client

    Opentrons/opentrons

    Conventions for the opentrons-ai-client React/TypeScript frontend — project structure, API integration, state management (Jotai), feature flags, types, and testing.

    523 GitHub stars~1.6k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • NEAR Intents Swap Integration

    internet-court/internet-court-skill

    Builds cross-chain token swaps and bridge flows with the NEAR Intents 1Click API: quotes, deposit addresses, per-chain deposits and status polling.

    6.6k GitHub starsUsed in 1 repo~939 tokens
    Backend & APIsAuto-check passed
  • Shopify Expert

    Jeffallan/claude-skills

    Builds Shopify themes in Liquid, custom apps, Storefront API storefronts and checkout extensions, using the Shopify CLI to lint, run locally and deploy.

    12k GitHub stars~1.8k tokensUpdated 7 days ago
    Backend & APIsAuto-check passed
  • Trpc Fullstack

    sickn33/agentic-awesome-skills

    Build end-to-end type-safe APIs with tRPC — routers, procedures, middleware, subscriptions, and Next.js/React integration patterns.

    47k GitHub starsUsed in 2 repos~3.9k tokens
    Backend & APIsAuto-check passed
  • API Integration

    MadAppGang/claude-code

    A skill your agent uses when integrating Apidog + OpenAPI specifications with your React app.

    285 GitHub stars~2.6k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Helius Phantom

    sendaifun/skills

    Build frontend Solana applications with Phantom Connect SDK and Helius infrastructure.

    130 GitHub starsUsed in 1 repo~4.7k tokens
    MobileAuto-check: notes

More from paid-tw/skills

All 15 skills in this repo
  • Kryptogo Pay Transfer

    paid-tw/skills

    Implements KryptoGO Payment token transfer/withdrawal functionality using the Asset Pro Transfer API.

    284 GitHub stars~597 tokensUpdated 7 mo ago
    Auto-check: notes
  • Kryptogo Pay Webhook

    paid-tw/skills

    Implements KryptoGO Payment webhook/callback handling for receiving payment status notifications.

    284 GitHub stars~695 tokensUpdated 7 mo ago
    Auto-check: notes
  • Newebpay Checkout

    paid-tw/skills

    Implements NewebPay MPG checkout integration including AES256 encryption, form submission, and payment callback handling.

    284 GitHub stars~850 tokensUpdated 7 mo ago
    Auto-check: notes
  • Payuni Checkout

    paid-tw/skills

    Implements PAYUNi UPP checkout integration including AES256 encryption, form submission, and payment callback handling.

    284 GitHub stars~1.3k tokensUpdated 7 mo ago
    Auto-check: notes
  • Payuni Webhook

    paid-tw/skills

    Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates.

    284 GitHub stars~1.6k tokensUpdated 7 mo ago
    Auto-check: notes
  • Newebpay

    paid-tw/skills

    Provides NewebPay integration overview and guides users to the appropriate skill.

    284 GitHub stars~420 tokensUpdated 7 mo ago
    Auto-check: notes

Works with

Categories

Questions about Kryptogo Pay Checkout

What does Kryptogo Pay Checkout do?

Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration. Kryptogo Pay Checkout is an agent skill from paid-tw/skills. Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration.

When should I use Kryptogo Pay Checkout?

Kryptogo Pay Checkout fits situations like: integrating crypto payment; creating checkout flows; building KryptoGO 穩定幣收款頁面.

How do I install Kryptogo Pay Checkout in Claude Code?

Run `npx skills add paid-tw/skills --skill kryptogo-pay-checkout -a claude-code`. Or copy the skill folder (plugins/kryptogo-pay/skills/kryptogo-pay-checkout in paid-tw/skills) into .claude/skills/kryptogo-pay-checkout in your project. Claude Code loads it when a task matches its description.

How do I install Kryptogo Pay Checkout in Codex?

Run `npx skills add paid-tw/skills --skill kryptogo-pay-checkout -a codex`. Or copy the skill folder (plugins/kryptogo-pay/skills/kryptogo-pay-checkout in paid-tw/skills) into .agents/skills/kryptogo-pay-checkout in your project. Codex loads it when a task matches its description.

Can I use Kryptogo Pay Checkout in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add paid-tw/skills --skill kryptogo-pay-checkout -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kryptogo-pay-checkout, .gemini/skills/kryptogo-pay-checkout, .github/skills/kryptogo-pay-checkout and .opencode/skills/kryptogo-pay-checkout in your project.

What does Kryptogo Pay Checkout need to run?

Going by SKILL.md and its folder, Kryptogo Pay Checkout needs the command-line tools its instructions call (npm) and credentials named STUDIO_API_KEY and KRYPTOGO_STUDIO_API_KEY. Our summary lists: Python 3; Node.js; A credential in STUDIO_API_KEY; A credential in KRYPTOGO_STUDIO_API_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Grep, Glob.

Does Kryptogo Pay Checkout access the network?

SKILL.md names 2 domains. In commands or code: wallet.kryptogo.app; the agent is likely to contact it when it follows the instructions. As links in the text: studio.kryptogo.com. This is read from the text; nothing was executed.

Is Kryptogo Pay Checkout safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Kryptogo Pay Checkout use?

Kryptogo Pay Checkout is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kryptogo Pay Checkout use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5k tokens, read only when the agent opens those files.

What are the alternatives to Kryptogo Pay Checkout?

Skills that share tags, products or a category with Kryptogo Pay Checkout: AI Client (Opentrons/opentrons, 523 stars), NEAR Intents Swap Integration (internet-court/internet-court-skill, 6.6k stars), Shopify Expert (Jeffallan/claude-skills, 12k stars) and Trpc Fullstack (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kryptogo Pay Checkout?

paid-tw (a GitHub organization) maintains it in paid-tw/skills, which has 284 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on March 7, 2026.

Source: paid-tw/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.