Base Cursor Rule
A starter Cursor rule for consistent agent behavior — focused diffs, match existing conventions, and no drive-by refactors.
#rules #cursor #conventions
Cursor
DetailsKeeps the agent honest about types — no `any`, no non-null assertions to silence errors, and explicit return types on exported functions.
#rules #typescript #types #conventions
Snippet
---
description: TypeScript strictness conventions
alwaysApply: true
---
- Never use `any` — prefer `unknown` and narrow it
- Do not use `!` non-null assertions to silence the type checker
- Add explicit return types to exported functions
- Model invalid states out of existence with discriminated unions
- Validate external data at the boundary with a schema (zod)
Default config location for each supported agent.
.cursor/rules.claude/CLAUDE.md.windsurf/rules.clinerulesAGENTS.md.github/copilot-instructions.mdA starter Cursor rule for consistent agent behavior — focused diffs, match existing conventions, and no drive-by refactors.
#rules #cursor #conventions
Cursor
DetailsGuides the agent toward modern React — server components by default, minimal client state, stable keys, and effects only for true side effects.
#rules #react #frontend +1
Cursor, Claude Code, Windsurf +3
Details