~/agent-config
Browse
Rule

TypeScript Strict Rule

Keeps 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)

Where it installs

Default config location for each supported agent.

Best for

GeneralFrontendFullstackBackend

Related resources

Rule

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

Details
Rule

React Best Practices Rule

Guides 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