gof-design-patterns
3
总安装量
2
周安装量
#61152
全站排名
安装命令
npx skills add https://github.com/fede0089/agents-skills --skill gof-design-patterns
Agent 安装分布
opencode
2
antigravity
2
github-copilot
2
codex
2
kimi-cli
2
gemini-cli
2
Skill 文档
GoF Design Patterns
Goal
- Choose the simplest design that solves the real change pressure.
- Select one primary pattern (two only if responsibilities are clearly split).
- Keep recommendations language-agnostic and explicit about tradeoffs.
- Support coding tasks with pattern-aligned implementation guidance.
Simple Workflow
- Capture context with three questions: what changes often, what hurts now, and which constraint dominates.
- Shortlist up to three candidates using
references/DECISION_FRAMEWORK.md(canonical source). Usereferences/CATALOG.mdonly for quick intent lookup. - Select one pattern (or
do not use a pattern) based on future change-cost reduction and lower indirection. - If the task includes code changes, always read both:
references/pattern-<selected-pattern>.mdscripts/<selected-pattern>.ts(illustrative reference only)
- Apply the design incrementally, adapted to the project language and constraints.
- Validate with
references/PITFALLS.md, then run a final quality/activation self-check withreferences/TESTS.md, and format the answer withreferences/OUTPUT_TEMPLATES.md.
Core Rules
- Language first: choose by problem forces and context, not by language syntax.
- Simplicity first: if recurring change pressure is weak, explicitly recommend
do not use a pattern. - Script policy: scripts are examples to read and adapt, not mandatory to execute.
Output Contract
- Always provide an explicit decision.
- Always include one simpler alternative and why it was rejected.
- Always include tradeoffs (
ProsandCons). - If code is shown, include a short adaptation note for other languages.