design-patterns
Skill by waybarrios
Guides AI assistants in choosing design patterns and abstractions for Rust, TypeScript/React and Django/Python. Each recommendation covers when to use it, when to skip it, and its trade-offs.
Install design-patterns
Built from the published package, never by AI.
git clone --depth 1 https://github.com/waybarrios/opencode-power-pack /tmp/opencode-power-pack && mkdir -p ~/.claude/skills && cp -r /tmp/opencode-power-pack/skills/design-patterns ~/.claude/skills/design-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/waybarrios/opencode-power-pack /tmp/opencode-power-pack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opencode-power-pack/skills/design-patterns ~/.gemini/antigravity-cli/skills/design-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The design-patterns skill helps AI assistants choose patterns and design traits, interfaces, components and abstraction boundaries. It covers Rust, TypeScript and React, and Django and Python. Each pattern includes when to use it, when to skip it, and its trade-offs. The skill also lists common anti-patterns that apply across all three stacks.
The skill starts from the problem rather than a favored pattern. It asks the assistant to consider context such as language, scale and how often the code will change. It then presents two or three candidate patterns with trade-offs and recommends the best fit, along with when to revisit the choice. It is aimed at developers and agents making design decisions in these stacks. It refers to the code-architect and code-quality skills in the same pack.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose a patternWalks through identifying the problem, context, and 2-3 candidate patterns before recommending one.
- Rust patternsCovers newtype, builder, typestate, trait objects vs generics, and error handling crates.
- TypeScript and React patternsCovers compound components, custom hooks, discriminated unions, and a state management decision tree.
- Django and Python patternsCovers service layer, QuerySet managers, and signals vs explicit calls.
- Anti-pattern referenceLists common anti-patterns such as god object, shotgun surgery, and premature abstraction, with fixes.
- Pattern selection guideSteps for describing the problem, constraints, options, a recommendation, and when to revisit it.
Try asking
- Should I use a builder or new() for a Rust config struct with many optional fields?
- Compare Django signals and explicit calls for audit logging in my app.
- Suggest a state management approach for a React app with server data and sibling state.
Good to know
- Covers only Rust, TypeScript/React and Django/Python patterns.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/design-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to design-patterns
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
design-patterns: common questions
Which languages and frameworks does the design-patterns skill cover?
It covers Rust, TypeScript with React, and Django with Python. Each section gives patterns tailored to that stack.
Does the skill always recommend a specific pattern?
No. The source says patterns are tools, not goals, and that a plain function or struct is fine if no pattern fits.
Does it work with other skills in the same pack?
The source says it cross-references the code-architect skill for architecture assessment and the code-quality skill for complexity thresholds.
How do I install design-patterns?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is design-patterns free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is design-patterns safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to design-patterns?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
