npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

alipay-subscription-skill

v1.4.1

Published

Claude Code skill — 支付宝订阅产品商家接入指南(安装后自动放入 ~/.claude/skills)

Readme

alipay-subscription-skill

Claude Code Skill —— 支付宝订阅产品商家接入指南

安装后通过 postinstall 自动把 skill 放入 Claude Code 的 skills 目录 (~/.claude/skills/alipay-subscription/),无需手动拷贝。重启 Claude Code 后, 当你询问支付宝订阅、自动续费、团体席位订阅、试用期/优惠券、消息通知、退款等问题时, 该 skill 会被自动触发加载。

skill 内容包括:

  • SKILL.md —— 接入指南主文档(API 规范、个体/团体订阅、营销工具、低代码与 API 两种接入、服务商代开发等)
  • references/ —— API 完整文档、示例代码(Java/Go)、数据模型、测试推进、排障等参考材料

安装

一条命令完成全局安装 + 选择目标客户端:

npx alipay-subscription-skill

运行后:

  1. 自动全局安装:若本包尚未全局安装,会先执行 npm i -g alipay-subscription-skill(已装则跳过)。
  2. 交互式选择目标:用 ↑/↓ 移动、空格 切换勾选、a 全选、回车 确认,可同时勾选:
    • Claude Code~/.claude/skills/alipay-subscription/
    • Codex~/.codex/skills/alipay-subscription/
  3. 复制 skill:把 SKILL.mdreferences/ 写入选定目录(已存在则覆盖)。

重启对应客户端(Claude Code / Codex)后即可使用。

跳过交互(CI / 脚本)

npx alipay-subscription-skill --all        # 装到 Claude Code + Codex
npx alipay-subscription-skill --claude     # 只装 Claude Code
npx alipay-subscription-skill --codex      # 只装 Codex

全局安装也可直接 npm i -g alipay-subscription-skill,之后会提示运行上述命令选择目标; 安装器本身已包含全局安装步骤,所以 npx 一条命令通常就够了。

自定义 skills 目录

若你的 skills 目录不在默认位置,用环境变量指定:

CLAUDE_SKILLS_DIR=/path/to/claude/skills \
CODEX_SKILLS_DIR=/path/to/codex/skills \
  npx alipay-subscription-skill --all

升级

npx alipay-subscription-skill@latest

安装器会以新版本覆盖旧目标目录,升级幂等。若已全局装过旧版,也可先 npm i -g alipay-subscription-skill@latestnpx alipay-subscription-skill 重新选目标。

卸载

npm uninstall -g alipay-subscription-skill

postuninstall 会自动移除 ~/.claude/skills/alipay-subscription/~/.codex/skills/alipay-subscription/。如需手动清理,直接删除对应目录即可。

维护与发布(面向 skill 作者)

skill 源码与 git 仓库同根(alipay-subscription/)。日常更新流程:

# 1. 编辑 skill 内容(SKILL.md / references/)
# 2. 一键发布:自动 bump 版本 + git 同步 + npm 发布
cd alipay-subscription
npm run release              # 默认 patch
npm run release -- --minor   # minor
npm run release -- --major   # major
npm run release -- 1.2.0     # 显式版本号

# 预览(不改动文件、不发 git/npm 写操作)
npm run release -- --dry-run

npm run release 依次执行:

  1. 校验 npm 登录态(npm whoami),未登录请先 npm login
  2. 计算、写回 package.json 版本号
  3. git add -A && git commit + git tag vX.Y.Z
  4. git push origin <branch> 并推送 tag(同步到内部 git 仓库)
  5. npm publish(发布到公开 npmjs.org)

若某一步失败,脚本会打印「下一步手动命令」便于续跑;git 已同步、仅 npm 失败时, 直接运行 npm publish 即可。

验证包内容

发布前可用 dry-run 检查 tarball 只含必要文件:

npm pack --dry-run
# 应仅含:SKILL.md / references/ / scripts/ / package.json / README.md

License

MIT