Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Pcl Publish

БесплатноЗапускает вложенные скриптыНе проверен

Use when the OpenClaw Control UI chat model picker is one long flat provider-grouped list and picking a model is slow, when you have many providers each with…

pondsiот pondsi809 установок в других каталогах

Об этом скилле

ModelSelectorOpenClaw

English

Pick the right model in two clicks, even with dozens of providers and hundreds of models.

The OpenClaw Control UI renders its model picker as one long flat list, grouped by provider. With many providers — each carrying many models — finding a model means a lot of scrolling and eyeballing. This skill turns that list into a two-column master-detail picker with a provider navigation column:

┌─────────────┬────────────────────────────────┐
│ All         │  [ search ]                     │
│ ▸ DeepSeek  │  deepseek-v4-flash              │
│ ▸ Qwen      │  deepseek-v4-pro                │
│ ▸ GLM       │  deepseek-reasoner              │
│ ▸ Mistral   │  … only this provider's models  │
└─────────────┴────────────────────────────────┘
  • Left column = provider navigation. Click a provider, the right column shows only that provider's models. Auto-follows the provider of the model currently in use.
  • Right column = that provider's models only, in its own scroll container. The two columns scroll independently (structural CSS Grid, not absolute positioning hacks).
  • Hides the official per-chat account row (.chat-model-account, e.g. deepseek:default) inside the menu — it is unrelated to picking a provider/model.
  • Theme-accurate: uses official design tokens (--bg-hover, --accent, --border), so dark / light / custom themes follow automatically.
  • Zero self-excitation: every DOM write is state-gated; no mutation loops.
  • Responsive: the provider column narrows with clamp(84px, 26%, 132px); the native flat list is used only below 340px viewport width. The official search filter keeps the two-column layout and simply hides provider groups with no visible match.
  • Resizable with a remembered size: a grip in the bottom-right corner resizes the picker horizontally and vertically (min 360×220, clamped to the viewport); the size is saved to localStorage and restored on the next open, and a double-click on the grip resets it. Long model names also carry a hover tooltip.
  • Instance-safe: if the app mounts several pickers (main chat, side/session views, cached views), only the rendered one is enhanced — a hidden sibling can never steal it.
  • Self-healing: the stylesheet is re-injected if the document loses it, and a state-gated 1-second heartbeat re-runs the pass, so any silent loss recovers within a second.
  • Self-updating: an already-open tab notices server-side updates by itself and reloads (never downgrades, never interrupts typing), so a patched install never looks stale.

Disclosure (Intended Behavior)

This skill patches the local OpenClaw installation. By design it performs exactly these local file operations inside the OpenClaw package directory (<npm-global>/node_modules/openclaw/dist/control-ui/):

Operation Scope control
Append/replace ONE <script> line at the end of index.html first run saves index.html.bak-pcl next to it; idempotent; -Remove reverts
Copy pcl-model-picker.v8.js into assets/ versioned filename + content fingerprint in the URL
Delete older pcl-model-picker.v*.js files keeps the latest TWO versions, deletes only files matching pcl-model-picker.v*.js
Poll ./ (same-origin app shell) every 5 min for update detection browser-side only; same-origin fetch('./',{cache:'no-store'}); no external host, no telemetry

Nothing else is touched: no packaged JS/CSS/SW files are modified, no external network access, no telemetry. The injected script runs in the browser only, on the model picker DOM; its only network call is a same-origin fetch('./') (cache: no-store) used to notice server-side updates and reload the tab — no external host is contacted and no data leaves the machine. The patch is lost when OpenClaw is upgraded (npm overwrites dist/); re-run to restore. Installing means accepting these local file modifications.

Install

Run the patch script from this skill's scripts/ directory:

powershell -ExecutionPolicy Bypass -File scripts/pcl-patch.ps1
  • The script auto-detects the Control UI directory (npm root -g, common prefixes, or the openclaw CLI on PATH). Non-standard layout: pass -Dist "<...>\dist\control-ui".
  • Done when it prints [PCL] 完成 / Done plus the injected tag line.
  • Then reload the Control UI tab once (F5 is enough). From this version on, later patches are picked up automatically: the injected script polls the app shell and reloads the tab when the server is newer (never downgrades, never interrupts typing).
  • Verify: open the chat model picker — provider chips on the left, that provider's models on the right, no account row above the list.

Verify in one line

In the Control UI browser console:

window.pclModelPickerDiag()

Returns `{version, selfFp, innerWidth, styleP

Полный SKILL.md на ClawHub

Установить Pcl Publish в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write

FAQ

Что делает скилл Pcl Publish?

Use when the OpenClaw Control UI chat model picker is one long flat provider-grouped list and picking a model is slow, when you have many providers each with many models, when the user wants a two-column provider/model picker (left = provider navigation, right = only that provider's models), when the per-chat account row (e.g. deepseek:default) should be hidden, or when a previously installed picker enhancement disappeared after an upgrade. Installs, repairs, verifies or uninstalls a browser-side enhancement injected into the Control UI's index.html.

Как установить скилл Pcl Publish?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Pcl Publish запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Pcl Publish с