Agent skill · Frontend

design-patterns

Agents should invoke this skill when choosing patterns, designing traits/interfaces/components, deciding abstraction boundaries, evaluating dependency injection/callbacks, or comparing implementation approaches in Rust, TypeScript/React, or Django/Python.

Wayner Barrios443★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add waybarrios/opencode-power-pack --skill design-patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/design-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 443
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Design Patterns Pattern recommendations tailored to common tech stacks. Every pattern recommendation includes when to use it, when to avoid it, and the trade-offs. ## Quick Start ### Choose a Pattern 1. **Identify the problem:** What design challenge are you solving? 2. **Consider the context:** What language? What scale? How often will this change? 3. **Evaluate options:** 2-3 candidate patterns with trade-offs 4. **Recommend:** The best fit for *this specific context* (not the "best pattern in general") **The golden rule:** Patterns are tools, not goals. Use the simplest pattern that solves the problem. If no pattern fits, a plain function or struct is fine. --- ## Rust Patterns ### Newtype Pattern Wrap a primitive to add type safety and domain meaning. ```rust struct UserId(u64); struct OrderId(u64); // Now the compiler prevents mixing up UserId and OrderId fn get_order(user: UserId, order: OrderId) -> Order { ... } ``` **When to use:** When two values have the same underlying type but different meanings. **When to skip:** One-off uses where a type alias suffices. ### Builder Pattern Construct complex objects step by step. ```rust let config = ServerConfig::builder() .host("lo

What's inside
Steps it walks through
  1. Quick Start
  2. Choose a Pattern
  3. Rust Patterns
  4. Newtype Pattern
  5. Builder Pattern
  6. Typestate Pattern
  7. Trait Objects vs Generics
  8. Error Handling Patterns
  9. TypeScript / React Patterns
  10. Compound Components
  11. Custom Hook Composition
  12. Discriminated Unions
  13. State Management Decision Tree
  14. Django / Python Patterns
More from opencode-power-pack
All skills →
About this skill
What does the design-patterns skill do?

Agents should invoke this skill when choosing patterns, designing traits/interfaces/components, deciding abstraction boundaries, evaluating dependency injection/callbacks, or comparing implementation approaches in Rust, TypeScript/React, or Django/Python.

How do I install it?

Run `npx skills add waybarrios/opencode-power-pack --skill design-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From waybarrios/opencode-power-pack, a repository with 443 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going