Skip to content

Commit ec9b094

Browse files
JusterZhuclaude
andcommitted
fix: update skill docs to match v10.5.0-beta.4 API
Replace obsolete Configinfo/Common.Shared/IsComplated references: - Configinfo -> UpdateRequest in skill docs, templates, and checklists - GeneralUpdate.Common.Download -> GeneralUpdate.Core.Download - IsComplated -> IsCompleted (v10.5 API uses the correct spelling) - Fix frontmatter descriptions and user requirement templates Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9063613 commit ec9b094

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

.claude/skills/generalupdate-init/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: generalupdate-init
33
description: |
44
Integrate GeneralUpdate auto-update into any .NET application. Generates Bootstrap
55
configuration code, manifest files, and dual-project (Client+Upgrade) scaffolding.
6-
Covers 4 update scenes, Configinfo configuration, appsettings.json, HTTP auth (HMAC/Basic/Bearer),
6+
Covers 4 update scenes, UpdateRequest configuration, appsettings.json, HTTP auth (HMAC/Basic/Bearer),
77
and complete deployment checklist. Triggers on: "add auto update", "integrate GeneralUpdate",
88
"configure bootstrap", "我需要自动更新", "配置更新", "初始化GeneralUpdate", "添加更新功能",
99
"接入更新", "升级框架". Also triggers when user mentions their project type + update.
@@ -13,7 +13,7 @@ when_to_use: |
1313
- First-time integration of GeneralUpdate into a .NET project
1414
- User wants Bootstrap configuration code (Minimal or Full)
1515
- User needs the Client + Upgrade dual-project structure explained
16-
- User asks about manifest.json, Configinfo, or generalupdate.manifest.json
16+
- User asks about manifest.json, UpdateRequest, or generalupdate.manifest.json
1717
- User mentions their specific .NET framework (WPF/WinForms/Avalonia/MAUI/console)
1818
- User asks about deployment considerations or CI/CD integration
1919
- Best used as the entry point; guide to other skills as needed
@@ -47,7 +47,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
4747
4848
### 已有配置(如果存在)
4949
- 是否已安装 NuGet: ______(是/否,版本号)
50-
- 是否已有 Configinfo 配置: ______(是/否)
50+
- 是否已有 UpdateRequest 配置: ______(是/否)
5151
- 是否已有 manifest.json: ______(是/否)
5252
```
5353

@@ -60,7 +60,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
6060
```
6161
├── 检查 .csproj → 目标框架、UI 类型、是否有 NuGet 引用
6262
├── 检查是否存在 generalupdate.manifest.json
63-
├── 检查是否存在 Configinfo/Bootstrap 配置代码
63+
├── 检查是否存在 UpdateRequest/Bootstrap 配置代码
6464
└── 检查项目结构 → 是否已有独立的 Upgrade 项目
6565
```
6666

@@ -71,7 +71,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
7171
| 模式 | 适用场景 | 产出 |
7272
|------|---------|------|
7373
| **[Minimal]** | 新用户快速上手,控制台/服务应用 | 3 行 Bootstrap 代码 |
74-
| **[Standard]** | 需要精确控制更新过程 | Configinfo + 完整事件监听 |
74+
| **[Standard]** | 需要精确控制更新过程 | UpdateRequest + 完整事件监听 |
7575
| **[Scaffold]** | 团队项目,从零开始 | 完整 Client + Upgrade 双项目结构 |
7676

7777
### Step 3:生成输出
@@ -345,7 +345,7 @@ v10.5.0-beta.4 新增以下功能:
345345
## ✅ 集成验证清单(交付前逐项检查)
346346

347347
### Bootstrap 配置
348-
- [ ] `Configinfo` 的 6 个必填字段都已设置(UpdateUrl, AppSecretKey, AppName, MainAppName, ClientVersion, ProductId, InstallPath)
348+
- [ ] `UpdateRequest` 的 6 个必填字段都已设置(UpdateUrl, AppSecretKey, MainAppName, ClientVersion, ProductId, InstallPath)
349349
- [ ] `UpdateUrl` 指向的服务端 API 可正常返回版本信息
350350
- [ ] `AppSecretKey` 长度 ≥ 16 字符,与服务端一致
351351
- [ ] `AppType` 设置正确(Client = 1, Upgrade = 2)
@@ -358,7 +358,7 @@ v10.5.0-beta.4 新增以下功能:
358358
- [ ] 无需额外引用 `GeneralUpdate.Differential`(已嵌入 Core)
359359

360360
### 部署结构
361-
- [ ] UpgradeApp.exe 存在于发布目录(首个版本就必须有)
361+
- [ ] UpgradeApp.exe 存在于发布目录 update/ 子目录中(首个版本就必须有)
362362
- [ ] `generalupdate.manifest.json``UpdateAppName` 包含 `.exe`
363363
- [ ] IPC 文件(`UpdateInfo.msg`)路径在 Client/Upgrade 间一致
364364
- [ ] `Encoding` 设置为 `Encoding.UTF8`(防止 Linux/macOS 中文乱码)

.claude/skills/generalupdate-troubleshoot/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ reference.md 中的问题按严重度分级:
128128
- [ ] `AppType` 设置正确(Client = 1, Upgrade = 2)
129129

130130
### 配置检查
131-
- [ ] `Configinfo` 的 6 个必填字段都已设置
131+
- [ ] `UpdateRequest` 的 6 个必填字段都已设置
132132
- [ ] `UpdateUrl` 可通过 HTTP GET 访问并返回合法 JSON
133133
- [ ] `AppSecretKey` 与服务端配置一致(长度 ≥ 16 字符)
134134
- [ ] UpgradeApp.exe 存在于发布目录的 `update/` 子目录中

.claude/skills/generalupdate-ui/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ GeneralUpdateBootstrap.AddListenerException
192192

193193
### 事件桥接
194194
- [ ] 所有 6 个事件都已绑定(UpdateInfo, MultiDownloadStatistics, MultiDownloadCompleted, MultiDownloadError, MultiAllDownloadCompleted, Exception)
195-
- [ ] 桥接代码使用正确的 EventArgs 类型(检查命名空间 `GeneralUpdate.Common.Download`
196-
- [ ] `IsComplated` 注意拼写(v10.4.6 API 中的实际拼写,不是 `IsCompleted`
195+
- [ ] 桥接代码使用正确的 EventArgs 类型(检查命名空间 `GeneralUpdate.Core.Download` / `GeneralUpdate.Core.Event`
196+
- [ ] `IsCompleted` 属性名正确(v10.5.0-beta.4 使用 `IsCompleted`
197197

198198
### 线程安全
199199
- [ ] UI 更新操作在正确的线程上执行(WPF/Avalonia 用 `Dispatcher`,WinForms 用 `Invoke`,MAUI 用 `MainThread`

cli/assets/skills/generalupdate-init/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: generalupdate-init
33
description: |
44
Integrate GeneralUpdate auto-update into any .NET application. Generates Bootstrap
55
configuration code, manifest files, and dual-project (Client+Upgrade) scaffolding.
6-
Covers 4 update scenes, Configinfo configuration, appsettings.json, HTTP auth (HMAC/Basic/Bearer),
6+
Covers 4 update scenes, UpdateRequest configuration, appsettings.json, HTTP auth (HMAC/Basic/Bearer),
77
and complete deployment checklist. Triggers on: "add auto update", "integrate GeneralUpdate",
88
"configure bootstrap", "我需要自动更新", "配置更新", "初始化GeneralUpdate", "添加更新功能",
99
"接入更新", "升级框架". Also triggers when user mentions their project type + update.
@@ -13,7 +13,7 @@ when_to_use: |
1313
- First-time integration of GeneralUpdate into a .NET project
1414
- User wants Bootstrap configuration code (Minimal or Full)
1515
- User needs the Client + Upgrade dual-project structure explained
16-
- User asks about manifest.json, Configinfo, or generalupdate.manifest.json
16+
- User asks about manifest.json, UpdateRequest, or generalupdate.manifest.json
1717
- User mentions their specific .NET framework (WPF/WinForms/Avalonia/MAUI/console)
1818
- User asks about deployment considerations or CI/CD integration
1919
- Best used as the entry point; guide to other skills as needed
@@ -47,7 +47,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
4747
4848
### 已有配置(如果存在)
4949
- 是否已安装 NuGet: ______(是/否,版本号)
50-
- 是否已有 Configinfo 配置: ______(是/否)
50+
- 是否已有 UpdateRequest 配置: ______(是/否)
5151
- 是否已有 manifest.json: ______(是/否)
5252
```
5353

@@ -60,7 +60,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
6060
```
6161
├── 检查 .csproj → 目标框架、UI 类型、是否有 NuGet 引用
6262
├── 检查是否存在 generalupdate.manifest.json
63-
├── 检查是否存在 Configinfo/Bootstrap 配置代码
63+
├── 检查是否存在 UpdateRequest/Bootstrap 配置代码
6464
└── 检查项目结构 → 是否已有独立的 Upgrade 项目
6565
```
6666

@@ -71,7 +71,7 @@ allowed-tools: "Bash, Read, Write, Edit, Glob, Grep, WebSearch"
7171
| 模式 | 适用场景 | 产出 |
7272
|------|---------|------|
7373
| **[Minimal]** | 新用户快速上手,控制台/服务应用 | 3 行 Bootstrap 代码 |
74-
| **[Standard]** | 需要精确控制更新过程 | Configinfo + 完整事件监听 |
74+
| **[Standard]** | 需要精确控制更新过程 | UpdateRequest + 完整事件监听 |
7575
| **[Scaffold]** | 团队项目,从零开始 | 完整 Client + Upgrade 双项目结构 |
7676

7777
### Step 3:生成输出
@@ -345,7 +345,7 @@ v10.5.0-beta.4 新增以下功能:
345345
## ✅ 集成验证清单(交付前逐项检查)
346346

347347
### Bootstrap 配置
348-
- [ ] `Configinfo` 的 6 个必填字段都已设置(UpdateUrl, AppSecretKey, AppName, MainAppName, ClientVersion, ProductId, InstallPath)
348+
- [ ] `UpdateRequest` 的 6 个必填字段都已设置(UpdateUrl, AppSecretKey, MainAppName, ClientVersion, ProductId, InstallPath)
349349
- [ ] `UpdateUrl` 指向的服务端 API 可正常返回版本信息
350350
- [ ] `AppSecretKey` 长度 ≥ 16 字符,与服务端一致
351351
- [ ] `AppType` 设置正确(Client = 1, Upgrade = 2)
@@ -358,7 +358,7 @@ v10.5.0-beta.4 新增以下功能:
358358
- [ ] 无需额外引用 `GeneralUpdate.Differential`(已嵌入 Core)
359359

360360
### 部署结构
361-
- [ ] UpgradeApp.exe 存在于发布目录(首个版本就必须有)
361+
- [ ] UpgradeApp.exe 存在于发布目录 update/ 子目录中(首个版本就必须有)
362362
- [ ] `generalupdate.manifest.json``UpdateAppName` 包含 `.exe`
363363
- [ ] IPC 文件(`UpdateInfo.msg`)路径在 Client/Upgrade 间一致
364364
- [ ] `Encoding` 设置为 `Encoding.UTF8`(防止 Linux/macOS 中文乱码)

cli/assets/skills/generalupdate-troubleshoot/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ reference.md 中的问题按严重度分级:
128128
- [ ] `AppType` 设置正确(Client = 1, Upgrade = 2)
129129

130130
### 配置检查
131-
- [ ] `Configinfo` 的 6 个必填字段都已设置
131+
- [ ] `UpdateRequest` 的 6 个必填字段都已设置
132132
- [ ] `UpdateUrl` 可通过 HTTP GET 访问并返回合法 JSON
133133
- [ ] `AppSecretKey` 与服务端配置一致(长度 ≥ 16 字符)
134134
- [ ] UpgradeApp.exe 存在于发布目录的 `update/` 子目录中

cli/assets/skills/generalupdate-ui/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ GeneralUpdateBootstrap.AddListenerException
192192

193193
### 事件桥接
194194
- [ ] 所有 6 个事件都已绑定(UpdateInfo, MultiDownloadStatistics, MultiDownloadCompleted, MultiDownloadError, MultiAllDownloadCompleted, Exception)
195-
- [ ] 桥接代码使用正确的 EventArgs 类型(检查命名空间 `GeneralUpdate.Common.Download`
196-
- [ ] `IsComplated` 注意拼写(v10.4.6 API 中的实际拼写,不是 `IsCompleted`
195+
- [ ] 桥接代码使用正确的 EventArgs 类型(检查命名空间 `GeneralUpdate.Core.Download` / `GeneralUpdate.Core.Event`
196+
- [ ] `IsCompleted` 属性名正确(v10.5.0-beta.4 使用 `IsCompleted`
197197

198198
### 线程安全
199199
- [ ] UI 更新操作在正确的线程上执行(WPF/Avalonia 用 `Dispatcher`,WinForms 用 `Invoke`,MAUI 用 `MainThread`

0 commit comments

Comments
 (0)