本文へスキップ
Kitbay
スキル

design-patterns

Apache-2.02026年11月11日 更新86,197GitHubスター

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

スキルの内容

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.

できること

ドキュメントに記載なし