pattern-tradeoff-analyzer

Analyze software design pattern tradeoffs and challenge golden hammer tendencies.

2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/michaelalber/ai-toolkit --skill pattern-tradeoff-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pattern-tradeoff-analyzer
Source: https://github.com/michaelalber/ai-toolkit/tree/main/skills/pattern-tradeoff-analyzer
Command: npx skills add https://github.com/michaelalber/ai-toolkit --skill pattern-tradeoff-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you make informed decisions when selecting design patterns, architectural approaches, or implementation strategies by explicitly presenting the tradeoffs involved, preventing costly "golden hammer" mistakes.

Core Features & Use Cases

  • Guided Decision Making: Walks you through a structured process (Challenge, Attempt, Compare, Reflect) to analyze your specific design problem.
  • Tradeoff Analysis: Presents 2-3 viable alternatives with explicit pros and cons tailored to your context.
  • Golden Hammer Detection: Challenges your default choices and encourages critical thinking about pattern applicability.
  • Use Case: You're deciding between the Strategy pattern, a switch statement, or simple polymorphism for handling different payment methods. This Skill will help you evaluate the long-term costs and benefits of each in your specific application context.

Quick Start

Use the pattern tradeoff analyzer skill to help decide between a Strategy pattern and a switch statement for handling different user roles.

Frequently Asked Questions about pattern-tradeoff-analyzer

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

FAQPage Schema
How do I choose the right software design pattern for my application?

Choosing the right software design pattern requires analyzing specific problem context, forces, and lifecycle stage to present explicit tradeoffs between 2-3 viable alternatives. This prevents costly golden hammer mistakes by evaluating long-term costs and benefits tailored to your architecture.

When should I avoid using the Strategy pattern?

You should avoid using the Strategy pattern when a simpler switch statement or basic polymorphism sufficiently handles your lifecycle stage without adding unnecessary architectural complexity. The pattern tradeoff analyzer challenges default choices to detect golden hammer tendencies and ensure informed decision-making.

How do I evaluate tradeoffs between different architectural approaches?

Evaluating tradeoffs between architectural approaches involves a structured process of Challenge, Attempt, Compare, and Reflect to analyze your specific design problem. This coaching method presents explicit pros and cons for implementation strategies based on your unique problem context.

What is a golden hammer in software design and how do I prevent it?

A golden hammer in software design is the tendency to force a default pattern onto every problem without critical thinking about its applicability. You prevent it by challenging default choices and comparing 2-3 viable alternatives with explicit tradeoffs tailored to your specific context.

Does refactoring require analyzing design pattern tradeoffs?

Refactoring requires analyzing design pattern tradeoffs to ensure the new implementation strategy fits your specific problem context and lifecycle stage. This prevents introducing unnecessary architectural complexity by presenting explicit pros and cons for 2-3 viable alternatives before committing.