codingby wasabeef
Suggest design patterns and evaluate SOLID principles
wasabeef/suggest-design-patterns-and-evaluate-solid-principles
Suggest design patterns and evaluate SOLID principles. Trigger with "suggest design patterns", "which patterns apply?", "check SOLID principles", "detect anti-patterns", "evaluate code design".
What it changes
Passed 17 of 22 test cases with the skill, and 7 of 22 without it.
Without skill32%
With skill77%
Checks it passed that the model alone missed
- Includes the --solid flag
- Includes the --combine flag
- Tags the violation with [S]
and 11 more in the full report
10 fixed7 passed either way5 still failing0 broke
- Pass-rate lift
- +45 pp
- Tokens
- +34%
- Agent turns
- 0%
- Response time
- -45%
Model gemini-3.6-flashMeasured 8/16/2026v117 of 22 cases passed with skill
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
PromptProvide the CLI command invocation to generate refactoring proposals for `src/services/auth.js`.
What was checked, without and with the skill| Checked | Without skill | With skill |
|---|
| Specifies the command /design-patterns src/services/auth.js | Missed | Passed |
|---|
| Includes the --refactor flag | Missed | Passed |
|---|
What's inside
The instructions your model reads when the skill loads.
SKILL.md186 linessingle file
Suggest design patterns and evaluate SOLID principles
Suggests design patterns for your code and checks if it follows SOLID principles.
Usage
/design-patterns [analysis_target] [options]
Options
--suggest: Suggest applicable patterns (default)
--analyze: Analyze existing pattern usage
--refactor: Generate refactoring proposals
--solid: Check compliance with SOLID principles
--anti-patterns: Detect anti-patterns
Basic Examples
# Analyze patterns for entire project
/design-patterns
# Suggest patterns for specific file
/design-patterns src/services/user.js --suggest
# Check SOLID principles
/design-patterns --solid
# Detect anti-patterns
/design-patterns --anti-patterns
Pattern Categories
1. Creational Patterns
- Factory Pattern: Abstracts object creation
- Builder Pattern: Step-by-step construction of complex objects
Track record
Benchmark
17 / 22
test cases passed, vs 7 / 22 without
Adoption
- Users
- 0
- Times used
- 0
Safety and source details
SkillSafety
✓ 3 of 3 passed✓Code scan15 of 15 checks clean
0 critical · 0 warning · 0 info — scanner v4 — 8/3/2026
View 15 scanner checks
live_secretremote_code_executionreverse_shelldata_exfiltrationssrf_metadataagent_snoopinganti_refusaldestructive_commandsobfuscated_unicodeunicode_homoglyphopaque_blobsuspicious_urltool_overreachtrigger_abuseprompt_injection_phrasing
✓IntentSafe
LLM judge · does the skill do what it claims
✓ContentClean
LLM judge · policy & harmful-content review
Source
Importedwasabeef / claude-code-cookbook
plugins/en/skills/design-patterns/SKILL.md
View on GitHub ↗Imported 8/3/2026Version v1