write-ui

Generate a serializable view-spec from application state using pure functions.

5|3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/leifericf/agentic-sdk --skill write-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-ui
Source: https://github.com/leifericf/agentic-sdk/tree/main/skills/write-ui
Command: npx skills add https://github.com/leifericf/agentic-sdk --skill write-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill addresses the complexity and inefficiency associated with UI development by providing a recipe that leverages data-driven, declarative design principles, streamlining the process and enhancing consistency.

Core Features & Use Cases

  • Declarative UI Construction: Promotes the creation of UI elements using data transformations and pure functions, ensuring consistency and maintainability.
  • Layout and Hit-Testing: Offers a deterministic layout engine and a pure hit-testing mechanism that operate without external dependencies on host OS features.
  • Widget Vocabulary: Encourages the reuse of existing widgets over custom creation, optimizing design consistency and minimizing redundant implementations.

Quick Start

To generate the UI for your project, invoke the write-ui skill with the project's application state: write-ui your-state.

Frequently Asked Questions about write-ui

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

FAQPage Schema
What is data-driven declarative UI design and how does it work?

Data-driven declarative UI design transforms application state into a serializable view-spec using pure functions. A host shell then renders this specification, ensuring consistency and maintainability without relying on OS-specific features.

How do I build a UI layout without relying on OS-specific features?

You can build a UI layout without OS-specific features by using a deterministic layout engine. This approach calculates visual representation through pure data transformations, decoupling your UI logic from the host operating system.

Can I use a functional core and imperative shell approach for UI development?

Yes, you can use a functional core and imperative shell approach for UI development. This method isolates pure UI logic and state transformations in the core, while the imperative shell handles rendering and interaction responses.

How do I handle hit-testing in a declarative UI?

Hit-testing in a declarative UI is handled through a pure mechanism that operates alongside the layout engine. It determines interaction responses deterministically based on the generated view-spec, independent of external host dependencies.

Does this UI development approach require creating custom widgets?

No, this UI development approach encourages reusing existing widgets over creating custom ones. Optimizing your widget vocabulary this way minimizes redundant implementations and enhances overall design consistency across the application.