agent-browser
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
Create or update the Panel UI component of a complete schema v2 NextClaw Mini App or an explicitly loose local Panel. Use after nextclaw-app-creator selects Panel-only or Panel + Service, or for right-side UI, Service Actions, Agent-powered panels, React/Vite panels, and App
$ npx -y skills add peiiii/nextclaw --skill panel-app-creator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/panel-app-creatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Create or update the Panel UI component of a complete schema v2 NextClaw Mini App or an explicitly loose local Panel. Use after nextclaw-app-creator selects Panel-only or Panel + Service, or for right-side UI, Service Actions, Agent-powered panels, React/Vite panels, and App
name: panel-app-creator description: Create or update the Panel UI component of a complete schema v2 NextClaw Mini App or an explicitly loose local Panel. Use after nextclaw-app-creator selects Panel-only or Panel + Service, or for right-side UI, Service Actions, Agent-powered panels, React/Vite panels, and App bridge capability questions. description_zh: 创建或修改完整 schema v2 NextClaw Mini App 的 Panel UI 组件,或用户明确要求的 loose 本地 Panel。适用于 nextclaw-app-creator 判断为纯 Panel 或 Panel + Service 后,以及右侧 UI、Service Actions、Agent Panel、React/Vite Panel 与 App bridge 能力问题。
当用户需要实现右侧面板 UI 时使用这个专项 skill。若用户表达的是“做一个 NextClaw 小应用”而不是明确只做 UI,先读取 `nextclaw-app-creator` 判断是否还需要 Service App。
如果 Panel App 要调用 `window.nextclaw.serviceActions.*`、`window.nextclaw.agent.*` 或 `window.nextclaw.client`,必须先读取 `references/panel-app-bridge-api.md`,并按该 reference 的运行时合同写代码。
本 skill 只拥有 Panel App UI、`panel-app.json`、bridge 调用和窄侧栏体验。它不拥有 `service-app.json`、`actions.*.risk`、MCP server、Service App command 或依赖安装规则。只要需要创建或修改 Service App 文件,必须立即读取 `service-app-creator`,不能凭 Panel App 文档猜后端 manifest 字段。
先主动判断是否需要工程化 `React + Vite + TypeScript + Tailwind CSS + pnpm`,不要只在用户点名技术栈时才读取专项 skill。工程化推荐栈是一整套,缺一不可;如果不使用这整套,必须是轻量目录式静态面板、用户明确指定其它技术栈,或有清楚的环境约束理由。
本 skill 仍负责最终 `panel-app.json`、bridge、Client SDK、Service Actions、窄侧栏体验和 `nextclaw app check` 验收规则;`panel-app-react-vite-creator` 只负责源码工程、Vite/Tailwind 配置、构建和静态 `.panel` 产物交付。
当用户询问 Panel App 能做什么、能否接入 AI、能否读取会话/历史/Agent Run、能否上传资产或订阅事件时,必须说明 `window.nextclaw.client` 这类 App Client 能力,但不要把 Service Actions 迁移成 App Client 主路径。Service Actions 当前推荐继续使用旧 bridge,因为旧 bridge 拥有 Panel App 所需的授权确认和自动 retry 体验。
默认说明这些能力边界:
`window.nextclaw.serviceActions.*` 是当前 Panel App 调用 Service Actions 的推荐入口,不要因为 App Client 里存在 `client.serviceActions.*` 就默认替代。`window.nextclaw.agent.*` 暂时保留为旧 Agent bridge;只有实际不想开启整体 client 授权、维护旧应用,或需要旧 Agent bridge 独有便利能力时才提它。
先沿用 `nextclaw-app-creator` 已经确定的边界,不要把完整 Mini App 拆成散落 workspace 组件:
如果 Panel 属于 Portable 或 native-process Service 包,Panel 仍只是静态 UI 组件;不要把 Guest 源码、MCP server 或根权限字段塞进 `.panel` 目录。
Panel App 不是普通同源网页。宿主为了隔离应用,iframe sandbox 不包含 `allow-same-origin`,文档 origin 是 opaque / `null`。写代码时必须默认遵守:
如果用户报告 `Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag`,根因通常是 Panel App 或其依赖在 sandbox 环境中访问了 Web Storage。修复方向是删除该持久化访问,而不是给 iframe 增加 `allow-same-origin`。
如果用户报告具体运行时报错,例如 `Illegal invocation`、sandbox storage、opaque origin、CORS 或 App Client 注入异常,先读取 `references/panel-app-runtime-troubleshooting.md`,按错误签名定位,不要把所有低频排障细节写进主流程。
适合需要后续扩展、持续维护、资源拆分或更清晰代码组织的静态应用:
<package-root-or-workspace>/panels/markdown-manager.panel/ panel-app.json index.html app.js styles.css assets/icon.svg
`panel-app.json` 示例:
{
"title": "Markdown 管理器",
"description": "浏览、编辑和整理本地 Markdown 文件",
"icon": "assets/icon.svg",
"entry": "index.html",
"capabilities": ["agent:generateObject"],
"actions": ["workspace-files.list", "workspace-files.read"]
}目录式规则:
每个 Panel App 默认都要在 `pa
Your long-term personal AI partner. NextClaw's mission is to be a good long-term partner to you. We are building toward a 1.0 that understands you, takes useful initiative, and continuously improves itself.
Use Agent Browser for real browser navigation, dynamic pages, and web interaction; also use it as a distinct browser-based path…
Turn a user request into a scheduled automation by configuring cron jobs, including session-bound follow-ups and periodic checks.
Use when the user asks to keep watching an external state, notify them when something changes or a condition is met, remember…
Use when deciding how to deliver an AI result: reply now, put durable news, reports, recommendations, or articles in the NextClaw…
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced…