clean-typescript
Installation
SKILL.md
Clean TypeScript: Index And Review Guide
Use this as the TypeScript entry point. It routes broad review work to focused skills and summarizes the rules most likely to affect design. Prefer clear runtime behavior and precise public types over cleverness or type-system escape hatches.
Comments (C1-C5)
- C1: No metadata in comments (use Git)
- C2: Delete obsolete comments immediately
- C3: No redundant comments
- C4: Write comments well if you must
- C5: Never commit commented-out code
Error Handling (EH1-EH4)
- EH1: Throw
Errorobjects with useful context - EH2: Catch
unknownand narrow before reading properties - EH3: Do not swallow failures
- EH4: Use typed recoverable results only when the project style or domain warrants it