jsgui3-control-creation

Generate jsgui3 UI control files with class definitions, TypeScript declarations, and styling.

Updated Aug 25, 2018
One-click install
npx skills add https://github.com/metabench/jsgui3-html --skill jsgui3-control-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jsgui3-control-creation
Source: https://github.com/metabench/jsgui3-html/tree/main/docs/agi/skills/jsgui3-control-creation
Command: npx skills add https://github.com/metabench/jsgui3-html --skill jsgui3-control-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of new UI controls for the jsgui3 framework, ensuring adherence to established patterns, naming conventions, and theme system integration.

Core Features & Use Cases

  • Automated Scaffolding: Generates the necessary files and boilerplate code for new controls.
  • Convention Enforcement: Applies correct naming (Camel_Case for classes, snake_case for methods) and structure.
  • Theme Integration: Sets up integration with the jsgui3 theme system, including SASS/CSS variable hooks and TypeScript declarations.
  • Use Case: A developer needs to create a new UserProfileCard component. This Skill will generate the UserProfileCard.js file, its corresponding .d.ts file, and basic SCSS, pre-configured for themeability.

Quick Start

Use the jsgui3-control-creation skill to create a new control named 'ModalDialog' with the base class 'Control'.

Frequently Asked Questions about jsgui3-control-creation

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

FAQPage Schema
How do I scaffold a new UI control for the jsgui3 framework?

To scaffold a jsgui3 UI control, this skill generates the necessary class definitions, TypeScript declaration files, and SCSS, enforcing framework conventions and theme integration automatically.

What is the best way to create themeable TypeScript components in jsgui3?

Creating themeable TypeScript components in jsgui3 requires setting up SASS/CSS variable hooks and TypeScript declarations. This skill automates that setup to ensure your new controls integrate seamlessly with the framework's theme system.

Does jsgui3 control scaffolding enforce specific naming conventions and coding standards?

Yes, jsgui3 control scaffolding enforces specific naming conventions, applying Camel_Case for class names and snake_case for methods to ensure your generated components adhere to the framework's established coding standards.

Can I generate TypeScript declaration files and SCSS together when building jsgui3 controls?

Yes, you can generate TypeScript declaration files and SCSS together. When you create a new control, the skill outputs the JavaScript class file, its corresponding .d.ts file, and basic styling pre-configured for themeability.

How do I add SSR guards and variant registration to a jsgui3 component?

To add SSR guards and variant registration to a jsgui3 component, the scaffolding process includes optional support for these features, ensuring your new UI controls are server-side rendering safe and properly registered.

Why does my jsgui3 UI control need a separate TypeScript declaration file?

A jsgui3 UI control needs a separate TypeScript declaration file to provide type safety and define the control's API. This skill generates these .d.ts files alongside the class definitions to maintain robust TypeScript integration.