agentCLAWHUBUnverified

github-desktop-zh

Github Desktop 汉化工具 — 自动探测安装目录(支持 loose 与 asar 打包模式),使用内置词典对 JS 源文件执行字符串字面量替换,完成界面汉化。支持预览、部署、回滚、语法校验。 Skill: github-desktop-zh Owner: ebandao777-oss Summary: Github Desktop 汉化工具 — 自动探测安装目录(支持 loose 与 asar 打包模式),使用内置词典对 JS 源文件执行字符串字面量替换,完成界面汉化。支持预览、部署、回滚、语法校验。 Tags: latest:0.1.0 Version history: v0.1.0 | 2026-08-15T17:32:52.089Z | auto Version 1.1.0 introduces a comprehensive localization tool for Github Desktop, supporting Windows, macOS, and Linux. - Automatic detection of Github Desktop installation and packaging m

OpenClaw

Rank

62

Safety

84

Downloads

1.5k

Updated

Oct 10, 2026

Version

0.1.0

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 10, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 10, 2026
Adoption signal
1.5K downloadsadoption · observed Oct 10, 2026
Latest release
0.1.0release · observed Aug 15, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17en637qww2q9z3kz1ep6w79988dec4:github-desktop-zh
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ebandao777-oss-github-desktop-zh/snapshot"

Documentation

CLAWHUB

58,810 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: github-desktop-zh
description: Github Desktop 汉化工具 — 自动探测安装目录(支持 loose 与 asar 打包模式),使用内置词典对 JS 源文件执行字符串字面量替换,完成界面汉化。支持预览、部署、回滚、语法校验。
version: 1.1.0
author: "智慧半岛"
license: MIT
allowed-tools:
  - Read
  - Grep
  - Glob
  - Shell
  - Edit
  - Write
tags: [github-desktop, 汉化, 本地化, localization, translation]
triggers:
  - Github Desktop 汉化
  - 应用汉化
  - 更新汉化词典
  - 恢复原版
  - 回滚
  - 撤销汉化
platforms: [windows, linux, macos]
os: [windows, linux, macos]
dependencies:
  python: ">=3.6"
  system_tools:
    windows: [reg, tasklist]
    macos: [pgrep]
    linux: [pgrep]
  optional: [node, asar]
---

# Github Desktop 汉化技能(Windows / macOS / Linux)

调用内置脚本自动探测 Github Desktop 安装目录,识别 loose 或 asar 打包模式,使用内置词典执行 JS 字符串字面量替换。

## 资源结构

```
GitHubDesktop-zh/
├── SKILL.md              # 本文件
├── dict/
│   └── dictionary.txt    # 汉化词典(首行可声明 # @gh-version: 3.*)
└── scripts/
    └── apply_zh.py       # 汉化脚本 v1.1.0
```

## 运行模式

脚本自动识别目标为 `resources\app`(loose 模式)或 `resources\app.asar`(asar 模式):

| 模式 | 目标 | 替换流程 | 部署方式 | 依赖 |
|------|------|---------|---------|------|
| loose | `app\main.js` 等 loose 文件 | 直接读写 | 复制覆盖 | 无 |
| asar | `app.asar` 打包文件 | extract → 替换 → pack | 重新打包覆盖 | 需 asar 工具 |

asar 工具安装:`npm install -g @electron/asar`

## 执行前检查(Agent 必须执行)

在执行任何命令前,Agent 应检查:

```powershell
# ① Python 版本
python --version

# ② 脚本存在性
Test-Path "{技能根目录}/scripts/apply_zh.py"

# ③ 词典存在性
Test-Path "{技能根目录}/dict/dictionary.txt"
```

以上任一失败即中断,告知用户缺失项。

## 执行命令

### 汉化(默认:自动探测 + 备份 + 替换 + 部署)

```powershell
python "{技能根目录}/scripts/apply_zh.py" --deploy
```

### 预览(不修改任何文件,仅展示匹配统计)

```powershell
python "{技能根目录}/scripts/apply_zh.py" --dry-run
```

### 回滚

```powershell
python "{技能根目录}/scripts/apply_zh.py" --rollback
```

### 自定义词典

```powershell
python "{技能根目录}/scripts/apply_zh.py" --deploy --dict "{用户提供的词典路径}"
```

### 手动指定 GH 路径(loose 目录或 asar 文件)

```powershell
python "{技能根目录}/scripts/apply_zh.py" --deploy --src "D:\...\app"
python "{技能根目录}/scripts/apply_zh.py" --deploy --src "D:\...\app.asar"
```

### GH 运行时强制执行

```powershell
python "{技能根目录}/scripts/apply_zh.py" --deploy --force
```

## 流程断点与验证

脚本内部每个步骤失败时均会 `sys.exit(1)` 并打印 `[ERROR]`。Agent 应在执行后检查退出码和 stdout:

| 断点 | 关键输出 | 失败动作 |
|------|---------|---------|
| 依赖 | (无显式输出,通过即继续) | 缺 reg/tasklist → 中断;asar 模式缺 asar → 中断并提示安装 |
| 探测 | `Github Desktop 版本: x.x.x` + `模式: LOOSE/ASAR` | 无此输出 → 探测失败,提示用户提供 `--src` |
| 词典 | `词典条目: N` + `词典声明版本: x.*` | 无此输出 → 词典加载失败;版本不匹配且未 `--force` → 中断 |
| 解包 | `解包 asar 到临时目录...` | 仅 asar 模式;失败 → 中断 |
| 备份 | `已备份: N 个文件` | 无此输出 → 备份失败,脚本已中断 |
| 替换 | `应用结果: N/N 已替换 (x.x%)` | 含"未匹配"行 → 部分条目未命中;匹配率 <80% → WARN 提示更新词典 |
| 部署 | `已部署到:` | 无此输出 → 部署失败,检查权限/进程占用 |
| 验证 | `文件名 (N KB) ✓ 语法✓` | 语法✗ → 替换破坏 JS,需回滚并更新词典 |
| 验收 | `[提示] 请启动 Github Desktop 目视确认...` | Agent 应建议用户启动 GH 目视检查 |

## 故障处理

| 场景 | 处理 |
|------|------|
| Python 不可用 | 提示安装 Python ≥ 3.6 |
| 无法定位 GH | 提示用户确认已安装,或提供 `--src` 路径(loose 目录或 asar 文件) |
| GH 正在运行 | 检测 GitHubDesktop.exe / Update.exe,提示关闭后重试,或询问是否 `--force` |
| asar 模式缺 asar 

README.md

# GitHub Desktop 汉化工具

自动探测 GitHub Desktop 安装目录(Windows/macOS/Linux),使用内置词典对 `main.js` / `renderer.js` 执行字符串替换,完成界面汉化。支持预览、部署、回滚。

## 环境要求

- Windows 10/11 / macOS 10.15+ / Linux
- Python ≥ 3.6
- GitHub Desktop 已安装
- (可选)node 用于语法校验
- (asar 模式)`npm install -g @electron/asar`

## 快速开始

```powershell
# ① 预览替换效果(不修改任何文件)
python scripts/apply_zh.py --dry-run

# ② 执行汉化(备份 + 替换 + 部署)
python scripts/apply_zh.py --deploy

# ③ 重新启动 GitHub Desktop 生效
```

## 命令说明

| 命令 | 说明 |
|------|------|
| `--deploy` | 自动探测 + 备份 + 替换 + 部署到 GitHub Desktop |
| `--dry-run` | 预览模式,仅统计匹配数,不写文件 |
| `--rollback` | 回滚到最新备份 |
| `--force` | GitHub Desktop 运行中也强制执行 |
| `--no-backup` | 跳过备份(不推荐) |
| `--src <path>` | 手动指定 `resources\app` 目录 |
| `--dict <path>` | 使用自定义词典 |

## 目录结构

```
github-desktop-zh/
├── README.md             # 本文件
├── SKILL.md              # 技能定义(供 Marvis 使用)
├── dict/
│   └── dictionary.txt       # 汉化词典(1080 条)
└── scripts/
    └── apply_zh.py       # 汉化脚本
```

## 词典格式

词典文件 `dict/dictionary.txt` 每行一条记录,字段以 `>*.*<` 分隔:

```
源字符串>*.*<目标字符串>*.*<分类>*.*<目标文件
```

示例:

```
"Add local repository">*.*<"添加本地存储库">*.*<菜单-文件>*.*<main.js
```

## 工作流程

1. **探测** — 读取注册表 `HKCU/HKLM\Software\GitHubDesktop\InstallPath`,或搜索 `%LOCALAPPDATA%\GitHubDesktop\app-*`
2. **备份** — 复制 `main.js` / `renderer.js` 到 `zh_backup\`,带时间戳
3. **替换** — 按源字符串长度降序遍历词典,在 JS 源文件中执行字符串替换
4. **部署** — 将替换后的文件复制回 GitHub Desktop 目录 5.
5. **验证** — 检查部署文件大小(>1KB 视为正常)

## 已知限制

- 基于纯字符串替换,非 AST 级翻译,短字符串(如 ` to `)可能在非字符串上下文被误替换
- 词典中 93% 条目尚未分类(标记为"待分组")
- GitHub Desktop 版本升级后可能需要更新词典

_meta.json

{
  "ownerId": "kn7096hdmqr56bh0825xpz8ft188dh24",
  "slug": "github-desktop-zh",
  "version": "0.1.0",
  "publishedAt": 1786815172089
}

skill-card.md

## Description:

Localizes GitHub Desktop into Chinese by using a Python script and dictionary to preview, patch, deploy, roll back, and syntax-check JavaScript UI string replacements.

This skill is ready for commercial/non-commercial use.

## Publisher:

[ebandao777-oss](https://clawhub.ai/user/ebandao777-oss)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and GitHub Desktop users use this skill to run a local Chinese localization workflow for an installed GitHub Desktop app, including dry-run preview, deployment, rollback, and optional custom dictionaries.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill patches installed GitHub Desktop code and can corrupt an installation or packaged ASAR archive.

Mitigation: Use dry-run first, close GitHub Desktop, keep backups enabled, avoid --force and --no-backup, and be prepared to reinstall GitHub Desktop if ASAR deployment fails.

Risk: Custom dictionaries can cause unintended writes or unsafe string injection outside the intended localization scope.

Mitigation: Use only trusted dictionaries after inspection, and rely on the built-in backup, rollback, version matching, and syntax-check workflow.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/ebandao777-oss/skills/github-desktop-zh)
- [Server-resolved GitHub provenance](https://github.com/ebandao777-oss/github-desktop-zh)

## Skill Output:

**Output Type(s):** [Shell commands, Configuration instructions, Guidance]

**Output Format:** [Markdown with inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Guidance may lead an agent to run local patching, backup, rollback, and validation commands against an installed GitHub Desktop application.]

## Skill Version(s):

0.1.0 (source: ClawHub release metadata; artifact tool version: 1.1.0 from SKILL.md frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

dict/dictionary.txt

"A force push will rewrite history on">*.*<"强制推送将重写以下位置的历史记录:">*.*<待分组>*.*<renderer.js
"Able to merge.">*.*<"可以合并。">*.*<待分组>*.*<renderer.js
"About dialog (test mode)">*.*<"关于对话框(测试模式)">*.*<待分组>*.*<main.js
"Act on behalf of the secret's owner">*.*<"代表密钥所有者执行操作">*.*<待分组>*.*<renderer.js
"Action required">*.*<"需要操作">*.*<待分组>*.*<renderer.js
"Add custom provider">*.*<"添加自定义提供商">*.*<待分组>*.*<renderer.js
"Add GitHub Enterprise account">*.*<"添加 GitHub Enterprise 账户">*.*<待分组>*.*<renderer.js
"Add model…">*.*<"添加模型…">*.*<待分组>*.*<renderer.js
"Add provider…">*.*<"添加提供商…">*.*<待分组>*.*<renderer.js
"Add to dictionary">*.*<"添加到字典">*.*<待分组>*.*<main.js
"All checks have failed">*.*<"所有检查已失败">*.*<待分组>*.*<renderer.js
"All checks have passed">*.*<"所有检查已通过">*.*<待分组>*.*<renderer.js
"All conflicts resolved">*.*<"所有冲突已解决">*.*<待分组>*.*<renderer.js
"Allow me to expose this secret">*.*<"允许我公开此密钥">*.*<待分组>*.*<renderer.js
"API format">*.*<"API 格式">*.*<待分组>*.*<renderer.js
"Arm64 banner">*.*<"Arm64 横幅">*.*<待分组>*.*<main.js
"Bearer token">*.*<"Bearer 令牌">*.*<待分组>*.*<renderer.js
"Cache Git hook environment variables">*.*<"缓存 Git 钩子环境变量">*.*<待分组>*.*<renderer.js
"Can't automatically merge.">*.*<"无法自动合并。">*.*<待分组>*.*<renderer.js
"Checking for ability to rebase automatically…">*.*<"正在检查自动变基能力…">*.*<待分组>*.*<renderer.js
"Checking out commit">*.*<"正在检出提交">*.*<待分组>*.*<renderer.js
"Checking out">*.*<"正在检出">*.*<待分组>*.*<renderer.js
"Checks Summary">*.*<"检查摘要">*.*<待分组>*.*<renderer.js
"Cherry Pick Conflicts">*.*<"拣选冲突">*.*<待分组>*.*<main.js
"Choose a base branch">*.*<"选择一个基准分支">*.*<待分组>*.*<renderer.js
"Choose an account">*.*<"选择一个账户">*.*<待分组>*.*<renderer.js
"Clone Again">*.*<"重新克隆">*.*<待分组>*.*<renderer.js
"Clone failed">*.*<"克隆失败">*.*<待分组>*.*<renderer.js
"Command line arguments">*.*<"命令行参数">*.*<待分组>*.*<renderer.js
"Command Line Tool">*.*<"命令行工具">*.*<待分组>*.*<main.js
"Commit failed">*.*<"提交失败">*.*<待分组>*.*<renderer.js
"Configure custom editor…">*.*<"配置自定义编辑器…">*.*<待分组>*.*<renderer.js
"Configure custom shell…">*.*<"配置自定义 Shell…">*.*<待分组>*.*<renderer.js
"Configure Git">*.*<"配置 Git">*.*<待分组>*.*<renderer.js
"Confirm Committing Conflicted Files">*.*<"确认提交冲突文件">*.*<待分组>*.*<main.js
"Conflict resolution failed">*.*<"冲突解决失败">*.*<待分组>*.*<renderer.js
"Contract active resizable">*.*<"收起选中">*.*<菜单>*.*<main.js
"Copilot billing issue">*.*<"Copilot 计费问题">*.*<待分组>*.*<renderer.js
"Copilot billing not configured">*.*<"Copilot 计费未配置">*.*<待分组>*.*<renderer.js
"Copilot Instructions">*.*<"Copilot 指令">*.*<待分组>*.*<renderer.js
"Copy the full SHA">*.*<"复制完整 SHA">*.*<待分组>*.*<renderer.js
"Could not get checks for PR">*.*<"无法获取 PR 的检查结果">*.*<待分组>*.*<renderer.js
"Crash main process…">*.*<"崩溃主进程…">*.*<待分组>*.*<main.js
"Crash renderer process…">*.*<"崩溃渲染进程…">*.*<待分组>*.*<main.js
"Currently on a detached HEAD">*.*<"当前处于分离头指针状态">*.*<待分组>*.*<renderer.js
"Custom Shell">*.*<"自定义 Shell">*.*<待分组>*.*<renderer.js
"Date format">*.*<"日期格式">*.*<待分组>*.*<renderer.js
"Delete remote branch">*.*<"删除远程分支">*.*<待分组>*.*<renderer.js
"Detached HEAD">*.*<"分离头指针">
Github ReposUpdated 16h agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/ebandao777-oss/skills/github-desktop-zh",
      "sourceUrl": "https://clawhub.ai/ebandao777-oss/skills/github-desktop-zh",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-10T09:11:09.915Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-ebandao777-oss-github-desktop-zh/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ebandao777-oss-github-desktop-zh/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-10T09:11:09.915Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.5K downloads",
      "href": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceUrl": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-10T09:11:09.915Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "0.1.0",
      "href": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceUrl": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-08-15T17:32:52.089Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-ebandao777-oss-github-desktop-zh/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ebandao777-oss-github-desktop-zh/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 0.1.0",
      "description": "Version 1.1.0 introduces a comprehensive localization tool for Github Desktop, supporting Windows, macOS, and Linux. - Automatic detection of Github Desktop installation and packaging mode (loose or asar) - Built-in dictionary-based string replacement for JS files to localize the UI - Supports preview, deploy, rollback, and JS syntax validation - Multiple safety and validation checks: backup, version matching, process checks, and tool dependencies - Custom dictionary and source path support - Detailed error handling and step-by-step result reporting for user guidance",
      "href": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceUrl": "https://clawhub.ai/ebandao777-oss/github-desktop-zh",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-08-15T17:32:52.089Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 10, 2026.

Sponsored

Ads related to github-desktop-zh and adjacent AI workflows.