html

Solid

Generate an interactive local React app wired to the built-in cockpit bash SDK.

Web & Frontend 37 stars 10 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Build a Cockpit app (a local React page) A **local application**, not a one-off page: the preview injects a global `window.cockpit` SDK — essentially the Bash tool exposed to the page, so buttons can `curl`, read/write files and run scripts; data lands on disk inside the app directory and is there on reopen. Zero build: React / Babel load from the same-origin `/html-lib` — no bundler, no deps, works offline. ## 1. Flow: align first, write only after confirmation (important) **Don't write files up front.** Three steps: 1. **Align on the requirement** — restate your understanding of the app (what it does, where data comes from, key features/interactions). Ask back only when the requirement is ambiguous or has several reasonable readings; if it's already clear, just give a short summary — don't interrogate. 2. **Tell the storage directory** — resolve `<dir>/<name>/` and tell the user exactly where it goes and what it's called; they may reject or change it: - **You always pick `<name>`** from the request (lowercase kebab-case, matching `cockpit-name`) — the user only describes the app, they don't name it. - The user gave a directory → `<the given directory>/<name>/`; none given → `<name>/` under the **current chat working directory** (this session's cwd). - Every file of the app lives in that one directory, with data split into `cache/` `state/` `out/` per section 4. Don't scatter files elsewhere or invent a `.cockpit-apps`. 3. **Write o...

Details

Author
Surething-io
Repository
Surething-io/cockpit
Created
7 months ago
Last Updated
3 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

workbench-builder

Builds disposable localhost workbenches — Bun.serve + bun:sqlite + React 19 + Astryx apps, zero build config, no deploy — giving an agentic coding/eval/PR/data session a live UI. The signature move is a two-way human↔agent loop over one SQLite file: the human acts in the browser, the agent acts from the terminal (bun run scripts), both seeing the same state update live via SSE with no reload. Ships recipes for eval viewers, PR review rooms, document redline surfaces, spreadsheet/grid editors, multi-surface triage queues, trace replays, and more. Use when the user wants a quick local UI for a coding/eval/PR/data task, OR mentions localhost workbench, eval viewer, PR review room, review/redline a document, select text and comment, a spreadsheet or editable grid, triage my inbox, live invalidation, two-way agent loop, or "build me a little UI for this." Do NOT use for production apps or deployed SPAs (use frontend-design), or for static data pages / HTML reports where a self-contained file is the right tool.

5 Updated 1 months ago
theagenticguy
Web & Frontend Listed

encapsulated-mockup-builder

Build front-end prototypes, mockups, landing pages, dashboards, component demos, and interactive UI concepts as ONE self-contained HTML file — a single <style> block in <head>, a single <script> block before </body>, tokens in :root, and every icon/graphic/image embedded inline (SVG or data URI) so the file opens and works with zero external dependencies, bundlers, or missing assets. Use this whenever the user asks for a prototype, mockup, demo, "quick page", "something I can open in the browser", "show me what it'd look like", an artifact/preview, a design handoff, or any front-end that isn't being wired into an existing build system — even if they don't say "single file". Also use when converting a React/Vue/Tailwind snippet into something runnable without npm.

2 Updated 1 weeks ago
fernandokylas
Web & Frontend Listed

react-frontend

Build responsive, client-side React single-page web apps (SPA) with Vite, TypeScript, and Tailwind CSS, designed for both mobile and desktop browsers. Use when creating or editing a React SPA, a component, a hook, a page/route, responsive layouts, or browser UI. This skill is for CLIENT-SIDE SPAs ONLY — no server-side rendering. Enforces React best practices, the Rules of Hooks, strict TypeScript, ESLint React rules, and SOLID principles. Triggers: "react component", "build a website/UI", "responsive design", "tailwind", "SPA", "custom hook", "react page/screen", "react-router".

4 Updated 2 months ago
bgorkem