johnnystefan/test-saas-business/abstract-factory

Claude Code and agent skill by johnnystefan/test-saas-business

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Teaches and applies the Abstract Factory creational design pattern — producing families of related objects without specifying their concrete classes, ensuring product compatibility. Trigger: When creating families of related objects or enforcing product compatibility constraints.

Install

npx vskill@latest install johnnystefan/test-saas-business/abstract-factory

SKILL.md

The same SKILL.md was published earlier as johnnystefan/test-saas-business/abstract-factory.

Skill: Implement Abstract Factory Pattern

Purpose

Allows producing families of related objects without specifying their concrete classes. It ensures that the products you obtain from a factory are compatible with each other.

Procedural Instructions

  1. Map Product Families: Identify groups of related products (e.g., Victorian Chair + Victorian Sofa).
  2. Declare Abstract Interfaces: Create interfaces for each distinct product type in the family.
  3. Declare Abstract Factory: An interface with creation methods for all abstract products.
  4. Implement Concrete Factories: One factory per variant (e.g., ModernFactory, VictorianFactory).

TypeScript Example

typescript
interface Chair {
hasLegs(): boolean;
}
interface Sofa {
hasCushions(): boolean;
}
// Abstract Factory
interface FurnitureFactory {
createChair(): Chair;
createSofa(): Sofa;
}
// Concrete Family: ArtDeco
class ArtDecoChair implements Chair {
hasLegs() {
return true;
}
}
class ArtDecoSofa implements Sofa {
hasCushions() {
return true;
}
}
class ArtDecoFactory implements FurnitureFactory {
createChair(): Chair {
return new ArtDecoChair();
}
createSofa(): Sofa {
return new ArtDecoSofa();
}
}

Payoff

  • Consistency: Guarantees products from the same factory are compatible.
  • Decoupling: Client code only interacts with interfaces, not concrete implementations.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/johnnystefan/test-saas-business/abstract-factory/badge)](https://verified-skill.com/skills/johnnystefan/test-saas-business/abstract-factory)

Something wrong with this skill or its page? Tell us.