Skip to main content
skill CX Codex

gof-design-patterns — Claude Code skill: GoF patterns in 8 languages

gof-design-patterns finds the right Gang of Four pattern for the problem you describe and writes a working implementation in one of eight languages.

no license 145 installs ★ 25 updated 2026-02-19

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add markpitt/claude-skills --skill gof-design-patterns -a claude-code
Open on GitHub

What gof-design-patterns does

Describe a design problem and the skill picks a pattern from the creational, structural or behavioral group, says why it fits, then writes the code. You get a usage example, the trade-offs, notes on the idioms of your chosen language and a hint on how to test the result. Reference files ship with it: a selection guide and per-category pattern write-ups.

Eight languages are covered: C#, Rust, Python, Dart, Go, GenAIScript, TypeScript and C. Ask for Java or Kotlin and the code half of the answer disappears, leaving only the pattern choice and the reasoning.

You can also name a pattern outright, ask for two that work together (a Factory that produces Strategy objects), or compare lookalikes such as Strategy and State. Everything comes from your description, so a vague request tends to return a generic pattern. Say what varies in your code and what stays fixed.

What it helps with

  • pick a pattern for payments that run through several providers
  • write a Builder in TypeScript for a config object
  • compare Strategy and State on real examples
  • combine Factory and Strategy in Rust
  • get a working Observer example in Go

Example prompts for the agent

  • Payments go through several providers with different interfaces, which pattern fits and show me the Python code
  • Write a Builder in TypeScript for my config object with a fluent interface
  • Show Factory and Strategy together in Rust and explain why you would pair them

How to install gof-design-patterns

1Skills CLI (Vercel)

npx skills add markpitt/claude-skills --skill gof-design-patterns -a claude-code

2Manually: put the files in place

~/.claude/skills/gof-design-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gof-design-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about gof-design-patterns

How do I install gof-design-patterns in Claude Code?

Run npx skills add markpitt/claude-skills --skill gof-design-patterns -a claude-code. The skill lands at ~/.claude/skills/gof-design-patterns/SKILL.md.

What does gof-design-patterns do?

It reads the problem you describe, recommends a GoF pattern and writes an implementation in the language you name, with a usage example and the trade-offs.

Which languages does it cover?

C#, Rust, Python, Dart, Go, GenAIScript, TypeScript and C. For anything else you still get the pattern recommendation and the reasoning behind it.

Similar skills

All skills for Programming languages →
implementation-design-patterns-python pproenca implementation-design-patterns-python — a Python design-pattern guide for choosing an approach when conditionals, inheritance, or object relationships start to sprawl. It favors modern Python idioms over class-heavy templates. CX Codex +1 143installs design-patterns rtk-ai design-patterns provides Rust architectural patterns for RTK CLI filter modules. Helps select Newtype, Builder, State Machine, and RAII during module design and refactoring. CX Codex +1 2,000installs implementation-design-patterns pproenca implementation-design-patterns is a Claude Code skill that identifies a Gang of Four pattern from a problem description and explains when to apply or avoid it. CX Codex +1 151installs design-patterns-implementation aj-geddes design-patterns-implementation — a skill for Claude Code and Codex that picks and applies design patterns to architectural problems. It kicks in during refactoring, architecture review, and when building extensible systems. CX Codex +1 601installs golang-design-patterns samber The golang-design-patterns skill guides idiomatic Go design for APIs, resource lifecycles, graceful shutdown, and architecture. Use it when designing or reviewing Go code. CX Codex +1 44,600installs python-design-patterns Seth Hobson python-design-patterns is a Claude Code skill for shaping Python components, separating responsibilities, and deciding when repeated code merits abstraction during design or refactoring. CX Codex +1 22,842installs

From the same set10

The whole set →
avalonia Guides an agent through Avalonia work: MVVM, XAML, bindings, styling, controls, and platform-specific code for .NET applications. CX Codex +1 286installs microsoft-graph A hub for Microsoft Graph work: eight reference files, shared query parameters and permission rules. Useful when the agent is writing a Microsoft 365 integration. CX Codex +1 263installs kiss-principle The kiss-principle skill helps spot needless complexity in code and design, then plan simpler solutions without dropping required behavior. Use it during reviews, refactors, or feature planning. CX Codex +1 251installs markdown-formatter markdown-formatter rewrites the markup of a markdown file against one set of style rules, then checks the result with a bundled script and reports what changed. CX Codex +1 245installs azure-devops Guides an agent through Azure DevOps REST API work across Boards, Repos, Pipelines, Test Plans, and Artifacts. Useful for integrations and DevOps automation. CX Codex +1 191installs github-api github-api routes GitHub REST and GraphQL requests through dedicated reference guides. Helps build integrations, automate pull requests, and trigger Actions without leaking tokens. CX Codex +1 148installs root-cause-analysis The root-cause-analysis skill guides investigations with 5 Whys, Ishikawa diagrams, Pareto analysis, and fault trees. Use it to trace a bug or failure beyond its visible symptoms. CX Codex +1 107installs dotnet-aspire The dotnet-aspire skill helps add .NET Aspire to an existing .NET solution, including its orchestration and shared service setup. Use it when wiring a distributed app. CX Codex +1 104installs

Project sponsors

Companies that keep this analytics open