Skip to content
D

design-patterns

Rust design patterns for RTK

by rtk-aiFree

#1001in AI Skills
0In stores

Description

design-patterns is an agent skill with Rust design patterns for the RTK project, a command-line tool whose filter modules are the main place…

Highlights

  • Newtype pattern for type-safe values such as token counts
  • Builder, RAII, trait object and state machine patterns
  • Patterns applied to RTK's CLI filter modules
  • Each pattern tied to when it should be used

Ratings & Reviews

No ratings yet

Be the first to rate design-patterns.

People also visit

R

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency

AI Skills
Get
C

code-simplifier

Review RTK Rust code for idiomatic simplification

AI Skills
Get
R

rust-skills

Comprehensive Rust coding guidelines with 265 rules across 26 categories

AI Skills
Get
D

domain-cli

Building CLI tools. Keywords: CLI, command line, terminal, clap, structopt

AI Skills
Get
R

rust-engineer

Writes, reviews, and debugs idiomatic Rust code

AI Skills
Get
R

rtk-tdd

Enforces TDD (Red-Green-Refactor) for Rust development

AI Skills
Get

design-patterns FAQ

What patterns does it cover?

Newtype for type safety, the builder pattern, RAII, trait objects and a state machine.

Who is it for?

Contributors to RTK who design new filter modules or review how existing modules are built.

What does the newtype example show?

Wrapping token counts in separate types, so swapping the input and output counts becomes a compile error instead of a silent bug.

How do I install it?

Run npx skills add https://github.com/rtk-ai/rtk --skill design-patterns.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best design-patterns alternatives?

Popular alternatives to design-patterns include rust-patterns, code-simplifier and rust-skills. See all design-patterns alternatives

Developer Stuff

Badges