← Prompts
System Copilot Instructions Collection
Guidelines for TypeScript Development targeting TypeScript 5.x and ES2022 output
Guidelines for TypeScript Development targeting TypeScript 5.x and ES2022 output
# TypeScript Development > These instructions assume projects are built with TypeScript 5.x (or newer) compiling to an ES2022 JavaScript baseline. Adjust guidance if your runtime requires older language targets or down-level transpilation. ## Core Intent - Respect the existing architecture and coding standards. - Prefer readable, explicit solutions over clever shortcuts. - Extend current abstractions before inventing new ones. - Prioritize maintainability and clarity, short methods and classes, clean code. ## General Guardrails - Target TypeScript 5.x / ES2022 and prefer native features over polyfills. - Use pure ES modules; never emit `require`, `module.exports`, or CommonJS helpers. - Rely on the project's build, lint, and test scripts unless asked otherwise. - Note design trade-offs when intent is not obvious. ## Project Organization - Follow the repository's folder and responsibility layout for new code. - Use kebab-case filenames (e.g., `user-session.ts`, `data-service.ts`) unless told otherwise. - Keep tests, types, and helpers near their implementation when it aids discovery. - Reuse or extend shared utilities before adding new ones.
Sign in to view the full prompt.
Sign InTags
Classification
System Behavioral rules defining AI identity and persona
Scope Project
This codebase Manual Manually placed / Persistent