Coding & Developmentโจ๏ธcursor๐universal
Cursor Rules - Enterprise Backend Engineering Suite
> A production-ready, extensible rule system for Cursor AI that transforms your coding assistant into a Senior Principal Backend Engineer with 20+ years of enterprise experience.
Quick Start
Install this Skill
npx skills add GoranErhartic/cursor-development-rules# Cursor Rules - Enterprise Backend Engineering Suite
[](https://ko-fi.com/goranlegenda)
[](LICENSE)
[](https://github.com/GoranErhartic/cursor-rules/graphs/commit-activity)
> A production-ready, extensible rule system for Cursor AI that transforms your coding assistant into a Senior Principal Backend Engineer with 20+ years of enterprise experience.
## ๐ฏ What is This?
This repository contains a comprehensive, language-agnostic rule system for [Cursor AI](https://cursor.sh/) that enforces:
- โ
**Test-Driven Development (TDD)** workflows
- โ
**Clean Architecture** and SOLID principles
- โ
**Enterprise security** best practices
- โ
**Production-grade** error handling and logging
- โ
**CQRS** and Domain-Driven Design patterns
- โ
**Multi-language support** (C#/.NET, Java/Spring Boot, and more)
## ๐ Quick Start
### 1. Clone the Repository
```bash
git clone https://github.com/GoranErhartic/cursor-rules.git
cd cursor-rules
```
### 2. Install to Your Project
#### Option A: Automated Installation (Recommended)
**macOS / Linux:**
```bash
./install.sh /path/to/your/project
```
**Windows PowerShell:**
```powershell
.\install.ps1 -TargetPath "C:\Path\To\Your\Project"
```
The installer will:
- โ
Automatically backup existing rules (if any)
- โ
Copy all rules to your project
- โ
Show clear success/error messages
#### Option B: Manual Installation
Copy the `.cursor` folder to the root of your project:
```bash
# macOS / Linux
cp -r .cursor /path/to/your/project/
# Windows PowerShell
Copy-Item -Path .cursor -Destination C:\Path\To\Your\Project\ -Recurse
```
### 3. Start Coding
Open your project in Cursor, and the AI will automatically:
- Act as a Senior Principal Backend Engineer
- Follow TDD workflows
- Apply language-specific best practices
- Enforce security and quality standards
## ๐ Structure
```
.cursor/rules/
โโโ patterns/ # Language-agnostic patterns & concepts
โ โโโ architecture.mdc # Clean Architecture, CQRS, DDD, SOLID
โ โโโ error-handling.mdc # Result pattern, RFC 7807
โ โโโ testing.mdc # TDD workflow, AAA pattern
โ โโโ security.mdc # Security principles
โ โโโ api-design.mdc # REST conventions
โ โโโ input-sanitization.mdc # Validation concepts
โ โโโ cqrs.mdc # Command/Query separation
โ
โโโ development/ # Development workflow
โ โโโ tdd-planning.mdc # Test planning requirements
โ โโโ code-implementation.mdc # Implementation workflow
โ
โโโ languages/ # Language-specific implementations
โโโ csharp/ # .NET / C# (14 files)
โโโ java/ # Java / Spring Boot (14 files)
โโโ _template/ # Template for adding new languages
โโโ README.md # Instructions for new languages
```
## ๐ Key Features
### ๐ค AI Persona
The AI agent operates as a **Senior Principal Backend Engineer** with:
- 20+ years of enterprise experience
- Deep knowledge of distributed systems
- High-availability production environment expertise
- Strong emphasis on asking clarifying questions (never assumes!)
### ๐งช Test-Driven Development (TDD)
Enforces a strict TDD workflow:
1. **RED** - Write a failing test
2. **GREEN** - Minimal code to pass
3. **REFACTOR** - Clean up while keeping tests green
### ๐๏ธ Architecture Patterns
Built-in support for:
- **Vertical Slice Architecture** - Organize by feature, not layer
- **Clean Architecture** - Domain, Application, Infrastructure, API
- **CQRS** - Command/Query separation
- **Domain-Driven Design** - Aggregates, Value Objects, Domain Events
### ๐ก๏ธ Security First
Comprehensive security guidance:
- Input validation and sanitization
- SQL injection, XSS, and path traversal prevention
- Secrets management (no hardcoded credentials)
- HTTPS, CORS, and security headers
- JWT and OAuth2 patterns
### ๐ Code Quality
Enforces modern language features and best practices:
- C# 14 / .NET 10 idioms
- Java 21 features (records, sealed classes, pattern matching)
- Nullable reference types
- Async/await patterns
- Structured logging
## ๐ Supported Languages
### C# / .NET
**14 comprehensive rule files** covering:
| Category | Files |
|----------|-------|
| **Core** | `code-quality`, `testing`, `error-handling`, `dependencies` |
| **Web** | `controllers`, `validation`, `input-sanitization` |
| **Data** | `ef-core` (Entity Framework Core) |
| **Infrastructure** | `logging` (Serilog), `resilience` (Polly), `messaging` (Rebus) |
| **Patterns** | `mediator` (CQRS), `auth` (JWT Bearer) |
| **Security** | `security`, `auth` |
**Technologies:**
- .NET 10, ASP.NET Core
- Entity Framework Core
- FluentValidation
- Serilog (structured logging)
- Polly (resilience patterns)
- Rebus (messaging)
-
... (truncated)Repository
18stars
2forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
๐คclaude๐universal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
๐universal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
โจgemini๐คclaude๐ฌgpt๐universal
524
34
View
misakanet-failure-memory
Coding & Development๐ A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
๐คclaudeโจ๏ธcursor๐universal
424
158
View