AI AGENT ADDONS

Design Patterns

rtk-ai/rtk
CLI & Terminal
869installs

Rust design patterns make your code safer and easier to change. This skill teaches four patterns used in the RTK command line tool. They are Newtype, Builder, State Machine, and Trait Objects.

Newtype wraps simple values to prevent mistakes. Builder helps set up complex options step by step. State Machine handles changing states during parsing. Trait Objects let different filters share a common interface.

Use these patterns when you design new modules or refactor old ones. They help you avoid bugs and keep your code clean.

Add Design Patterns skill to your workflow

Global

mkdir -p ~/.claude/skills/design-patterns

Project

mkdir -p .claude/skills/design-patterns

Source Repository

Stars
66,726
Forks
4,125
Watchers
66,726
License
Apache-2.0
Last Push
1 month ago
Created
6 months ago