Skip to main content

design-patterns

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

ソース情報

リポジトリ
kimtth/agent-skill-100-lines-or-less
ソースの最終更新活動
2026年6月26日 02:15
検出された SKILL.md の言語
英語
スター
2
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
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
GitHubで見る