johnnystefan/test-saas-business/pattern-builder

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 Builder creational design pattern — constructing complex objects step by step, allowing different representations using the same construction process. Trigger: When building complex objects with many optional parameters or multi-step construction.

Install

npx vskill@latest install johnnystefan/test-saas-business/pattern-builder

SKILL.md

The same SKILL.md was published earlier as johnnystefan/test-saas-business/pattern-builder.

Skill: Implement Builder Pattern

Purpose

Constructs complex objects step by step. It allows producing different types and representations of an object using the same construction code.

Procedural Instructions

  1. Identify Multi-step Creation: Look for "Telescoping Constructors" (too many parameters).
  2. Create Builder Interface: List all possible construction steps.
  3. Implement Concrete Builders: Define how each step is executed for a specific representation.
  4. Director (Optional): Define the order of steps for common configurations.

TypeScript Example

typescript
class Car {
public seats: number = 0;
public engine: string = '';
public gps: boolean = false;
}
interface Builder {
reset(): void;
setSeats(n: number): void;
setEngine(e: string): void;
setGPS(g: boolean): void;
}
class CarBuilder implements Builder {
private car: Car = new Car();
reset() {
this.car = new Car();
}
setSeats(n: number) {
this.car.seats = n;
}
setEngine(e: string) {
this.car.engine = e;
}
setGPS(g: boolean) {
this.car.gps = g;
}
getProduct(): Car {
return this.car;
}
}

Payoff

  • Control: Finer control over the construction process.
  • Reusability: Same construction code can build different products.

Security

  • Security scanPassed, 95 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/pattern-builder/badge)](https://verified-skill.com/skills/johnnystefan/test-saas-business/pattern-builder)

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