widget-development

Implement consistent widget components and feature scaffolding for React applications.

70|3|Updated Jun 23, 2020
One-click install
npx skills add https://github.com/InfinityLoopLabs/Blank_Platform --skill widget-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widget-development
Source: https://github.com/InfinityLoopLabs/Blank_Platform/tree/main/_templates/react_template/skills/widget-development
Command: npx skills add https://github.com/InfinityLoopLabs/Blank_Platform --skill widget-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes ambiguity and repetitive work when creating or updating widgets by enforcing a single template and clear file roles so widgets remain consistent, testable, and maintainable across the codebase.

Core Features & Use Cases

  • Enforces a standardized widget structure including container, UI, lib, store, structure, and constants to reduce onboarding time and avoid regressions.
  • Provides naming, query/mutation, typing, and export conventions so teams can safely rename and refactor widget artifacts.
  • Use case: add a new payment widget or update an existing list widget while automatically keeping mappers, schemas, and constants correctly organized.

Quick Start

Copy the template widget into app/features/widgets/Name, rename Sample placeholders to the widget name, set constants/name.ts to the widget identifier, and register the reducer when the widget uses store state.

Frequently Asked Questions about widget-development

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

FAQPage Schema
How do I scaffold a new React widget with a consistent folder structure?

To scaffold a React widget, copy the template into app/features/widgets/Name, rename Sample placeholders, set constants/name.ts to the widget identifier, and register the reducer if store state is used. This ensures consistent container, UI, lib, and store file roles across the feature.

What conventions should a React widget follow for Redux and queries?

React widget conventions require standardized query and mutation naming, typed mappers, schemas, and constants management. Reducer registration must be applied when the widget uses Redux store state to maintain code quality and testability across the application.

How do I update an existing widget to match new template conventions?

Updating an existing widget involves refactoring its container, UI, lib, and store files to follow template conventions. This enforces correct file roles, naming patterns, and typed mappers to keep the widget maintainable and prevent regressions.

Can I use this widget scaffolding approach without Redux?

Yes, Redux is used only when the widget requires store state. If a widget does not need Redux, you can scaffold the container, UI, lib, and constants without registering a reducer, while still maintaining standardized structure and typing conventions.

Why do my React widgets have inconsistent naming and file organization?

Inconsistent React widgets happen without a single template enforcing file roles and naming patterns. Applying a standardized structure with clear container, UI, lib, store, and constants directories reduces onboarding time and avoids regressions across the codebase.