当前位置: 首页 > Skill >

WorkBuddy 换肤工坊

WorkBuddy 换肤工坊

WorkBuddy 换肤工坊

WorkBuddy 桌面端换肤/主题美化技能。当用户想要给 WorkBuddy 安装皮肤、更换主题、美化界面、还原官方外观,或按微信文章/链接指示安装 workbuddy-skin-studio 皮肤时使用。基于开源项目 cdredfox/workbuddy-skin-studio(MIT 协议),通过 Chrome DevTools Protocol(CDP)向运行中的渲染进程注入 CSS 实现换肤,不修改官方安装目录与签名,仅本地操作、不收集凭证、不外传任何数据。触发词:换皮肤、装主题、美化 WorkBuddy、workbuddy-skin-studio、🎨 菜单、CDP 注入。

1.0.0 2026.11.16 779
获取Skill文件查看使用说明
作 者:林宁 许可证: 更新时间:2026.11.16
本文目录展开

WorkBuddy Skin Studio

Overview

免责声明: 本技能为社区第三方封装,与 WorkBuddy / 腾讯官方无任何隶属或关联,并非官方出品。所有主题与流程均来自 MIT 协议开源项目。

本技能为 WorkBuddy 桌面端 安装并应用第三方社区主题皮肤。它封装了开源项目 cdredfox/workbuddy-skin-studio(MIT 协议,https://github.com/cdredfox/workbuddy-skin-studio)。

工作原理与安全边界: 内置的 Node 启动器(scripts/apply-node.mjs)定位 WorkBuddy.exe → 以 --remote-debugging-port=9223 重启 → 通过 CDP 向运行中的渲染进程注入 CSS。它不修改官方安装目录、二进制文件或数字签名;不读取也不传输任何用户凭证、文件或网络数据;所有操作严格限定在本机。主题仅在当次运行有效——手动重启 WorkBuddy 会清除皮肤(重新执行 apply 即可恢复)。

来源与授权: cdredfox/workbuddy-skin-studio 是独立的社区开源项目,采用 MIT 协议。本技能仅自动化其官方文档记载的流程,不内置、不修改其代码。

The skill bundles a Node-based launcher (scripts/apply-node.mjs) that is the reliable way to apply a theme. Do not use the repo's apply.ps1 — see Gotchas.

When to use

  • User asks to install / apply a WorkBuddy skin or theme (from an article, link, or directly).
  • User wants to change WorkBuddy appearance, switch themes, or revert to the native look.
  • User references "workbuddy-skin-studio", a 🎨 menu, or CDP skin injection.

Workflow

1. Clone the tool to an ASCII path

Clone to a path with no Chinese / non-ASCII characters — Node fails to load theme files from Unicode paths.

git clone --depth 1 https://github.com/cdredfox/workbuddy-skin-studio.git C:/Users/<user>/workbuddy-skin-studio

Record the cloned root as REPO (e.g. C:/Users/15469/workbuddy-skin-studio).

2. Locate WorkBuddy.exe

Default detection (LOCALAPPDATA, ProgramFiles) often misses the real install. Locate it explicitly:

# Glob common and DevTools locations; fall back to a full-disk search
Glob **/WorkBuddy.exe under C: and D:

If still not found, ask the user for the exact path. Set it as WB_EXE.

3. Verify the CLI (read-only)

node <REPO>/src/cli.mjs --check        # syntax sanity
node <REPO>/src/cli.mjs list            # confirm bundled themes are detected
node <REPO>/src/cli.mjs status          # should show CDP port 9223 not yet open

4. Apply a theme (the critical step)

Run the bundled launcher detached so it survives the WorkBuddy restart. Replace <theme> with e.g. naruto-hokage, miku-light, genshin-night, deepspace-star.

cmd //c 'start "" "<NODE>" "<SKILL_DIR>/scripts/apply-node.mjs" <theme>'

Where <NODE> is any Node ≥ 18 (or process.execPath of the managed runtime) and <SKILL_DIR> is this skill's directory. Pass environment if needed:

  • WB_EXE — path to WorkBuddy.exe (auto-detected if omitted)
  • WB_REPO — cloned repo root (defaults to current directory)
  • PORT — CDP port (defaults to 9223)

The launcher will: kill WorkBuddy → relaunch it with --remote-debugging-port=9223 → wait for the renderer → run node <REPO>/src/cli.mjs apply. Progress is written to <SKILL_DIR>/apply-log.txt and a result to <SKILL_DIR>/apply-result.txt.

Why detached? The agent session is hosted inside the WorkBuddy process tree. Launching the restart inside the session (even via a background task) kills the session at the kill step, before injection completes. start "" breaks the process out of that tree so it finishes on its own.

5. Verify

After WorkBuddy reopens (a few seconds), confirm the 🎨 menu in the top-right corner. Optionally probe CDP:

curl -s -m 3 http://127.0.0.1:9223/json/list

If no 🎨 menu appears, read <SKILL_DIR>/apply-result.txt (OK … vs FAIL …) and <SKILL_DIR>/apply-log.txt.

6. Change theme / restore

  • Switch or upload a theme: use the in-app 🎨 menu.
  • Restore native look: node <REPO>/src/cli.mjs pause
  • After any manual WorkBuddy restart, re-run step 4 to restore the skin.

Gotchas (learned the hard way)

  • Never run apply.ps1 from the repo. PowerShell 5.1 mis-parses $env:ProgramFiles(x86) and related patterns, throwing spurious "unexpected }" errors at the while/else closes. The bundled Node launcher avoids PowerShell entirely.
  • ASCII-only clone path. Chinese paths (e.g. F:缓存...) make Node unable to read theme files.
  • Session is in WorkBuddy's tree. Killing WorkBuddy ends the agent session. Always apply via detached start, never inline.
  • CDP is localhost-only. The debug port binds 127.0.0.1; avoid running untrusted local programs while a skin is active.
  • Skin is per-run. Manual restart of WorkBuddy drops the skin.

Safety

安全评估(低风险):

  • 仅本地操作: 通过本机回环地址(127.0.0.1)的 CDP 重启 WorkBuddy 并注入 CSS。无任何网络外连、无遥测上报。
  • 不访问凭证: 不读取密码、Token 或任何用户文件。
  • 不改动官方文件: 官方安装目录与签名保持不变,仅对内存中的渲染进程做主题化。
  • 透明可审计: 所有动作与上游项目文档步骤一致;可审阅 scripts/apply-node.mjs。
  • 调试端口绑定回环: 皮肤生效期间,避免运行来源不明的本机程序。

The tool is community open-source (MIT), injects only the running renderer, and does not touch official files or credentials. It restarts WorkBuddy as part of applying a theme — expect a brief UI restart.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,035
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • WorkBuddy Skin Studio
    • Overview
    • When to use
    • Workflow
      • 1. Clone the tool to an ASCII path
      • 2. Locate WorkBuddy.exe
      • 3. Verify the CLI (read-only)
      • 4. Apply a theme (the critical step)
      • 5. Verify
      • 6. Change theme / restore
    • Gotchas (learned the hard way)
    • Safety
  • 项目或源文件

相关 Skill

更多
Browsertrix Crawler High-Fidelity Web Archiving and QA Crawler Browsertrix Crawler High-Fidelity Web Archiving and QA Crawler Browsertrix Crawler 是 Webrecorder 推出的基于浏览器的爬取系统,用于高保真网站捕获、QA 回放分析和可配置的爬取行为。它在单个 Docker 容器中运行复杂的爬取任务,并在底层使用 Puppeteer 加上 Chrome DevTools Protocol。
CDP浏览器大师 CDP浏览器大师 CDP浏览器大师:通过Chrome DevTools Protocol驱动已登录浏览器实现自动化任务,解决反爬封号、选择器失效、SPA路由难导航、固定sleep不准四大痛点。核心能力包括UA伪装、WebGL/Canvas指纹混淆、智能等待、动态选择器以及可视化调试。
browser-use-init browser-use-init 初始化并启动 Chrome DevTools Protocol (CDP) 模式,支持使用 Playwright 和 browser-use Agent 远程控制真实 Chrome 浏览器。解决 Chrome 145+ App-Bound Encryption 限制,自动复制 Profile 到非默认路径以启用 CDP。
Silmaril Ranger Silmaril Ranger 浏览器自动化、DOM 检查、页面变更、等待编排、流程执行和本地代理覆盖,均通过 Silmaril Chrome DevTools Pro 实现。
UI-Agent UI-Agent 通用 UI 自动化,支持浏览器和桌面应用。基于 Chrome DevTools 协议和原生 API,已通过 15/15 项验证测试。