text
| 1 | # TypeScript Style Rules |
| 2 | |
| 3 | Linters catch formatting. These rules catch the things that make agent-written |
| 4 | TypeScript quietly bad: `any` sprinkled to make an error go away, types that lie about |
| 5 | what a function returns, abstractions invented for a single caller, and errors |
| 6 | swallowed into a catch block that does nothing. |
| 7 | |
| 8 | ## When to use |
| 9 | |
| 10 | - Any project where an agent writes or edits TypeScript. |
| 11 | - Alongside a linter and formatter, not instead of one. These cover judgment, not layout. |
| 12 | - As the standard for reviewing TypeScript an agent produced. |
| 13 | |
| 14 | ## Install |
| 15 | |
| 16 | ```bash |
| 17 | npx openagents-cli add openagents/typescript-style-rules |
| 18 | ``` |
| 19 | |
| 20 | | Runtime | Installed to | |
| 21 | |---|---| |
| 22 | | `claude-code` | `.claude/skills/typescript-style-rules/` | |
| 23 | | `cursor` | `.cursor/rules/typescript-style-rules/` | |
| 24 | | `codex` | `.codex/skills/typescript-style-rules/` | |
| 25 | | `generic` | `.openagents/typescript-style-rules/` | |
| 26 | |
| 27 | ## What is in the package |
| 28 | |
| 29 | - `RULES.md` - the rules themselves, each with the failure it prevents. |
| 30 | - `review-checklist.md` - a short pass to run over a diff before calling it done. |
| 31 | |
| 32 | ## License |
| 33 | |
| 34 | MIT |
| 35 |