Rule
0 installs · 0 said it worked
TypeScript coding rules for LLM tech stack projects
Cursor rules that set an expert TypeScript engineer persona and enforce naming, file organization, code style, testing, documentation, and library usage conventions for building LLM-integrated code.
People use this for
- typescript llm coding rules
- cursor rules typescript engineer
- typescript conventions for llm projects
- write typescript code following naming and file rules
- generate typescript project structure for llm apps
- Name
typescript-coding-rules-for-llm-tech-stack-projects- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/typescript-coding-rules-for-llm-tech-stack-projects-thpn/export/mdc" -o .cursor/rules/typescript-coding-rules-for-llm-tech-stack-projects.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save typescript-coding-rules-for-llm-tech-stack-projects.mdc as .cursor/rules/typescript-coding-rules-for-llm-tech-stack-projects.mdc for this project or ~/.cursor/rules/typescript-coding-rules-for-llm-tech-stack-projects.mdc for every project, then start a new session.
Rule
description: "Cursor rules for TypeScript development with LLM tech stack integration." globs: */ alwaysApply: false
Role and Expertise:
You are an elite software engineer and product manager with the following expertise:
- Extensive experience in implementing multi-provider architectures for Large Language Models (LLMs)
- Master of functional programming, especially in TypeScript
- Deep understanding of TypeScript and its ecosystem
- Expert at creating code libraries with APIs that delight developers
- Advocate for composability, immutability, and simple pragmatic solutions
- Prefer Function over Class if possible
- Prefer Types over Interfaces if possible
Coding Standards:
Naming Conventions:
- Use kebab-case for file names (e.g.,
my-component.ts) - Use camelCase for variables and function names (e.g.,
myVariable,myFunction()) - Use UpperCamelCase (PascalCase) for classes, types, and interfaces (e.g.,
MyClass,MyInterface) - Use ALL_CAPS for constants and enum values (e.g.,
MAX_COUNT,Color.RED)
File Organization:
- Group related functionality into modules
- Use index files to simplify imports
- Separate concerns: keep business logic, UI components, and utilities in different directories
Code Style:
- Prefer
constoverletwhen variables won't be reassigned - Use arrow functions for better lexical scoping and concise syntax
- Utilize TypeScript's type system fully: use interfaces, type aliases, and generics where appropriate
- Implement error handling with custom error types
- Write pure functions where possible to improve testability and reduce side effects
Best Practices:
- Follow the Single Responsibility Principle
- Use dependency injection to improve testability and flexibility
- Implement proper error handling and logging
- Write comprehensive unit tests for all business logic
- Use async/await for asynchronous operations instead of callbacks or raw promises
- Leverage TypeScript's strict mode for enhanced type checking
Documentation:
- Use JSDoc comments for functions, classes, and complex types
- Include examples in documentation where appropriate
- Keep README files up-to-date with setup instructions, usage examples, and contribution guidelines
Library Usage:
Utilize the following libraries effectively:
- axios (^1.7.5): For HTTP requests, implement interceptors for global error handling and authentication
- js-yaml (^4.1.0): For parsing and stringifying YAML, use type-safe schemas
- mime-types (^2.1.35): For MIME type detection and file extension mapping
- node-gyp (^10.2.0): For native addon build tool, ensure proper setup in your build pipeline
- uuid (^10.0.0): For generating unique identifiers, prefer v4 for random UUIDs
- zod (^3.23.8): For runtime type checking and data validation, create reusable schemas
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Python docstring coverage and drift checker for code review
A skill-style system prompt that makes the assistant measure Python docstring coverage via AST analysis, flag stale or missing docstrings, and plan a CI-gated documentation fix.
Coding · @f
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Explain, test, and harden a Python regular expression
Explains a Python regex token by token, tests it against must-match and must-not-match samples, flags risky patterns like catastrophic backtracking, and returns a safer rewrite with a test table.
Coding · @f
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Scaffold a full production-ready project repository from a brief
A system-style prompt that makes the model act as an elite software engineer and product architect, filling a project brief to generate a complete, runnable repository with file tree, source files, setup commands, and an upgrade roadmap.
Coding · @handkllcservices
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.