Glow Component Factory

Create standardized Amber UI widgets with the GlowFactory pattern in Gosling2.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/PROdotes/Gosling2 --skill glow-component-factory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Glow Component Factory
Source: https://github.com/PROdotes/Gosling2/tree/main/.agent/skills/glow-component-factory
Command: npx skills add https://github.com/PROdotes/Gosling2 --skill glow-component-factory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured blueprint for building consistent Amber UI components using the GlowFactory pattern in Gosling2. It ensures design-system coherence, reduces inline styling, and accelerates UI widget creation.

Core Features & Use Cases

  • Standardized Component Template: a repeatable pattern to create new Glow widgets (base class, signals, UI setup) that integrate with the Glow design system.
  • Phase-driven Workflow: Design & Planning, Implementation, Styling, Integration, Testing to ensure quality and consistency.
  • Theme-driven Styling: all styling via theme.qss and objectName with no inline styles.
  • Easy Integration: components are exported from glow/init.py and consumed by parent widgets.

Quick Start

Start by defining a new component name (e.g., GlowMyComponent), follow Phase 2 template to implement the Python class, set object names, apply QSS rules in theme.qss, export from the Glow module, and run the UI to verify visuals.

Frequently Asked Questions about Glow Component Factory

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

FAQPage Schema
How do I create consistent PyQt6 UI widgets without inline styling?

Standardized PyQt6 widgets are built using the GlowFactory pattern, enforcing theme-driven styling through theme.qss and objectName assignments instead of inline styles to maintain design-system coherence.

What is the factory pattern approach for building Amber UI components?

The Amber UI factory pattern provides a structured blueprint using a GlowWidget base class, phase-driven workflow, and standardized module exports to ensure consistent widget implementation across the presentation layer.

Do I need PyQt6 to use the GlowFactory pattern for design-system components?

PyQt6 is required as the foundational framework for building GlowFactory components, relying on its widget system, QSS styling support, and signal mechanisms to implement interactive Amber UI elements.

How to integrate new UI widgets into the Gosling2 presentation layer?

New UI widgets integrate into Gosling2 by exporting them from glow/__init__.py, applying objectName-based QSS rules in theme.qss, and consuming them within parent widgets to ensure proper module integration.

Does building Amber UI components with the factory pattern require unit tests?

Accompanying unit tests are required when building Amber UI components with the factory pattern, ensuring quality and consistency across the Design, Implementation, Styling, Integration, and Testing workflow phases.