一键导入
frontend-runtime
Editable frontend runtime rules for framework pages, stores, shared runtime namespaces, and reusable visual patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Editable frontend runtime rules for framework pages, stores, shared runtime namespaces, and reusable visual patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read the supplemental project documentation module
Frontend development router. Load deeper skills before editing
Use the frontend API surface correctly for app files, discovery, identity, and permission-aware browser data access.
Inspect, navigate, and interact with open browser surfaces through space.browser
Open or close stand-alone browser windows
Create, patch, inspect, and remove widgets in the current space
| name | Frontend Runtime |
| description | Editable frontend runtime rules for framework pages, stores, shared runtime namespaces, and reusable visual patterns. |
Use this skill when the task changes browser runtime behavior, framework-backed UI, store orchestration, shared helpers, or general frontend composition under app/.
app/.server/ as read-only infrastructure from this skill set.app/L0/_all/mod/_core/...._core/framework/ only when multiple modules genuinely need them._core/visual/.L1 or L2./mod/_core/framework/js/initFw.js.globalThis.space.initFw.js runs the extensible framework bootstrap step at _core/framework/initializer.js/initialize before Alpine startup._core/framework/head/end in document.head for declarative head-side tags or inline bootstraps._core/framework/head/end when the setup can stay declarative, and use _core/framework/initializer.js/initialize/end when the setup must stay imperative instead of editing page shells./ and /admin opens through normal target="_blank" link clicks and window.open(..., "_blank") by granting the child window the current tab's /enter access marker before navigation; context-menu, middle-click, and modifier-key browser opens stay unmodified and still route through /enter.space.apispace.configspace.chat when the current agent surface publishes the active thread snapshotspace.fw.createStorespace.utils.markdown.render(text, target)space.utils.markdown.parseDocumentspace.utils.yaml.parse and space.utils.yaml.stringifyspace.proxyspace.downloadspace.fetchExternal(...)space.browser for registered browser-surface control; load the top-level browser-control skill for the detailed method list and browser-frame bridge usageUse <x-browser src="https://example.com"></x-browser> when frontend UI, pages, or widgets need to embed a live browser surface directly in their DOM. Add controls="true" when that surface should render its own address bar and navigation controls; omit it or set controls="false" for a frameless embedded browser. Authored <x-browser> elements register with space.browser automatically, so agents can discover, inspect, navigate, and interact with them the same way they use stand-alone browser windows.
External browser fetches under the framework should try direct fetch(...) first and only fall back to /api/proxy after a failed cross-origin attempt; when that fallback succeeds, the runtime keeps an in-memory origin cache so later requests to the same origin go through the backend immediately for the rest of the page lifetime.
Do not hardcode third-party CORS proxy services such as allorigins, corsproxy, or codetabs in frontend code or widget renderers. For external HTTP reads, use plain fetch(externalUrl) or space.fetchExternal(externalUrl) and let the runtime handle /api/proxy fallback automatically. Use space.proxy.buildUrl(...) only when you need a same-origin proxied URL string for a non-fetch consumer such as an element attribute or link target.
space.utils.markdown.render(...) is the shared browser markdown wrapper. It inserts a .markdown root so the owning feature can style rendered markdown predictably.
space.api includes attachment-style helpers such as space.api.folderDownloadUrl(pathOrOptions) when a feature needs a same-origin download URL instead of a fetched blob.
space.fw.createStore(name, model).init() for one-time startup and mount(refs) or unmount() for DOM-bound lifecycle.x-ref; do not scan the document when direct refs will do._core/visual before inventing feature-local chrome, dialogs, menus, or conversation patterns._core/framework._core/visual.AGENTS.md files and the development skill subtree in the same session.