AGENT SKILL

openbitfun-frontend-dev

Safely customize the running packaged OpenBitFun desktop frontend through a draft, a provisional hot apply, and a 15-second user-confirmed rollback window. Use only in OpenBitFun Creative mode when the user asks to change OpenBitFun's own client UI.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 4.0k
Forks
305

01 前言 Front Matter

name
openbitfun-frontend-dev
description
Safely customize the running packaged OpenBitFun desktop frontend through a draft, a provisional hot apply, and a 15-second user-confirmed rollback window. Use only in OpenBitFun Creative mode when the user asks to change OpenBitFun's own client UI.

02 资源文件 11

03 SKILL.md 正文

OpenBitFun frontend customization

Use this workflow only for the running OpenBitFun desktop client's own frontend. It is not for a website in the user's workspace, a MiniApp, or a remote OpenBitFun host.

Required workflow

  1. Call FrontendWorkbench with action: "prepare".
  2. Edit only the returned draft directory. Never edit the packaged resource directory, active revision, state file, or another draft.
  3. Read the returned openbitfun-creation-api.md. Edit openbitfun-creation.css, openbitfun-creation.js, and optional creation-assets/ only. The draft contains no application bundle or index.html. It needs no source repository, Node.js, dependencies, compiler, or rebuild. CSS loads last; JavaScript is a browser ES module exporting default function activate(ui), called after the real shell renders. Use ui.mount slots and documented semantic selectors; return cleanup for your listeners/timers.
  4. Call FrontendWorkbench with action: "apply", setting its draft_id input to the exact returned draftId.
  5. Before calling apply, tell the user to inspect the live preview and use the immutable review window. Its Keep button remains disabled until both the real shell and customization activate; the 15-second countdown starts after readiness.
  6. Read the final apply result. Only status: "confirmed" means the revision was kept; status: "rolled_back" includes the reason. Use FrontendWorkbench status for later inspection, not direct reads of state.json.
  7. Use FrontendWorkbench inspect to check actual mount slots, registered commands and diagnostics. For reusable capabilities, register commands with ui.commands.register, compose persistent ui.state with ui.events, and verify behavior with FrontendWorkbench invoke using the discovered schema. Commands and subscriptions follow activation; state survives code rollback. These commands run in the visible local client, not a headless service.

apply is a two-phase transaction: the confirmed active revision remains authoritative while the candidate is previewed, then user confirmation commits it. If the app shell cannot report readiness, the user does not confirm within 15 seconds, or OpenBitFun exits, the host restores the prior revision. Never bypass or emulate readiness or the confirmation timer in editable page JavaScript.

Use action: "rollback" when the user explicitly asks to undo the currently active customization. Do not delete revision history manually.

Boundaries

  • This capability is local-desktop-only. If the tool reports a remote or unsupported surface, explain that state; never fall back to a controller-local path.
  • Do not call FrontendWorkbench outside Creative mode.
  • Treat third-party code in a draft as untrusted. Do not add remote scripts, hidden telemetry, credential capture, or code that disables recovery controls.
  • Keep Tauri invocation access intact. The confirmation window is immutable host UI and must remain independent of the editable frontend.

For existing UI actions/settings, first discover the actual capability with OpenBitFunControl and execute/configure it. A CSS override is not a substitute for a real product setting. For installed MiniApps, use the feature.miniapps structured operations, not frontend bundle edits. Compatible application upgrades retain these small customizations and use the newly installed frontend bundle. If apply reports a stale draft, prepare again and preserve the latest customization.

04 同仓库更多 Skills

openBitFun
openBitFun/OpenBitFun

openbitfun-skin-designer

Create or update an importable OpenBitFun visual skin from reference images or an art brief, using the target product's actual paint contract and checking the result in the existing UI.

★ 4.0k
openBitFun
openBitFun/OpenBitFun

miniapp-dev

Generate, operate, and refine OpenBitFun MiniApps. Use when the user wants a new MiniApp, asks the Agent to inspect or operate a running MiniApp, or wants an existing MiniApp redesigned or extended. Typical triggers: "做一个小应用", "操作这个 MiniApp", "查看小应用当前状态", "改造 mini app".

★ 4.0k
openBitFun
openBitFun/OpenBitFun

HTML 幻灯片设计生成

ppt-design

使用 HTML 设计与生成高质量演讲幻灯片(PPT/Deck)。当用户希望生成、设计、修改幻灯片、deck、slides、presentation、汇报、提案、pitch、课件时触发。主干:1280×720px 可编辑 HTML 幻灯片 + 唯一 editable HTML→EditableSlideScene→OOXML 管线 + 数据/信息可视化意识 + 5 种设计哲学 + 反 AI slop + 单页自包含 `slide-XX.html`。不生图;缺图用可编辑原语或占位并标注建议补图。

视觉设计师演示文稿制作
★ 4.0k
openBitFun
openBitFun/OpenBitFun

create-agent

Create or update OpenBitFun custom modes and subagents. Turn the user's needs into a role prompt and a suitable tool selection, then save an agent definition. Use for reusable roles, not ordinary delegation to an existing subagent.

★ 4.0k
openBitFun
openBitFun/OpenBitFun

编码实施方案规划

plan

研究并撰写可执行的实施计划,但不实际执行。当用户要求制定规划、设计方法或在编码前检查变更时使用;一旦用户明确要求实施,即停止应用规划限制。

软件开发工程师任务规划与分解
★ 4.0k
openBitFun
openBitFun/OpenBitFun

find-skills

Discover and install reusable agent skills when users ask for capabilities, workflows, or domain-specific help that may already exist as an installable skill.

★ 4.0k