widget-change

Update Foundation widget WidgetType metadata and Svelte component logic.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This is the change workflow for updating an existing Foundation widget's ontology metadata and its Svelte component logic, avoiding the creation or removal of widgets.

Core Features & Use Cases

  • Update WidgetType metadata (icon, default size, supported class, usage note) to reflect new requirements.
  • Modify widget component behavior in src/lib/components/widgets/ to adjust visuals or interactions.
  • Maintain ontology integrity by coordinating any widget_type ID renames with corresponding dispatch updates.

Quick Start

Identify the target widget, change the WidgetType properties or the Svelte component logic as described, and validate changes with a quick UI smoke test.

Frequently Asked Questions about widget-change

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

FAQPage Schema
How do I update Foundation widget metadata and Svelte component behavior?

To update Foundation widget metadata and behavior, modify the WidgetType ontology properties (icon, default size, supported class, usage note) and adjust the Svelte component logic in src/lib/components/widgets/ to apply visual or behavioral refinements.

What happens to dispatch integrity when I rename a widget_type ID in the ontology?

Renaming a widget_type ID requires corresponding dispatch updates to maintain ontology integrity. Coordinating these dispatch updates prevents broken widget references and ensures your Foundation ontology mappings remain functional.

Can I use this workflow to create new widgets or remove existing ones?

No, this workflow is strictly for modifying existing Foundation widgets. It handles updating WidgetType ontology metadata and Svelte component logic for visual or behavioral refinements, explicitly avoiding the creation or removal of widgets.

How do I change the default size and icon of a Svelte widget component?

To change the default size and icon of a Svelte widget component, update the target WidgetType ontology metadata properties. Adjusting these ontology fields directly updates how the Foundation framework renders the widget defaults.

What should I do after modifying widget component logic and ontology metadata?

After modifying widget component logic and ontology metadata, you should validate the changes by running checks and performing a quick UI smoke test. This ensures your visual or behavioral tweaks function correctly within the Foundation system.