abstract-factory

Plan, implement, and audit the Abstract Factory pattern in Python or TypeScript repositories.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/TDMorales/skill_set_library --skill abstract-factory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abstract-factory
Source: https://github.com/TDMorales/skill_set_library/tree/main/skills/.experimental/abstract-factory
Command: npx skills add https://github.com/TDMorales/skill_set_library --skill abstract-factory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill helps you implement or audit the Abstract Factory design pattern, ensuring families of related objects are created consistently without specifying concrete classes.

Core Features & Use Cases

  • Pattern Implementation: Generate code for Abstract Factories, Abstract Products, Concrete Factories, and Concrete Products.
  • Pattern Auditing: Analyze existing code for adherence to Abstract Factory principles and identify violations.
  • Design Planning: Create a detailed plan for introducing the Abstract Factory pattern into a codebase.
  • Use Case: Refactoring a UI system to support multiple themes (light, dark, high-contrast) by abstracting the creation of UI components like buttons and panels.

Quick Start

Use the abstract-factory skill to audit the current implementation of the Abstract Factory pattern in the repository.

Frequently Asked Questions about abstract-factory

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

FAQPage Schema
How do I implement the Abstract Factory pattern for creating families of related UI components?

The Abstract Factory pattern enables creating families of related UI components like buttons and panels without specifying concrete classes. This Skill plans, implements, and audits the pattern in Python, TypeScript, or mixed environments, enforcing strict invariants and variant switching capabilities.

What's the best way to audit existing code for Abstract Factory design pattern violations?

Auditing Abstract Factory design pattern violations requires analyzing existing code for adherence to pattern principles. This Skill reviews your repository to detect concrete class dependencies, identify behavioral preservation issues, and output contract violations within repo-scoped operations.

When do I need an Abstract Factory pattern in my software architecture refactoring?

You need the Abstract Factory pattern in software architecture refactoring when creating families of related objects that require variant switching, such as supporting multiple UI themes like light, dark, and high-contrast modes consistently across component creation.

Does this Abstract Factory implementation support mixed Python and TypeScript codebases?

Yes, the Abstract Factory implementation supports Python, TypeScript, and mixed language environments. It enforces strict invariants and output contracts across both languages, ensuring families of related objects maintain behavioral preservation during variant switching operations.

How do I create a design plan for introducing an Abstract Factory into an existing repository?

Creating a design plan for introducing an Abstract Factory involves mapping abstract products, concrete factories, and concrete products. This Skill generates a detailed implementation plan enforcing behavioral preservation and repo-scoped operations for your specific codebase structure.

Why does my Abstract Factory refactoring break behavioral preservation invariants?

Abstract Factory refactoring breaks behavioral preservation invariants when concrete class dependencies leak or output contracts are violated. This Skill audits your repository to identify these violations, enforcing strict invariants and ensuring consistent creation of related object families.