tactical-patterns

Translate GoF design patterns into functional programming equivalents using Higher-Order Functions and Algebraic Data Types.

Updated May 7, 2026
One-click install
npx skills add https://github.com/TK-Evans01/tk-harness --skill tactical-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tactical-patterns
Source: https://github.com/TK-Evans01/tk-harness/tree/main/plugins/tk-house-style/skills/tactical-patterns
Command: npx skills add https://github.com/TK-Evans01/tk-harness --skill tactical-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers avoid over-engineering by showing how to translate classic design patterns into functional programming equivalents.

Core Features & Use Cases

  • Pattern Dissolution: Offers guidance on translating design patterns such as Factory, Singleton, and Observer into functional programming idioms.
  • FP Constructs: Emphasizes the use of Higher-Order Functions (HOF), Algebraic Data Types (ADT), and Smart Constructors.
  • Use Case: When designing a system and considering the use of a Factory pattern, this Skill can suggest a smart constructor as a more functional alternative.

Quick Start

To apply this Skill, analyze your design using the guidelines provided, and consider functional programming alternatives for common design patterns.

Frequently Asked Questions about tactical-patterns

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

FAQPage Schema
What is the functional programming equivalent of the Factory pattern?

The functional programming equivalent of the Factory pattern is a smart constructor. It leverages Higher-Order Functions and Algebraic Data Types to provide a simpler alternative to traditional object creation.

How do I translate GoF design patterns into functional programming?

You translate GoF design patterns into functional programming by dissolving them into constructs like Higher-Order Functions and Algebraic Data Types. This process simplifies code and avoids over-engineering.

Do I need prior functional programming knowledge to replace design patterns?

Yes, understanding design patterns and functional programming concepts is required. You need foundational knowledge of Higher-Order Functions and Algebraic Data Types to effectively dissolve patterns like Singleton and Observer.

Why use functional programming alternatives instead of traditional design patterns?

Functional programming alternatives are used to avoid over-engineering and simplify code. By replacing classic GoF patterns with functional idioms, developers leverage constructs like Higher-Order Functions for cleaner architecture.

When should I not use functional programming constructs over GoF patterns?

You should avoid functional programming constructs when working in codebases that do not support functional paradigms. If your environment lacks Higher-Order Functions or Algebraic Data Types, traditional GoF patterns remain necessary.