Quick Launch of SkillPay: A Guide to Publishing X402 WeChat Paid Skill on SkillHub

Introduction

When existing APIs or paid capabilities need to be invoked by AI Agents on a per-use basis, the difficulty often lies not in the business code itself, but in the payment pipeline: the platform needs to identify “Unpaid / Pending Payment / Paid”, the backend needs to transmit payment information back according to the protocol, and it must integrate with WeChat Merchant and SkillHub-side keys. When documentation is scattered and error messages are obscure, going from “it runs” to “it can be listed as a billable Skill on SkillHub” can drag on for a long time.

Below is an introduction to the Quick Publish SkillPay (coordinates @xigou/f-publish, version 1.0.0) on SkillHub. In the form of an operational guide Skill, it strings together the WeChat Pay merchant, developer keys, backend X402 modification, and common errors into a followable path, targeting developers who want to package existing paid services into Pay Skills.

What is it

Quick Publish SkillPay is a Skill from SkillHub Enterprise (enterprise), categorized as business-ops, published by Yunnan Xigou Information Technology Co., Ltd. The page is tagged requires_api_key=false, indicating that enabling this Skill itself does not depend on configuring an additional API Key in the environment (specific payment and merchant configuration are still completed on the backend and WeChat sides according to the steps in the text).

Official entry points:

  • API / Install Coordinates: https://api.skillhub.cn/xigou/f-publish
  • Skill Detail Page: https://www.skillhub.cn/skills/xigou/f-publish

It solves the problem of: how to publish a paid Skill adopting the X402 WeChat Agent Pay protocol on SkillHub, and writes the details of merchant application, keys, signatures, and HTTP 402 returns as reproducible steps, rather than just providing conceptual explanations.

Core Features

The following content is all taken from the SkillHub page introduction and is the capability list verified in this article:

  1. WeChat Pay Merchant ID Application: Starting from the merchant-side prerequisites, aligning with subsequent Agent payment calls.
  2. SkillHub Developer Key Generation: Obtaining developer keys related to signatures and authentication on the platform side.
  3. Backend Service Modification: Supports Go, Java, Python, or any other technology stack to modify existing services to the X402 protocol.
  4. 5-Line Signature String Implementation: Emphasizes that the signature string format must be implemented line-by-line according to the agreement to avoid “almost correct” verification failures.
  5. L1/L2 Two-Layer Structure: Organizing payment and Skill exposure methods according to the layering in the guide (details are subject to the Skill body).
  6. HTTP 402 + Header Dual Return: When unpaid or payment is required, carrying payment-required information via status code 402 and Header simultaneously for the Agent side to identify and trigger payment.
  7. payment_code 15-Minute Validity Handling: Explicitly handling the validity period of the payment code to avoid reuse after expiration.
  8. test_refund Testing Refund Mechanism: Verifying the fund chain and callbacks using test refunds before going live.
  9. Common Errors and Pitfalls: Covering errors such as “X402 protocol modification not performed” and practical issues in the publishing process (approximately 3 weeks of pitfalls documented in the introduction).

It is suitable for the Agent to expand step-by-step when questions like “How to publish a paid skill on SkillHub”, “What is the X402 protocol”, “How to integrate WeChat Pay into Agents”, “How to let AI pay to call my service”, or “How to solve the file type not allowed error” appear in the conversation.

Installation and Enablement

In the SkillHub ecosystem, the identifier for this Skill is @xigou/f-publish, version 1.0.0. Specific installation methods vary slightly depending on the client (Cursor, Codex CLI, Claude Code, etc.) and the current SkillHub documentation; the unified principle is: enter the coordinates or open the detail page to install in the client’s Skill add interface.

Verifiable official addresses:

https://www.skillhub.cn/skills/xigou/f-publish
https://api.skillhub.cn/xigou/f-publish

The page tag is requires_api_key=false: Enabling the Skill guide itself does not require filling in a SkillHub API Key; WeChat Pay merchant ID, platform developer keys, backend environment variables, etc., still need to be configured by yourself in the modification steps and must not be committed to a public repository.

Typical Usage

When using this Skill, it is advisable to state the goal specifically to facilitate the Agent starting from the corresponding chapter, for example:

  1. Describe the current service form (REST API, existing billing logic, etc.) and the desire to list as a Pay Skill on SkillHub.
  2. Complete in order guided by the Skill: WeChat merchant preparation → SkillHub developer keys → Choose one of Go/Java/Python to modify the backend.
  3. Implement the 5-line signature string and L1/L2 structure mentioned in the introduction, and ensure the HTTP 402 response and payment fields in the Header are consistent and parseable by the Agent.
  4. Implement the payment_code 15-minute validity logic; use test_refund to verify the refund path during the integration phase.
  5. If there are errors during listing or calling (e.g., “X402 protocol modification not performed” or file type not allowed), feed the complete error and current configuration back to the Agent and check item by item against the troubleshooting instructions in the Skill.

The above is the usage order derived from the official introduction; step-by-step commands, field names, and code snippets are subject to SKILL.md and the body text within the Skill package. This article does not invent configuration items that do not appear on the page.

Suitable Scenarios and Notes

Who is it for

  • Developers who want to package existing paid services into a billable Pay Skill on SkillHub.
  • Merchants or technical partners who need to integrate WeChat Pay.
  • Builders who want to implement “AI paying on behalf of users to call third-party capabilities” within the Agent flow.

Usage Notes

  • Protocol modification must be complete: The introduction explicitly lists “X402 protocol modification not performed” as a typical error source. Modifying only partial interfaces or omitting the 402/Header agreement can easily lead to listing or calling failures.
  • Signatures and timing are hard constraints: Any deviation in the 5-line signature string or the payment_code 15-minute validity period may manifest as verification failure or inconsistent payment states.
  • Operational data in materials changes over time: The SkillHub page currently shows a rating of 100000, downloads of 762, and installations of 0; please refer to the real-time statistics when opening the detail page.
  • Payment and compliance: WeChat merchant, real deduction, and refunds are all subject to WeChat platform and local regulatory requirements. Testing should prioritize mechanisms like test_refund before switching to production.

Conclusion

Quick Publish SkillPay brings together SkillHub paid Skill publishing, X402 WeChat Agent Pay, backend multi-language modification, and common errors into one guide, reducing the back-and-forth between documentation and trial-and-error. If you are planning to list a Pay Skill, you can install @xigou/f-publish from the official detail page and complete the modification and publishing with the steps inside the Skill and collaboration with the Agent.

Official Address: https://www.skillhub.cn/skills/xigou/f-publish

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye