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
- 参考文档forms.md11.6 KB
- 许可证LICENSE.txt1.4 KB
- 参考文档reference.md16.3 KB
- 脚本scripts/check_bounding_boxes.py2.7 KB
- 脚本scripts/check_fillable_fields.py268 B
- 脚本scripts/convert_pdf_to_images.py1008 B
- 脚本scripts/create_validation_image.py1.2 KB
- 脚本scripts/extract_form_field_info.py4.2 KB
- 脚本scripts/extract_form_structure.py3.9 KB
- 脚本scripts/fill_fillable_fields.py3.7 KB
- 脚本scripts/fill_pdf_form_with_annotations.py3.2 KB
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
- Call
FrontendWorkbenchwithaction: "prepare". - Edit only the returned draft directory. Never edit the packaged resource directory, active revision, state file, or another draft.
- Read the returned
openbitfun-creation-api.md. Editopenbitfun-creation.css,openbitfun-creation.js, and optionalcreation-assets/only. The draft contains no application bundle orindex.html. It needs no source repository, Node.js, dependencies, compiler, or rebuild. CSS loads last; JavaScript is a browser ES module exportingdefault function activate(ui), called after the real shell renders. Useui.mountslots and documented semantic selectors; return cleanup for your listeners/timers. - Call
FrontendWorkbenchwithaction: "apply", setting itsdraft_idinput to the exact returneddraftId. - 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. - Read the final
applyresult. Onlystatus: "confirmed"means the revision was kept;status: "rolled_back"includes the reason. UseFrontendWorkbench statusfor later inspection, not direct reads ofstate.json. - Use
FrontendWorkbench inspectto check actual mount slots, registered commands and diagnostics. For reusable capabilities, register commands withui.commands.register, compose persistentui.statewithui.events, and verify behavior withFrontendWorkbench invokeusing 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
FrontendWorkbenchoutside 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-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.
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".
HTML 幻灯片设计生成
ppt-design
使用 HTML 设计与生成高质量演讲幻灯片(PPT/Deck)。当用户希望生成、设计、修改幻灯片、deck、slides、presentation、汇报、提案、pitch、课件时触发。主干:1280×720px 可编辑 HTML 幻灯片 + 唯一 editable HTML→EditableSlideScene→OOXML 管线 + 数据/信息可视化意识 + 5 种设计哲学 + 反 AI slop + 单页自包含 `slide-XX.html`。不生图;缺图用可编辑原语或占位并标注建议补图。
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.
编码实施方案规划
plan
研究并撰写可执行的实施计划,但不实际执行。当用户要求制定规划、设计方法或在编码前检查变更时使用;一旦用户明确要求实施,即停止应用规划限制。
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.