Agent skill

factory-pattern

Use factories when object creation is complex, involves choosing between implementations, or you ... Use when designing system architecture. Architecture category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/factory-pattern

Metadata

Additional technical details for this skill

category
Architecture
priority
medium
is built in
YES
session guardian id
builtin_factory_pattern

SKILL.md

Factory Pattern

Use factories when object creation is complex, involves choosing between implementations, or you want to hide implementation details. Factory functions return objects implementing an interface without exposing concrete classes. This enables easier testing (factory returns mocks) and flexibility (change implementation without changing consumers). Prefer simple factory functions over complex abstract factory hierarchies.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results