Cursor .mdc rules and architecture without technical debt
Ready-made .mdc rules for Cursor IDE: Feature-Sliced Design, Zod validation, protection against AI hallucinations and pure TypeScript in production.
TL;DR · Key Answer
Cursor .mdc files (Markdown with YAML frontmatter) set strict architectural boundaries for the AI agent: alwaysApply, globs by layer (shared/entities/features/widgets) and a ban on duplicating logic. This reduces the number of bugs during vibecoding by 3–4 times.
Checklist
- Add YAML frontmatter with alwaysApply: true for base rules and layer-specific globs.
- Limit the size of functions to 40-50 lines and prohibit circular imports between slices.
- Require Zod schema on every API route and tsc --noEmit check after every change.
- Fix the 50% context rule: start a new session when half the window is full.
Forum Discussions (vbcd4u.com)
Все обсуждения →✍️ Скиллы · ▲ 2
Подключение MCP-серверов к PostgreSQL, Prisma и Git в Cursor и Claude Desktop (mcp.json гайд)
🔄 Reverse Prompting · ▲ 1
Cursor .mdc правила для Feature-Sliced Design в Next.js 15: архитектура без спагетти-кода
🔥 Нейросети · ▲ 1
Cursor vs Windsurf vs Bolt.new vs Lovable в 2026: какой AI-инструмент выбрать под продакшн
🔥 Нейросети · ▲ 0
TypeScript strict в большом проекте: поэтапная миграция без остановки разработки
🔥 Нейросети · ▲ 0
Reverse prompting: как восстановить PRD и архитектуру по существующему фронтенду
🔥 Нейросети · ▲ 0
FSD в Next.js без циклических импортов: слои, public API и автоматическая проверка
Engineering Guides (MurdaSoft)
2026-11-17
B2B SaaS Engineering on Next.js 15: Multi-Tenancy via PostgreSQL RLS, Dual Kaspi QR & Stripe Billing Architecture
2026-11-16
Cursor .mdc Rules for Feature-Sliced Design in Next.js 15: Zero Spaghetti Code
2026-11-16
Connecting MCP Servers to PostgreSQL, Prisma & Git in Cursor and Claude Desktop
2026-11-16
Cursor vs Windsurf vs Bolt.new vs Lovable (2026): Production Engineering Comparison
FAQ
Where to save .mdc rules in the Cursor project?
To the .cursor/rules/ folder with the .mdc extension (for example, .cursor/rules/architecture.mdc). Cursor automatically connects them using the globs or alwaysApply field.
How is .mdc better than regular .cursorrules?
.mdc supports modularization by files and path masks (globs), so the context is not overloaded with unnecessary instructions.