panel-app-react-vite-creator

panel-app-react-vite-creator is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 73 tokens per session (1,620 once invoked), scanned A, original, MIT.

A development setup for building NextClaw panel apps with React, Vite, TypeScript, Tailwind CSS, and pnpm. It produces a static .panel folder that the host can run without development servers or installed packages.

In plain words
What is it for?
Use it to create or update engineering-style panel interfaces, build them as static files, and prepare them for delivery to NextClaw.
Why use it?
It provides a consistent structure for maintainable frontend panels and avoids deployment problems caused by incorrect asset paths or runtime dependencies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/peiiii/nextclaw/panel-app-react-vite-creator
Any agent
npx skills add Peiiii/nextclaw --skill panel-app-react-vite-creator
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for panel-app-react-vite-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/panel-app-react-vite-creator.svg)](https://agentmods.dev/skills/peiiii/nextclaw/panel-app-react-vite-creator)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/panel-app-react-vite-creator"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/panel-app-react-vite-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01620
Opus 5 $0.00036 $0.00810
Sonnet 5 $0.00015 $0.00324
Haiku 4.5 $0.00007 $0.00162

Measured 2d ago against content hash 933a4d0480c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

panel-app-react-vite-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/nextclaw-core/src/features/agent/shared/skills/panel-app-react-vite-creator/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React/Vite/TypeScript/Tailwind/pnpm Panel App Creator

本 skill 只负责工程化前端源码和静态产物交付。Panel App 的 manifest、Client SDK、Service Actions、Agent bridge 和授权规则仍以 panel-app-creator 为准;需要这些能力时必须同时读取 panel-app-creator

核心原则

  • 工程化 Panel App 推荐栈是 React + Vite + TypeScript + Tailwind CSS + pnpm 一整套,缺一不可;除非用户明确指定其它技术栈或有清楚环境约束,不要只选其中一部分。
  • 使用 pnpm,不要使用 Bun、npm 或 yarn,除非用户明确指定。
  • 本 skill 是复杂或可维护 Panel App 的工程化默认路径;极小、一次性、无明显构建收益的静态面板仍交给 panel-app-creator 轻量目录式实现。
  • 开发期可以使用 Vite dev server;需要给用户看运行中的开发页面时,用 show_url(url) 打开本地 dev server。交付给 NextClaw 的必须是 build 后的静态 .panel 目录。
  • 不要让 NextClaw 宿主运行 vite dev、Node server 或 Bun server。
  • 源码工程可以放在用户指定位置;最终产物沿用 nextclaw-app-creator 已冻结的边界:完整 schema v2 App 构建到 <app-dir>/panels/<panel-id>.panel/,明确 loose 本地 Panel 才构建到 <workspace>/panels/<panel-id>.panel/
  • 运行期目录里可以包含构建产物和 panel-app.json,不要依赖运行期 node_modules
  • Vite 必须配置 base: "./",避免资源路径指向 NextClaw host 根路径。
  • 构建出来的应用运行在 sandbox iframe 中,不具备普通同源网页能力;不要使用 localStoragesessionStorage、cookie、IndexedDB 或默认启用浏览器持久化的状态库插件。需要持久化时按 panel-app-creator 选择 Service App、App Client 或导出/导入 JSON。

推荐目录

源码工程示例:

my-panel-src/
  package.json
  vite.config.ts
  src/
  public/

完整包内的交付产物示例:

my-app/panels/my-panel.panel/
  panel-app.json
  index.html
  assets/

如果用户没有指定源码位置,优先在包根的独立前端源码目录或用户当前工作目录下创建工程,不要把完整 npm 工程直接当作最终 .panel 组件目录。最终 .panel 只保留静态产物;根 manifest.json.components 引用该目录。

创建流程

  1. 先确定 app-id,必须 kebab-case,例如 data-reviewer
  2. 创建 Vite React TS 工程:
pnpm create vite <app-id>-src --template react-ts
cd <app-id>-src
pnpm install
pnpm add -D tailwindcss @tailwindcss/vite
  1. 配置 vite.config.ts
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";

export default defineConfig({
  base: "./",
  plugins: [react(), tailwindcss()],
});
  1. src/index.css 引入 Tailwind:
@import "tailwindcss";
  1. 开发 UI 时遵守 Panel App 侧栏约束:默认按 320px-480px 窄面板设计,不能横向溢出。
  2. 如果要调用 NextClaw 能力,先读取 panel-app-creator,按其推荐路径写代码。
  3. 构建:

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +8 lines · -38 tokens per session 933a4d0480c3
  2. 6d ago First seen · 149 lines · 111 tokens per session scan A c828425d52b8

Subscribe to this mod's changes

panel-app-react-vite-creator is a skill published in the GitHub repository Peiiii/nextclaw (255 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 1,620 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

ThinkInAIXYZ/deepchat · 64 tokens

landing-page-generator

Generates high-converting landing pages as complete Next.js/React (TSX) components with Tailwind CSS. Creates hero sections, feature grids, pricing tables, FAQ accordions, testimonial blocks, and CTA sections using proven copy frameworks (PAS, AIDA, BAB). Outputs SEO meta tags, structured data, and…

seaworld008/Commonly-used-high-value-skills · 153 tokens

figma

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

seaworld008/Commonly-used-high-value-skills · 59 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

seaworld008/Commonly-used-high-value-skills · 77 tokens

anthropic-frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

davekilleen/Dex · 80 tokens

anthropic-web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

davekilleen/Dex · 66 tokens