askill
architecture-patterns

architecture-patternsSafety 100Repository

Guide architectural decisions and design patterns. Use when designing new features, refactoring code, or reviewing system structure. Triggers on: design architecture, choose pattern, system design, component design.

0 stars
1.2k downloads
Updated 2/10/2026

Package Files

Loading files...
SKILL.md

Architecture Patterns

Helps make informed architectural decisions during design phases.


The Job

Guide the selection of appropriate design patterns and architectural approaches based on the problem domain and existing codebase patterns.


Common Patterns

Structural Patterns

  • Module Organization - Group related functionality into cohesive modules
  • Registry Pattern - Central registration point for dynamic components
  • Factory Pattern - Encapsulate object creation logic

Behavioral Patterns

  • Strategy Pattern - Interchangeable algorithms behind common interface
  • Observer Pattern - Event-driven communication between components
  • Command Pattern - Encapsulate actions as objects

Integration Patterns

  • Adapter Pattern - Bridge between incompatible interfaces
  • Facade Pattern - Simplified interface to complex subsystem
  • Plugin Architecture - Extensibility through loadable components

Decision Framework

When choosing an architecture approach:

  1. Analyze existing patterns - What patterns does the codebase already use?
  2. Consider constraints - Performance, maintainability, testability requirements
  3. Evaluate trade-offs - Complexity vs flexibility, coupling vs cohesion
  4. Document decisions - Record why a pattern was chosen

Design Document Sections

A good design document includes:

## Overview
[Problem statement and proposed solution]

## Architecture
[High-level system design]

## Key Design Decisions
[Patterns chosen and rationale]

## API/Interface Design
[Public interfaces and contracts]

## Implementation Plan
[Phased approach to implementation]

## Testing Strategy
[How the design will be validated]

Anti-Patterns to Avoid

  • God classes - Classes that do too much
  • Tight coupling - Components that know too much about each other
  • Premature optimization - Complexity without proven need
  • Inconsistent patterns - Different approaches for similar problems

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/24/2026

Solid reference skill for architecture patterns with clear organization, decision framework, and anti-patterns. Good structure and clarity but lacks concrete examples, step-by-step procedures, and specific usage triggers. Could be more actionable with detailed implementation guidance.

100
85
75
70
55

Metadata

Licenseunknown
Version-
Updated2/10/2026
Publisherhansjm10

Tags

api