Skip to content
Engineering
AgentTaste authored@AgentTastev1.4.0Free

Cursor Rules Strict TypeScript Architect

Zero any types, atomic component modularity, and strict server-boundary validation.

Read SKILL.md

Workflow

Prevents Cursor from taking lazy shortcuts: forbids type assertions (as any), enforces readonly properties on domain models, and checks for unused imports.

Use when

  • Enforce TypeScript and server-boundary rules across a project.

Required inputs

  • TypeScript repository
  • Framework and validation requirements

Expected outputs

  • Reusable components and explicit input validation

Prerequisites

  • Access to the compiler and relevant project checks.

Installation

Run this command in your project after reviewing the instructions and access terms. Install complete upstream directories to keep referenced rules and scripts.

curl --fail --show-error --location --create-dirs 'https://agenttaste.dev/skills/cursor-rules-architect/SKILL.md' --output '.claude/skills/cursor-rules-architect/SKILL.md'

Project file: .claude/skills/cursor-rules-architect/SKILL.md

Read the setup guide

AgentTaste instructions

---
name: cursor-rules-architect
description: "Prevents Cursor from taking lazy shortcuts: forbids type assertions (as any), enforces readonly properties on domain models, and checks for unused imports."
---

# SKILL: Cursor Rules Strict TypeScript Architect
## TypeScript Governance
1. The type "any" is strictly prohibited. If a type is uncertain, use unknown and narrow it via type guards or Zod schemas.
2. Exported functions must declare explicit return types.
3. Every component must be placed in its own dedicated file under 200 lines of code.
4. Server functions must never import browser-only dependencies.
Download SKILL.md

Example task

Starting point

  • Cursor generated const data: any = res.data without runtime type validation.

Intended result

  • Fully typed schema with Zod parse, explicit return types on every function, and strict immutability.

Related skills

Browse all skills →
Claude Code Clean Architecture
AgentTastePro

Claude Code Clean Architecture

Enforce strict separation between database, business logic, and UI in autonomous sessions.

Claude Code · Codex · Antigravity

SKILL.md
React best practices
VercelPublic source

React best practices

Review React and Next.js code for rendering, data fetching and bundle performance.

Claude Code · Cursor · Codex · Antigravity

SKILL.mdSource ↗