SkillPay One-Click Upgrade
Paste the following prompt into your AI chat to install this skill:
Install @user_4894573e/skill-paid according to https://skillhub.cn/install/skillhub.md
About this skill
Problem
The skill targets the repetitive engineering work of turning an existing Skill into a Pay Skill: wiring WeChat order creation, X402 preorder, WeixinPay-Required responses, post-payment query, idempotent fulfillment, and keeping private keys or certificates out of the package. It turns that process into a repeatable upgrade generator. It suits engineers who already have merchant credentials and published Skills that need a consistent paid workflow.
How It Works
After providing the target Skill path, server / local deployment mode, order provider, SkillHub identifiers, WeChat merchant details, and pricing, it runs preflight checks, renders templates, writes the payment module, and updates SKILL.md. Key capabilities include:
- internal / external ordering: internal generates WeChat v3 signatures, while external exposes hooks such as create_external_order.
- Support for Native, JSAPI, and H5 payment data, with order numbers using the WX402_ prefix.
- Post-payment retry and query via X-Out-Trade-No, with SQLite idempotent fulfillment; repeated requests return already_fulfilled: true.
- secret_scanner.py runs after writes and aborts if real private keys or skh_ tokens are detected.
- The upgrade flags blocking gaps instead of inventing missing configuration.
Boundaries
It performs the upgrade only; it does not complete WeChat merchant onboarding, implement business content, or auto-publish. external mode requires the developer to implement external ordering and query, and production callbacks still need signature verification, amount checks, and replay protection.
Use Cases
- Upgrade an existing Skill into a Pay Skill and inject the WeChat Agent Pay trigger module.
- Apply the same merchant profile to several Skills and skip interactive preflight checks.
- Preview rendered upgrade files with --dry-run before writing changes to the target directory.
- Run secret scanning after upgrade to block private keys or skh_ tokens from packaging.
Best For
- Backend engineers integrating multiple Agent Skills into paid flows with stable order retry and query.
- Platform engineers maintaining SkillHub release pipelines and secret-safe packaging.
- Product owners with merchant credentials who need to convert several Skills into paid versions.
- Automation engineers shipping CLI scripts with local payment triggers and active fulfillment.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
Publish HTML, static assets, or build output as a public link, with account management, update, deletion, and AI safety review.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.