factory-builder-patterns

Plan, implement, and audit Factory Method and Builder patterns in Python and TypeScript repositories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you implement or audit the Factory Method and Builder design patterns in your codebase, ensuring code clarity, maintainability, and adherence to best practices without altering existing behavior.

Core Features & Use Cases

  • Pattern Implementation: Add Factory Method or Builder patterns to your code.
  • Pattern Auditing: Review existing implementations for compliance with design principles.
  • Code Refactoring: Improve code structure and reduce coupling using established patterns.
  • Use Case: Refactor a complex object creation process using the Builder pattern to make the code more readable and less error-prone, or introduce a Factory Method to decouple client code from concrete product instantiation.

Quick Start

Use the factory-builder-patterns skill to audit the current implementation of the Builder pattern in the 'src/utils' directory.

Frequently Asked Questions about factory-builder-patterns

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

FAQPage Schema
How do I implement the Factory Method pattern in a TypeScript repository?

Yes, you can audit existing Builder pattern implementations by evaluating the codebase against design principles, checking for strict invariants, validation checks, and output contracts to ensure behavioral preservation.

When should I use the Builder pattern instead of the Factory Method for code refactoring?

You can refactor complex object creation processes in Python by applying the Builder pattern to make code more readable and less error-prone, or introduce a Factory Method to reduce coupling while maintaining minimal API impact.

Can I audit existing design patterns in my codebase without altering their behavior?

This approach ensures code clarity, maintainability, and adherence to best practices by focusing on strict invariants, validation checks, and output contracts during the pattern implementation and auditing process.

What is the best way to plan Factory Method and Builder pattern implementations?

This planning mode operates within a specified repository to ensure behavioral preservation and minimal API impact when adding Factory Method or Builder design patterns to Python or TypeScript codebases.

Does the factory-builder-patterns approach support both Python and TypeScript?

It provides modes for auditing, planning, and direct code implementation, ensuring that software architecture refactoring maintains strict invariants and validation checks in either language environment.