widget-create

Registers a new Foundation widget type and scaffolds its Svelte component.

19|3|Updated Jul 19, 2024
One-click install
npx skills add https://github.com/danielterra/FOUNDATION --skill widget-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widget-create
Source: https://github.com/danielterra/FOUNDATION/tree/main/.claude/skills/widget-create
Command: npx skills add https://github.com/danielterra/FOUNDATION --skill widget-create

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline creation of new Foundation blackboard widgets by automating ontology registration and UI scaffolding.

Core Features & Use Cases

  • Automates the full boilerplate: widget type registration in the ontology, scaffolding the Svelte component, and wiring into WidgetManager.
  • Ensures consistency: enforces standardized steps and naming conventions across widget types.
  • Speeds delivery: reduces manual setup time for new widgets, enabling rapid experimentation and deployment.

Quick Start

Provide the necessary widget name, supported class, and purpose, then let the system register the type and scaffold the UI.

Frequently Asked Questions about widget-create

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

FAQPage Schema
How do I create and wire a new Foundation widget?

To create a Foundation widget, provide the widget name, supported class, and purpose. The system automatically registers the widget type in the ontology, scaffolds the Svelte component, and wires it into WidgetManager for immediate use.

What does scaffolding a Svelte widget component involve?

Scaffolding a Svelte widget generates the boilerplate front-end component while simultaneously registering the new widget type in the ontology and wiring it into WidgetManager, ensuring standardized integration and naming conventions across projects.

Can I automate ontology registration when adding a new widget type?

Yes, ontology registration is fully automated. Defining a new widget type triggers automatic validation and registration in the ontology, eliminating manual setup steps and ensuring consistent integration across projects.

What's the best way to reduce boilerplate when developing Foundation widgets?

Automating the end-to-end workflow is the best way to reduce boilerplate. It standardizes widget creation by enforcing naming conventions, validating inputs, and handling the Svelte scaffolding and WidgetManager wiring automatically.

Do I need to manually configure WidgetManager to use a new widget?

No, manual WidgetManager configuration is not needed. The widget creation process automatically wires newly scaffolded Svelte components into WidgetManager, enabling rapid deployment and immediate use upon generation.