Zum Inhalt springen
Kitbay
Skill

design-patterns

Apache-2.0Aktualisiert am 11. Nov. 202686.197GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

In der Dokumentation nicht angegeben