Token导航 LogoToken导航

Agent Skill · 研究检索

openclaw-theme-patcher(OpenClaw 主题 patcher)

openclaw-theme-patcher 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

openclaw-theme-patcher 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 35,370。

总安装 2,095周安装 90GitHub Stars 公开资料未说明下载 734核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-theme-patcher(OpenClaw 主题 patcher)
来源仓库:https://github.com/ailough/openclaw-theme-patcher
安装命令:
openclaw skills install openclaw-theme-patcher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-theme-patcher

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

openclaw-theme-patcher 用于修改和优化 OpenClaw Control UI 的主题资源。适用于调整已安装前端资源的视觉样式、迁移主题配置或修复显示问题。通过修补 dist/control-ui/assets 中的捆绑资源实现主题变更,支持添加、校准或迁移。

操作涉及文件写入,建议先备份,并确认对前端资源的修改不会破坏系统稳定性。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openclaw-theme-patcher;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

openclaw-theme-patcher 怎么安装?

在终端执行 openclaw skills install openclaw-theme-patcher。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-theme-patcher 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-theme-patcher 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

openclaw-theme-patcher 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openclaw-theme-patcher 用的人多吗?

公开数据是累计安装 2,095 次,近一周安装 90 次,下载 734 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-theme-patcher 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
openclaw-theme-patcher

OpenClaw 主题 patcher · 本页

2,095—只读MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
openclaw-theme-patcher
description
Add, refine, calibrate, or migrate OpenClaw Control UI themes by patching the installed bundled frontend assets in dist/control-ui/assets. Use when a user wants a new WebUI theme, wants colors matched to a reference theme such as VSCode, wants chat/component styling tuned inside a custom theme, or wants an existing custom theme preserved across an OpenClaw upgrade.

OpenClaw Theme Patcher

Add a new OpenClaw Control UI theme directly into the installed frontend bundle.

This skill also covers theme migration across OpenClaw upgrades. When a user already has a custom theme on an older installed bundle and wants to keep it after updating OpenClaw, preserve the old theme first, then migrate it into the new bundle using structural comparison rather than heuristic string injection.

Scope

Use this skill for installed bundle patching, not upstream source development.

Default rule: add a new theme from the user's requested palette. Do not overwrite built-in themes unless the user explicitly asks.

For migrations, use a stricter rule set:

  • preserve the user's old custom theme first
  • treat the old and new bundles as potentially different structures
  • never assume previous patch points still exist after an upgrade
  • prefer restoring the UI to a known-good stock state over leaving a half-migrated broken theme live

Files to patch

Patch the active OpenClaw install only:

  • dist/control-ui/assets/index-*.js
  • dist/control-ui/assets/index-*.css

Resolve the active install first. Do not assume the workspace copy is the live one.

Workflow

For token design and live bundle patch locations, read as needed:

  • references/token-mapping.md
  • references/patch-points.md
  • references/theme-migration-checklist.md when doing a version-to-version preserve/rebuild of an existing custom theme

Bundled helper script:

  • scripts/backup_theme_bundle.py — backs up the active live JS/CSS bundles for a given theme id, extracts :root[data-theme=<id>] / :root[data-theme=<id>-light], and saves JS snippets for the allowed set, alias map, resolver, and theme card when found

If the task is an upgrade or migration, follow the migration workflow below before any new patching. For day-of execution, prefer using references/theme-migration-checklist.md as the short operational checklist and this file as the fuller policy/guidance layer.

0. Migration workflow for existing custom themes

Use this when the user already has a custom theme on an older OpenClaw version and wants to keep it across an update.

Phase A. Snapshot the old theme before upgrade

Before updating OpenClaw:

  • resolve the active install and active bundle files
  • extract and save the old theme's CSS selectors from the live CSS bundle
  • save a copy of the old JS and CSS bundles for offline comparison
  • record the old theme id, visible label, description, and any resolver behavior you can confirm

Preferred method:

python3 scripts/backup_theme_bundle.py <theme-id> --output-dir /path/to/backups

Use manual extraction only if the helper script cannot capture enough of the live theme.

Leave the backup in the workspace, for example:

backups/openclaw-<theme-id>-theme/
  report.json
  <theme-id>.dark.css
  <theme-id>.light.css
  bundle-js.txt
  bundle-css.txt

Minimum capture:

  • old JS bundle path
  • old CSS bundle path
  • :root[data-theme=<theme-id>]
  • :root[data-theme=<theme-id>-light] if present
  • old JS snippets containing:

- allowed theme id set - theme alias/default map - theme card list - resolver branch for the theme family

Phase B. Upgrade first, then rediscover structure

After the OpenClaw update:

  • re-resolve the active install and the new hashed bundle filenames
  • do not assume the old JS patch points are still valid
  • inspect the new bundle's current theme structures fresh
Phase C. Compare old vs new structures

Compare the saved old bundle snippets to the new live bundle and answer these questions before editing:

  • Does the new bundle still use an explicit allowed-theme set?
  • Does it still use an alias/default map?
  • Does it still use a visible theme card list?
  • Does it still have a resolver that maps theme family + mode to selector id?
  • Are any of those names, array shapes, or branches materially different?

Only patch after those answers are clear.

Phase D. Patch by exact structure, not guesswork

Migration rule:

  • copy the old theme's CSS token values
  • re-register the theme in the new bundle using the new bundle's actual structures
  • keep edits surgical and reversible

Hard prohibition:

  • never use broad or heuristic replacements like replacing the first return e or first matching new Set(...) unless you have first confirmed that exact snippet is the theme resolver or set you intend to patch
  • never claim success just because the theme card appears; card presence alone is not proof of a correct migration
Phase E. Verify and, if broken, stop the bleeding first

If the migrated theme appears but looks wrong, or if unrelated UI behavior breaks:

  1. identify whether the break is in CSS selectors, card registration, alias/default map, or resolver logic
  2. if the UI is visibly degraded, first remove the broken migrated entry and revert residual bad injections so the UI returns to stock behavior
  3. only then attempt a second migration pass

Preferred recovery order:

  • restore normal UI first
  • then rebuild the migrated theme from verified structures

1. Confirm the active install

Run:

which openclaw
readlink -f "$(which openclaw)"
openclaw status

Then locate candidate bundles:

find ~/.npm-global/lib/node_modules /usr/lib/node_modules /usr/local/lib/node_modules \
  -path '*/openclaw/dist/control-ui/assets/index-*.js' -o \
  -path '*/openclaw/dist/control-ui/assets/index-*.css'

If multiple installs exist, patch only the one that matches the active CLI path.

2. Define the theme

Collect the theme from one of:

  • a named reference theme
  • a local config file such as VSCode settings or theme JSON
  • explicit palette colors
  • a screenshot plus user guidance

Decide before patching:

  • theme id: lowercase, short, stable
  • theme label shown in Appearance
  • dark palette
  • light palette if the theme should work with the existing light/dark toggle

If the theme should support the toggle, implement both dark and light selectors.

For both new themes and migrations, define not only the palette but also the intended component feel:

  • primary chrome and panel feel
  • assistant bubble feel
  • user bubble feel
  • code/pre/blockquote feel
  • border strength expectations

Do not assume token changes alone will always reproduce the intended message-bubble look in newer bundles.

3. Add CSS selectors

Add:

:root[data-theme=<theme-id>]{...}
:root[data-theme=<theme-id>-light]{...}

Use an existing theme block as the structure template. Keep token names unchanged and only change values.

Use references/token-mapping.md to translate the user's palette into OpenClaw tokens.

At minimum define:

  • --bg, --bg-elevated, --panel, --card
  • --text, --text-strong, --muted
  • --border, --border-strong, --border-hover
  • --accent, --accent-hover, --ring, --focus

Also define the usual supporting tokens already used by existing themes, including input, secondary, accent-2, state colors, and shadow/subtle variants.

If the desired result depends on specific chat bubble behavior, it is acceptable to add small theme-scoped component overrides after the root selectors, for example only under:

:root[data-theme=<theme-id>] .chat-line.user .chat-bubble{...}
:root[data-theme=<theme-id>] .chat-line.assistant .chat-bubble{...}

In newer OpenClaw bundles, verify which chat layout branch is actually live before calibrating. There may be more than one branch in the bundled CSS, commonly including .chat-group... and .chat-line... families. If both exist, inspect both and override the one that actually renders in the current UI; if needed, cover both branches under the same theme-scoped override.

Rules for component overrides:

  • scope them to the theme selector only
  • prefer chat/message/component overrides only when token-only theming is insufficient
  • do not change built-in themes while adding overrides for the custom theme
  • keep overrides as narrow as possible
  • when multiple chat layout branches exist, confirm the active branch instead of assuming the first matching selector is live

4. Register the theme in bundled JS

Patch the bundled JS so the theme appears in Appearance settings and mode switching resolves correctly.

Use references/patch-points.md to locate the smallest reliable JS change points.

Update all relevant structures that actually exist in the current bundle:

  • allowed theme id set
  • Appearance theme card list
  • resolver mapping theme family + light/dark mode to CSS selector ids
  • alias/default map if present

Required behavior:

  • dark mode resolves to <theme-id>
  • light mode resolves to <theme-id>-light

If the bundle already contains an unused hidden theme id that matches the intended use, it is acceptable to expose and complete it instead of inventing another id.

For migrations, mirror the old theme's confirmed behavior, but express it through the new bundle's real structures. Do not port old JS fragments blindly into a new version.

5. Refresh and verify

After patching:

  • tell the user to hard refresh: Ctrl+F5
  • restart gateway if needed: openclaw gateway restart

Success means:

  1. the new theme label appears in Appearance settings
  2. selecting it visibly changes the UI
  3. the top-right light/dark toggle switches between the new theme's variants if both were added
  4. built-in themes remain unchanged unless the user requested otherwise
  5. chat bubbles, code blocks, blockquotes, and key chrome surfaces match the intended look closely enough for the user

For chat-focused themes, explicitly verify both of these:

  • user bubble color and border treatment
  • assistant bubble color and border treatment

Debugging

If the theme does not appear:

  • theme id missing from JS allowed set
  • theme card list not patched
  • stale cached JS
  • wrong install path edited

If the theme appears but looks unchanged:

  • CSS selectors missing
  • resolver maps to the wrong selector id
  • only dark or only light selector was added
  • wrong CSS bundle edited

If the light/dark toggle does not work:

  • resolver was not updated for both variants
  • <theme-id>-light is missing or misspelled

If the theme appears but looks wrong or breaks unrelated UI text/layout after a migration:

  • assume the JS patch hit the wrong structure before assuming the CSS palette is wrong
  • inspect the exact current resolver/card/alias snippets again
  • remove any bad migration residue and restore stock behavior before retrying
  • do not keep a visibly broken migrated theme live just because the theme card exists

If the theme is structurally correct but some surfaces still feel off:

  • treat it as a component-level calibration pass, not a failed migration
  • inspect the exact CSS rules for chat bubbles, code blocks, and other visible components in the current version
  • prefer theme-scoped overrides over destabilizing global token changes
  • if a component override appears correct in CSS but has no visual effect, check whether a later duplicate branch (for example .chat-group... vs .chat-line...) is the one actually rendering

Working style

  • Use exact-text edits for bundled assets
  • Change the smallest possible amount of JS needed
  • Keep built-in themes intact unless the user asked otherwise
  • Do not claim success until the user confirms the live UI changed
  • For migrations, create reversible workspace backups before editing live bundles
  • Prefer exact known snippets over heuristic replacements in minified JS
  • If a first migration attempt fails, document the failure mode and switch to compare-and-rebuild, not more guessing
  • For new themes too, verify real rendered components after token work; if necessary, do one small theme-scoped calibration pass instead of pretending token-only theming always covers chat surfaces

Deliverables

Leave behind:

  • patched JS bundle path
  • patched CSS bundle path
  • theme id and label
  • dark/light CSS selectors added
  • any theme-scoped component overrides added

For migrations also leave behind:

  • backup directory path
  • old bundle paths used for comparison
  • whether stock UI was restored at any point during recovery
  • the exact structures patched in the new version (allowed set / card list / alias map / resolver)
  • whether the helper backup script was used, and if not, what had to be collected manually

平台分布

OpenClaw

95.16%
按下载量换算698

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills