From 2b4357c1a344052b9ccc7bf3865095eb0109fad1 Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:23:41 +0000 Subject: [PATCH 1/6] =?UTF-8?q?docs:=20add=20=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=20AI=20Skill=20=E7=9F=A5=E8=AF=86=E7=82=B9=20to=20AI-?= =?UTF-8?q?maintained=20tech=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Other-AI-LLM_Maintained_TechNotes.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index 3190fcd2b271..7fdcd1508a0a 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -11,6 +11,32 @@ categories: [技术思考, AI] 这是一篇特殊的文章——它由AI大模型创作并持续维护更新。每当有新的技术知识值得记录时,AI会在这里添加新的内容。 +## AI 辅助开发 + +### 微信支付 AI Skill:给 IDE 中的 LLM 用的结构化知识包 + +微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 + +核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 + +提供 5 个能力: + +| 能力 | 说明 | +|---|---| +| 支付方式选型 | 根据业务场景(App/微信内/浏览器/PC)匹配 JSAPI、APP、H5、Native、小程序、付款码、合单支付 | +| 示例代码检索 | 检索仓库中预写的代码示例,非 AI 实时生成 | +| 业务知识速查 | APPID 绑定、订单状态流转、退款规则等 | +| 接入质量评估 | 上线前检查签名验签、回调处理、必接接口 | +| 接口排障 | 提供 Request-Id 自动匹配错误码和排查方案 | + +接入方式(以 Cursor 为例): + +```bash +npx skills add https://github.com/wechatpay-apiv3/wechatpay-skills --yes +``` + +或手动将 Skill 目录复制到 `.cursor/skills/` 下。这种「结构化知识包 > 纯 prompt」的模式值得关注——本质上是 API 提供方主动为 AI 编程场景适配知识格式,比开发者自己写 system prompt 靠谱得多。 + --- *本文由AI大模型维护,持续更新中。最近更新时间:2026-04-16* From 9219aa28c5bd2de7bd501ec6a3ae6048a93ad398 Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:35:58 +0000 Subject: [PATCH 2/6] =?UTF-8?q?docs:=20rename=20section=20"AI=20=E8=BE=85?= =?UTF-8?q?=E5=8A=A9=E5=BC=80=E5=8F=91"=20to=20"Skill"=20per=20review=20co?= =?UTF-8?q?mment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Solutions/Other-AI-LLM_Maintained_TechNotes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index 7fdcd1508a0a..e00a5a8d4167 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -13,7 +13,7 @@ categories: [技术思考, AI] ## AI 辅助开发 -### 微信支付 AI Skill:给 IDE 中的 LLM 用的结构化知识包 +## Skill 微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 From 009635cb9235a995dfb0fbed6561d8758da13d5d Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:36:45 +0000 Subject: [PATCH 3/6] fix: remove duplicate heading, keep only "## Skill" --- Solutions/Other-AI-LLM_Maintained_TechNotes.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index e00a5a8d4167..60582f941b6f 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -15,8 +15,6 @@ categories: [技术思考, AI] ## Skill -微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 - 核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 提供 5 个能力: From c3823e24a25d4715f0ae1e3d8e9e43d56c0bc6d0 Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:37:29 +0000 Subject: [PATCH 4/6] =?UTF-8?q?fix:=20remove=20duplicate=20heading=20"AI?= =?UTF-8?q?=20=E8=BE=85=E5=8A=A9=E5=BC=80=E5=8F=91",=20restore=20###=20sub?= =?UTF-8?q?title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Solutions/Other-AI-LLM_Maintained_TechNotes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index 60582f941b6f..8b52b34ccc9f 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -13,11 +13,11 @@ categories: [技术思考, AI] ## AI 辅助开发 -## Skill - 核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 -提供 5 个能力: +### 微信支付 AI Skill:给 IDE 中的 LLM 用的结构化知识包 + +微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 | 能力 | 说明 | |---|---| From e8d36bfc3bc06b89672278b7091faa9a2d7da0e8 Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:38:16 +0000 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20use=20full=20file=20mode=20to=20corr?= =?UTF-8?q?ect=20content=20=E2=80=94=20single=20"##=20Skill"=20heading=20w?= =?UTF-8?q?ith=20###=20subtitle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Solutions/Other-AI-LLM_Maintained_TechNotes.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index 8b52b34ccc9f..621cb8559168 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -11,14 +11,16 @@ categories: [技术思考, AI] 这是一篇特殊的文章——它由AI大模型创作并持续维护更新。每当有新的技术知识值得记录时,AI会在这里添加新的内容。 -## AI 辅助开发 - -核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 +## Skill ### 微信支付 AI Skill:给 IDE 中的 LLM 用的结构化知识包 微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 +核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 + +提供 5 个能力: + | 能力 | 说明 | |---|---| | 支付方式选型 | 根据业务场景(App/微信内/浏览器/PC)匹配 JSAPI、APP、H5、Native、小程序、付款码、合单支付 | From 744e9e210acd5c898526a2f8949d12ee4fa956f2 Mon Sep 17 00:00:00 2001 From: "gh-pr-review[bot]" <268385713+gh-pr-review[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:44:46 +0000 Subject: [PATCH 6/6] docs: add one-line summary to clarify Skill purpose --- Solutions/Other-AI-LLM_Maintained_TechNotes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Solutions/Other-AI-LLM_Maintained_TechNotes.md b/Solutions/Other-AI-LLM_Maintained_TechNotes.md index 621cb8559168..67099ae116ee 100644 --- a/Solutions/Other-AI-LLM_Maintained_TechNotes.md +++ b/Solutions/Other-AI-LLM_Maintained_TechNotes.md @@ -17,6 +17,8 @@ categories: [技术思考, AI] 微信支付官方推出了 [wechatpay-skills](https://github.com/wechatpay-apiv3/wechatpay-skills) 仓库,将支付接入的领域知识以 **Cursor Custom Skills** 格式打包(`SKILL.md` + `references/` 目录),放到 AI IDE 的 Skill 配置目录下即可使用。 +> 一句话总结:这个 Skill 不是让 AI 替你付款,而是教 AI 怎么写出正确的支付接入代码。 + 核心思路:不让 LLM 自由发挥写支付代码,而是让它从预先编写验证过的知识库中检索正确答案。代码示例(Java/Go)由微信支付团队预先编写并验证,LLM 只负责根据用户场景选对代码片段返回。 提供 5 个能力: