new-gpui-view

Scaffold a GPUI view page and wire it into module exports, Page enum, rendering, and sidebar navigation.

Updated May 16, 2026
One-click install
npx skills add https://github.com/zeroclash-labs/zeroclash --skill new-gpui-view
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-gpui-view
Source: https://github.com/zeroclash-labs/zeroclash/tree/main/.claude/skills/new-gpui-view
Command: npx skills add https://github.com/zeroclash-labs/zeroclash --skill new-gpui-view

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill removes the guesswork and repetitive wiring required to add a new GPUI page, so you can focus on implementing the UI instead of integrating it.

Core Features & Use Cases

  • View file scaffolding: Creates a new page component at crates/zeroclash-ui/src/views/<name>.rs following the existing 6-view structure.
  • Application wiring: Registers the module in views/mod.rs, adds the new Page enum variant in state.rs, and connects the rendering in render_content().
  • Navigation integration: Adds the sidebar entry in render_sidebar() so the new page appears in the UI.

Quick Start

Use the new-gpui-view skill to scaffold and register a page called <name> by following the repository’s existing page and navigation patterns.

Frequently Asked Questions about new-gpui-view

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new page to a GPUI application without breaking existing navigation?

To add a new GPUI page, you need to create the view file, register it in the module exports, add a Page enum variant, and update the render dispatch and sidebar navigation. This ensures the new page integrates with the established routing and UI patterns.

What is the standard structure for scaffolding a GPUI view in a Rust codebase?

Scaffolding a GPUI view involves creating a Rust file under the views directory, updating mod.rs for module exports, extending state.rs with a new Page variant, and wiring the rendering logic. This matches the structure used for existing dashboard and settings pages.

How do I integrate a new sidebar navigation entry for a custom GPUI page?

To integrate a sidebar entry for a GPUI page, you add the navigation item within the render_sidebar function using the page title and enum variant. This connects the new view to the sidebar navigation so it appears in the UI.

Does scaffolding a GPUI view require updating the application state enum?

Yes, scaffolding a GPUI view requires updating the application state enum. You must extend state.rs with a new Page variant and add a corresponding match arm in the render_content function to dispatch the view correctly.

What is the best way to ensure a new GPUI page matches existing UI patterns in a Rust project?

The best way to match existing UI patterns is to follow the established page structure by creating the view component, wiring it through module exports and state enums, and adding the sidebar entry. This guarantees consistency with other pages like logs and profiles.