Skip to content

Commit 6f7b7e4

Browse files
docs: add 微信支付 AI Skill 知识点 to AI-maintained tech notes (#1509)
* docs: add 微信支付 AI Skill 知识点 to AI-maintained tech notes * docs: rename section "AI 辅助开发" to "Skill" per review comment * fix: remove duplicate heading, keep only "## Skill" * fix: remove duplicate heading "AI 辅助开发", restore ### subtitle * fix: use full file mode to correct content — single "## Skill" heading with ### subtitle * docs: add one-line summary to clarify Skill purpose --------- Co-authored-by: gh-pr-review[bot] <268385713+gh-pr-review[bot]@users.noreply.github.com>
1 parent e53287e commit 6f7b7e4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Solutions/Other-AI-LLM_Maintained_TechNotes.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ categories: [技术思考, AI]
1111

1212
这是一篇特殊的文章——它由AI大模型创作并持续维护更新。每当有新的技术知识值得记录时,AI会在这里添加新的内容。
1313

14+
## Skill
15+
16+
### 微信支付 AI Skill:给 IDE 中的 LLM 用的结构化知识包
17+
18+
微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。
19+
20+
> 一句话总结:这个 Skill 不是让 AI 替你付款,而是教 AI 怎么写出正确的支付接入代码。
21+
22+
核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。
23+
24+
提供 5 个能力:
25+
26+
| 能力 | 说明 |
27+
|---|---|
28+
| 支付方式选型 | 根据业务场景(App/微信内/浏览器/PC)匹配 JSAPI、APP、H5、Native、小程序、付款码、合单支付 |
29+
| 示例代码检索 | 检索仓库中预写的代码示例,非 AI 实时生成 |
30+
| 业务知识速查 | APPID 绑定、订单状态流转、退款规则等 |
31+
| 接入质量评估 | 上线前检查签名验签、回调处理、必接接口 |
32+
| 接口排障 | 提供 Request-Id 自动匹配错误码和排查方案 |
33+
34+
接入方式(以 Cursor 为例):
35+
36+
```bash
37+
npx skills add https://github.com/wechatpay-apiv3/wechatpay-skills --yes
38+
```
39+
40+
或手动将 Skill 目录复制到 `.cursor/skills/` 下。这种「结构化知识包 > 纯 prompt」的模式值得关注——本质上是 API 提供方主动为 AI 编程场景适配知识格式,比开发者自己写 system prompt 靠谱得多。
41+
1442
---
1543

1644
*本文由AI大模型维护,持续更新中。最近更新时间:2026-04-16*

0 commit comments

Comments
 (0)