Design Patterns

Use when the user asks which design pattern to use, GoF patterns (strategy, factory, observer, decorator, adapter), enterprise patterns, anti-patterns or composition vs inheritance. Produces a pattern choice with trade-offs and code. Not for system layering (use backend-clean-architecture) or microservice patterns (use microservices).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill design-patterns
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/universal/design-patterns ~/.claude/skills/design-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Design Patterns

## Purpose
Guide pattern selection across all categories — GoF, enterprise, integration, concurrency, architectural — with decision trees, applicability rules, trade-off analysis, and composition guidance.

## Agent Protocol

### Trigger
User request includes: `design pattern`, `gof`, `gang of four`, `pattern catalog`, `creational`, `structural`, `behavioral`, `pattern selection`, `enterprise pattern`, `integration pattern`, `concurrency pattern`, `architectural pattern`, `anti-pattern`, `pattern composition`, `CQRS`, `event sourcing`, `saga`, `repository`, `unit of work`, `messaging pattern`, `circuit breaker`, `strangler fig`, `saga pattern`, `hexagonal architecture`, `clean architecture`.

### Input Context
- Problem statement with constraints (performance, memory, team size, tech stack)
- Current architecture description
- Existing patterns already in use
- Pattern category preference or openness

### Output Artifact
Selected pattern(s) with rationale, rejected candidates with explicit elimination reasons, implementation sketch, trade-off table, and composition rules if multiple patterns are needed.

### Response Format
No preamble. No postamble. No explanations. Strip articles a/an/the where unambiguous. Compress output. If no pattern fits, output `No matching pattern. Consider: [alternative approach].` and stop.

### Completion Criteria
- Decision tree traversed and documented
- Rejected candidates include explicit elimination reason
Read the full skill on GitHub

Details

Skill name
design-patterns
Path
skills/backend/universal/design-patterns/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Design Patterns skill do?

Use when the user asks which design pattern to use, GoF patterns (strategy, factory, observer, decorator, adapter), enterprise patterns, anti-patterns or composition vs inheritance. Produces a pattern choice with trade-offs and code. Not for system layering (use backend-clean-architecture) or microservice patterns (use microservices).

How do I install the Design Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill design-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Design Patterns popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Desktop Gnome

45

j4flmao/agent-skills

Use when the user asks about GNOME apps, libadwaita, GNOME Shell extensions, GLib/GIO, GSettings schemas, GNOME Builder, Flatpak packaging or the GNOME HIG. Produces GNOME-integrated apps and extensions. Not for general GTK widget programming (use desktop-gtk) or Qt/KDE (use desktop-qt).

Software Development

Design Information Architecture

45

j4flmao/agent-skills

Use when the user asks about information architecture, sitemaps, navigation design, user flows, content hierarchy, labeling, taxonomy or card sorting results. Produces IA maps, navigation structures and flow diagrams. Not for running user research studies (use design-ux-research) or visual layout (use design-visual-design).

Software Development

Desktop Tauri

45

j4flmao/agent-skills

Use when the user asks to build a desktop app with Tauri and a Rust backend, Tauri v2, commands and invoke, capabilities and permissions, Tauri plugins, the updater or mobile targets. Produces secure Tauri 2 apps with typed IPC, capability files and bundling. Not for Electron apps (use desktop-electron).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.