Skip to main content

design-patterns

Use when: apply a design pattern to a real problem without over-engineering the solution.

Source facts

Repository
kimtth/agent-skill-100-lines-or-less
Last source activity
June 26, 2026 at 02:15
Detected SKILL.md language
English
Stars
2
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
design-patterns
description
Use when: apply a design pattern to a real problem without over-engineering the solution.
Goal: use patterns to clarify design, not to decorate simple code. Use for: - recurring design problems with known solutions - naming and structuring a chosen approach - reviewing whether a pattern fits or adds noise Workflow: 1. State the actual problem and forces involved. 2. Match it to a pattern's intent, not its name. 3. Apply the smallest form that solves the problem. 4. Name the participants clearly in the code. 5. Reassess: would plain code be simpler here. 6. Verify behavior is unchanged and clearer. Common patterns: - strategy for interchangeable behavior - factory for controlled construction - adapter to bridge incompatible interfaces - observer for event notification - decorator to add behavior without subclassing Rules: - choose by intent, not by familiarity - do not introduce a pattern for a one-off case - prefer composition over inheritance-heavy patterns - the simplest design that works beats a clever one
View on GitHub