Install any skill in seconds. Free to start, no credit card required.
Get Started Free →florianbruniaux/design-patterns
Detect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases.
Passed 16 of 22 test cases with the skill, and 11 of 22 without it.
and 5 more in the full report
6 fixed10 passed either way5 still failing1 broke1 errored
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
Formulate the `summary` JSON block for a detection report where 5 patterns were identified. Which exact top-level property under `summary` holds the count breakdown by creational, structural, and behavioral categories?
| Checked | Without skill | With skill |
|---|---|---|
| Places category counts under `by_category` within the summary object. | Missed | Passed |
The instructions your model reads when the skill loads.
Purpose: Detect, suggest, and evaluate Gang of Four (GoF) design patterns in TypeScript/JavaScript codebases with stack-aware adaptations.
Trigger: User requests pattern detection or analysis Output: JSON report of patterns found with confidence scores and stack context
Workflow:
1. Stack Detection (package.json, tsconfig.json, framework files)
2. Pattern Search (Glob for candidates -> Grep for signatures -> Read for validation)
3. Classification (native to stack vs custom implementations)
4. Confidence Scoring (0.0-1.0 based on detection rules)
5. JSON Report Generation
Example invocation:
/design-patterns detect src/
/design-patterns analyze --format=json
Trigger: User requests pattern suggestions or refactoring advice Output: Markdown report with prioritized suggestions and stack-adapted examples
Workflow:
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.