design-patterns

Guide engineers in applying software design patterns across creational, structural, behavioral, and enterprise contexts.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/ps-carvalho/cortex-agents --skill design-patterns-ps-carvalho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns
Source: https://github.com/ps-carvalho/cortex-agents/tree/main/.opencode/skills/design-patterns
Command: npx skills add https://github.com/ps-carvalho/cortex-agents --skill design-patterns-ps-carvalho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides practical guidance for applying widely recognized software design patterns to solve recurring design and architecture problems across codebases.

Core Features & Use Cases

  • Comprehensive coverage of Creational, Structural, Behavioral, Enterprise and Domain-Driven patterns with explanations of intent, typical use cases, and sample snippets.
  • Practical guidance for refactoring, architecture reviews, and maintaining consistency across teams by using canonical patterns and recognizing anti-patterns.
  • Real-world scenarios and step-by-step reasoning to choose the right pattern for a given problem.

Quick Start

Review the catalog of patterns and identify a matching problem in your project to apply a suitable design pattern and template.

Frequently Asked Questions about design-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to choose a software design pattern for a specific coding problem?

Choosing a software design pattern requires identifying the recurring problem type in your project. This Skill guides you through cataloging creational, structural, and behavioral patterns, matching your specific issue to the correct pattern, and providing concrete code snippets to implement the solution.

How do I apply creational, structural, and behavioral patterns to improve software architecture?

Applying creational, structural, and behavioral patterns improves software architecture by standardizing object creation, composition, and communication. This Skill enumerates each pattern category with clear intents and practical examples to build maintainable and scalable codebases.

When do I need to refactor code using anti-patterns instead of recognized design patterns?

You need to refactor code using anti-patterns when maintainability or scalability suffers from poor structure. This Skill helps recognize common anti-patterns and provides step-by-step reasoning to replace them with canonical design patterns.

Can I use design patterns for enterprise architecture and domain-driven design contexts?

Yes, you can use design patterns for enterprise architecture and domain-driven design contexts. This Skill covers enterprise and domain-specific patterns, offering real-world scenarios and step-by-step reasoning to ensure robust software architecture.

How do design patterns reduce anti-patterns in a codebase?

Design patterns reduce anti-patterns by providing proven, standardized templates for recurring software design problems. By following the concrete steps and sample snippets provided, engineers can replace ad-hoc solutions with canonical structures that prevent architectural decay.