Novu Design Workflow
novuhq/novu
Design notification workflows the Novu way — choose channels, set severity, decide when a workflow is critical, configure digests, and route based on subscriber state.
Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates.
$ npx skills add paid-tw/skills --skill payuni-webhook -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install paid-tw/skills payuni-webhook --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .claude/skills/payuni-webhook && rm -rf skills-srcUse ~/.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/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .claude/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhookType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add paid-tw/skills --skill payuni-webhook -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install paid-tw/skills payuni-webhook --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .agents/skills/payuni-webhook && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .agents/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add paid-tw/skills --skill payuni-webhook -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install paid-tw/skills payuni-webhook --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .cursor/skills/payuni-webhook && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .cursor/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/paid-tw/skills.git --path plugins/payuni/skills/payuni-webhook--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add paid-tw/skills --skill payuni-webhook -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install paid-tw/skills payuni-webhook --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .gemini/skills/payuni-webhook && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .gemini/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install paid-tw/skills payuni-webhookInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add paid-tw/skills --skill payuni-webhook -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .github/skills/payuni-webhook && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .github/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add paid-tw/skills --skill payuni-webhook -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install paid-tw/skills payuni-webhook --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/paid-tw/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/payuni/skills/payuni-webhook .opencode/skills/payuni-webhook && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "payuni-webhook" agent skill from https://github.com/paid-tw/skills/tree/main/plugins/payuni/skills/payuni-webhook into .opencode/skills/payuni-webhook/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "payuni-webhook", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
payuni-webhookImplements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates.
Payuni Webhook is an agent skill from paid-tw/skills. Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates. Use when building payment notification endpoints for 統一金流.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/response-parameters.md`).
It sits in Backend & APIs, covering Webhooks. The repository describes itself as: 台灣第三方金流 Skills for AI Agents - 藍新金流、綠界科技 ECPay、統一金流 PAYUNi. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1cd84bd. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditBashGrepGlobFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ngrokFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
PAYUNI_HASH_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Payuni Webhook loads about 1.6k tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 149 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Write, Edit, Bash, Grep, GlobAutomated 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.
The full file from paid-tw/skills at commit 1cd84bd, republished under its MIT licence (© paid-tw). 149 words, ~1,570 tokens.
.claude/skills/payuni-webhook/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.你的任務是在用戶的專案中實作統一金流 Webhook 接收與處理功能。
用戶輸入: $ARGUMENTS
詢問用戶:
框架類型:
資料庫:用什麼來儲存訂單?
// app/api/webhooks/payuni/route.ts
import { NextRequest, NextResponse } from 'next/server';
import crypto from 'crypto';
const config = {
hashKey: process.env.PAYUNI_HASH_KEY!,
hashIV: process.env.PAYUNI_HASH_IV!,
};
// 簽名驗證(使用 constant-time 比較防止 timing attack)
function verifyCheckCode(params: Record<string, string>): boolean {
const { CheckCode, ...otherParams } = params;
if (!CheckCode) return false;
const sortedKeys = Object.keys(otherParams).sort();
const paramStr = sortedKeys.map(k => `${k}=${otherParams[k]}`).join('&');
const signStr = `HashKey=${config.hashKey}&${paramStr}&HashIV=${config.hashIV}`;
const calculated = crypto
.createHash('sha256')
.update(signStr)
.digest('hex')
.toUpperCase();
try {
return crypto.timingSafeEqual(
Buffer.from(calculated),
Buffer.from(CheckCode)
);
} catch {
return false;
}
}
export async function POST(request: NextRequest) {
try {
// 解析請求
const contentType = request.headers.get('content-type');
let params: Record<string, string>;
if (contentType?.includes('application/json')) {
params = await request.json();
} else {
const formData = await request.formData();
params = Object.fromEntries(formData.entries()) as Record<string, string>;
}
// 驗證簽名
if (!verifyCheckCode(params)) {
console.error('[Webhook] Invalid signature');
return NextResponse.json({ error: 'Invalid signature' }, { status: 401 });
}
// 取得訂單資訊
const { Status, MerchantOrderNo, TradeNo, TradeAmt } = params;
// TODO: 檢查是否已處理過此 TradeNo(防重放攻擊)
// const exists = await db.webhookLog.findUnique({ where: { tradeNo: TradeNo } });
// if (exists) return NextResponse.json({ success: true, message: 'Already processed' });
if (Status === 'SUCCESS') {
// TODO: 更新訂單狀態為已付款
// await db.order.update({
// where: { id: MerchantOrderNo },
// data: { status: 'paid', paymentDetails: { tradeNo: TradeNo, amount: TradeAmt } }
// });
console.log('[Webhook] Payment success:', MerchantOrderNo);
} else {
// TODO: 更新訂單狀態為失敗
console.log('[Webhook] Payment failed:', MerchantOrderNo);
}
// TODO: 記錄 webhook 請求(防重放)
// await db.webhookLog.create({ data: { tradeNo: TradeNo, processedAt: new Date() } });
return NextResponse.json({ success: true });
} catch (error) {
console.error('[Webhook] Error:', error);
return NextResponse.json({ error: 'Internal error' }, { status: 500 });
}
}
// 健康檢查端點
export async function GET() {
return NextResponse.json({
message: 'PAYUNi Webhook endpoint',
timestamp: new Date().toISOString(),
});
}import express from 'express';
import crypto from 'crypto';
const router = express.Router();
router.post('/webhooks/payuni', async (req, res) => {
try {
const params = req.body;
// 驗證簽名
if (!verifyCheckCode(params)) {
return res.status(401).json({ error: 'Invalid signature' });
}
const { Status, MerchantOrderNo, TradeNo } = params;
if (Status === 'SUCCESS') {
// 更新訂單狀態
console.log('Payment success:', MerchantOrderNo);
}
res.json({ success: true });
} catch (error) {
console.error('Webhook error:', error);
res.status(500).json({ error: 'Internal error' });
}
});
export default router;建立 webhook 請求記錄表:
CREATE TABLE webhook_requests (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
provider VARCHAR(50) NOT NULL DEFAULT 'payuni',
trade_no VARCHAR(100) UNIQUE,
merchant_order_no VARCHAR(100),
checksum VARCHAR(64),
status VARCHAR(20) DEFAULT 'processing',
processed_at TIMESTAMP,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_webhook_trade_no ON webhook_requests(trade_no);
CREATE INDEX idx_webhook_checksum ON webhook_requests(checksum);async function checkDuplicate(tradeNo: string): Promise<boolean> {
const existing = await db.webhookRequest.findUnique({
where: { tradeNo }
});
return !!existing;
}
async function markProcessed(tradeNo: string): Promise<void> {
await db.webhookRequest.create({
data: {
tradeNo,
provider: 'payuni',
processedAt: new Date(),
}
});
}使用 ngrok 暴露本地服務
ngrok http 3000設定 NotifyURL 將 ngrok 提供的 HTTPS URL 設定為 NotifyURL
發起測試付款 在統一金流測試環境發起付款
檢查日誌 確認 Webhook 正確接收並處理
| 參數 | 說明 |
|---|---|
| Status | 付款狀態 SUCCESS / FAIL |
| MerchantOrderNo | 商店訂單編號 |
| TradeNo | PAYUNi 交易編號 |
| TradeAmt | 交易金額 |
| PaymentType | 付款方式 |
| PayTime | 付款時間 |
| CheckCode | 驗證碼 |
1. 將所有參數(除了 CheckCode)按字母順序排序
2. 組成 key=value&key=value 的字串
3. 在開頭加上 HashKey=xxx&,結尾加上 &HashIV=xxx
4. 進行 SHA256 雜湊後轉大寫timingSafeEqual 防止 timing attack© 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
SKILL.md and 1 other file (references) in plugins/payuni/skills/payuni-webhook of paid-tw/skills.
Open the folder on GitHubat commit 1cd84bd
Payuni Webhook 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Payuni Webhook this skillpaid-tw/skills | 284 | — | ~1.6k | Automated safety check: Notes | MIT | |
| Novu Design Workflownovuhq/novu | 40k | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Golivemikehasa/golive-skill | 1.3k | — | ~13k | Automated safety check: Notes | MIT | |
| Stripe Appsfossasia/eventyay | 1.7k | 1 repos | ~3.6k | Automated safety check: Pass | Apache-2.0 | |
| Dingtalk Messageagentscope-ai/ReMe | 3.6k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| PR Review Provideryansongda/pay | 5.4k | — | ~2.4k | Automated safety check: Pass | MIT |
novuhq/novu
Design notification workflows the Novu way — choose channels, set severity, decide when a workflow is critical, configure digests, and route based on subscriber state.
mikehasa/golive-skill
Take an agent-written app from repo to live production on the user's OWN accounts, with providers they choose (hosting, database, auth, payments, email, domain/DNS).
fossasia/eventyay
A skill your agent uses when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g.
agentscope-ai/ReMe
钉钉消息发送技能。支持企业内部机器人(批量单聊/群聊)和 Webhook 自定义机器人两种接入方式,支持多机器人管理,支持文本、Markdown、链接、ActionCard、FeedCard等多种消息类型。
yansongda/pay
A skill your agent uses when reviewing PRs that add or modify a payment Provider in yansongda/pay - covers plugin pipeline, multi-tenant safety, signature verification, docs, and naming conventions.
kanchengw/cnllm
Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…
paid-tw/skills
Implements KryptoGO Payment checkout integration including Payment Intent creation, React SDK usePayment hook, and Direct API integration.
paid-tw/skills
Implements KryptoGO Payment token transfer/withdrawal functionality using the Asset Pro Transfer API.
paid-tw/skills
Implements KryptoGO Payment webhook/callback handling for receiving payment status notifications.
paid-tw/skills
Implements NewebPay MPG checkout integration including AES256 encryption, form submission, and payment callback handling.
paid-tw/skills
Implements PAYUNi UPP checkout integration including AES256 encryption, form submission, and payment callback handling.
paid-tw/skills
Provides NewebPay integration overview and guides users to the appropriate skill.
Categories
Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates. Payuni Webhook is an agent skill from paid-tw/skills. Implements PAYUNi webhook handling including signature verification, replay attack prevention, and payment status updates.
Payuni Webhook fits situations like: building payment notification endpoints for 統一金流; tasks that involve Webhooks.
Run `npx skills add paid-tw/skills --skill payuni-webhook -a claude-code`. Or copy the skill folder (plugins/payuni/skills/payuni-webhook in paid-tw/skills) into .claude/skills/payuni-webhook in your project. Claude Code loads it when a task matches its description.
Run `npx skills add paid-tw/skills --skill payuni-webhook -a codex`. Or copy the skill folder (plugins/payuni/skills/payuni-webhook in paid-tw/skills) into .agents/skills/payuni-webhook in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add paid-tw/skills --skill payuni-webhook -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/payuni-webhook, .gemini/skills/payuni-webhook, .github/skills/payuni-webhook and .opencode/skills/payuni-webhook in your project.
Going by SKILL.md and its folder, Payuni Webhook needs the command-line tools its instructions call (ngrok) and credentials named PAYUNI_HASH_KEY. Our summary lists: A credential in PAYUNI_HASH_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Grep, Glob.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Payuni Webhook is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k 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 422 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Payuni Webhook: Novu Design Workflow (novuhq/novu, 40k stars), Golive (mikehasa/golive-skill, 1.3k stars), Stripe Apps (fossasia/eventyay, 1.7k stars) and Dingtalk Message (agentscope-ai/ReMe, 3.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.