TypeScript multi-provider LLM library Cursor rules
This rule file has Cursor act as a senior engineer and product manager building TypeScript code for multi-provider LLM architectures. It suits developers writing libraries that work across several model providers and want a functional, composable and immutable style with APIs that are pleasant to use.
What it does
It prefers functions over classes and types over interfaces. Files use kebab-case names, variables and functions camelCase, classes and types PascalCase, and constants and enum values ALL_CAPS. Related code is grouped into modules, with index files to simplify imports.
How to use it
The globs are **/*, so it applies to the whole library.
Requirements and limits
Its type-over-interface preference is the opposite of several other TypeScript rule files, so pick one style per project.
More in Rules and the Cursor library.
What it covers
- Role and Expertise:
- Coding Standards:
- Naming Conventions:
- File Organization:
- Code Style:
- Best Practices:
- Documentation:
- Library Usage:
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.