Skip to content
Kitbay
Skill

design-patterns

Apache-2.0Updated on Nov 11, 202686,197GitHub stars

A contributor skill in the RTK repository describing which Rust design patterns to use when adding or restructuring RTK's command filter modules.

What the skill teaches

A contributor skill in the RTK repository describing which Rust design patterns to use when adding or restructuring RTK's command filter modules. It covers newtypes for values such as command names and token counts, builders for structs with many optional fields, state machines for parsing multi-section output like pytest results, trait objects only if the command set grows, RAII for temporary files, strategies for switching filter modes and extension traits on strings, each with a short example. A table helps pick a pattern, and it lists anti-patterns, advising the agent to keep RTK's existing match-based dispatch, stay synchronous and avoid abstractions for single commands.

Capabilities

Not stated in its documentation