Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill fastapi-payment-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-payment-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-payment-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-payment-module-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-payment-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-payment-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Data Exfiltration · line 142 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.02365 |
| Opus 5 | $0.00049 | $0.01182 |
| Sonnet 5 | $0.00020 | $0.00473 |
| Haiku 4.5 | $0.00010 | $0.00236 |
Grade A, and why
fastapi-payment-module-skill scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
import urllib.parse How it starts
The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastAPI Payment Module Skill
面向已有 FastAPI 项目的开发者,快速集成支付能力。
能力清单
| 能力 | 说明 |
|---|---|
| 微信支付 | JSAPI/小程序/H5/App 支付 |
| 支付宝支付 | wap/PC/App 支付 |
| 退款 | 退款申请/查询/回调 |
| 回调通知 | 异步通知验签 |
| 对账 | 账单下载/核对 |
触发场景
用户说"帮我加支付"或"集成微信/支付宝"时触发。
核心实现
依赖配置
# 微信支付
pip install wechatpayv3
# 支付宝
pip install alipay-sdk-python
# 异步HTTP
pip install httpx
配置
# config.py
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
# 微信支付
wechat_app_id: str = ""
wechat_mch_id: str = ""
wechat_api_key: str = ""
wechat_cert_path: str = ""
wechat_notify_url: str = ""
# 支付宝
alipay_app_id: str = ""
alipay_private_key: str = ""
alipay_public_key: str = ""
alipay_notify_url: str = ""
alipay_return_url: str = ""
settings = Settings()
数据模型
# models.py
from sqlalchemy import Column, BigInteger, String, Numeric, Integer, DateTime, Enum as SQLEnum, Text
from sqlalchemy.sql import func
from database import Base
import enum
class PayType(str, enum.Enum):
WECHAT = "wechat"
ALIPAY = "alipay"
class PayStatus(str, enum.Enum):
PENDING = "pending"
PAID = "paid"
REFUNDED = "refunded"
CLOSED = "closed"
class RefundStatus(str, enum.Enum):
PENDING = "pending"
SUCCESS = "success"
FAILED = "failed"
class PayOrder(Base):
__tablename__ = "wg_pay_order"
id = Column(BigInteger, primary_key=True, autoincrement=True)
order_no = Column(String(64), unique=True, nullable=False, index=True)
pay_order_no = Column(String(64), index=True)
pay_type = Column(SQLEnum(PayType))
status = Column(SQLEnum(PayStatus), default=PayStatus.PENDING)
amount = Column(Numeric(10, 2), nullable=False)
subject = Column(String(200))
body = Column(String(500))
notify_url = Column(String(500))
return_url = Column(String(500))
user_id = Column(String(50), index=True)
openid = Column(String(100))
paid_at = Column(DateTime)
created_at = Column(DateTime, server_default=func.now())
updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now())
class RefundOrder(Base):
__tablename__ = "wg_refund_order"
id = Column(BigInteger, primary_key=True, autoincrement=True)
refund_no = Column(String(64), unique=True, nullable=False)
pay_order_no = Column(String(64), index=True)
refund_id = Column(String(64))
refund_amount = Column(Numeric(10, 2), nullable=False)
total_amount = Column(Numeric(10, 2), nullable=False)
status = Column(SQLEnum(RefundStatus), default=RefundStatus.PENDING)
reason = Column(String(200))
refunded_at = Column(DateTime)
created_at = Column(DateTime, server_default=func.now())
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 314 lines · 99 tokens per session scan A 44eab4666c45
fastapi-payment-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (97 stars, last pushed 2d ago), licensed Apache-2.0. It adds 99 tokens to every session and 2,365 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
x402
Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…
tushare
A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.
stripe-best-practices
Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatictax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment…
pinme-uniwebpay
Use when generating, modifying, or reviewing PinMe Worker (Cloudflare Worker TypeScript) code that accepts payments through UniwebPay — payment links, products/prices, checkout sessions, payment status reads, refunds, subscriptions, or handling UniwebPay webhooks with @uniwebpay/sdk in a PinMe project.
erp-xpp
Finance and Operations X++ development lifecycle — scaffold models, author classes, custom services/APIs, and data entities, install matching SDKs, compile deployable packages, deploy packages, synchronize databases, and verify deployed artifacts. Use when the user wants to create, build, compile, package, deploy…
kalshi-api
Kalshi exchange mechanics — RSA-PSS auth, order schema, YES/NO orderbook convention, WebSocket, and endpoint surface. Market-type-agnostic shared layer for all Kalshi skills.