本文へスキップ
Kitbay
スキル

enforce-rules-for-typescript

MIT2026年11月13日 更新51,383GitHubスター

A rules skill in the AIRI monorepo for writing, refactoring or reviewing its TypeScript and Vue code.

スキルの内容

A rules skill in the AIRI monorepo for writing, refactoring or reviewing its TypeScript and Vue code. It covers importing types from the module that owns them, naming by domain operation without repeating package names, comments that explain intent, invariants and side effects rather than restating code, and when JSDoc is required, including call-stack diagrams for runners. Fallbacks with several sources need explicit precedence and stable empty values instead of inline defaults in reactive code. Stateful and protocol code must document its state model, correlation keys and cleanup order. Further rules favour deep modules, date-fns for dates, shared helpers with units in their names, and cross-platform paths, ending with a review checklist.

できること

  • Check imports, naming and comments
  • Require explicit fallback precedence
  • Document state models and protocol envelopes
  • Review code against a checklist