Skip to content
Kitbay
Skill

enforce-rules-for-typescript

MITUpdated on Nov 13, 202651,383GitHub stars

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

What the skill teaches

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.

Capabilities

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