Coding & Developmentβ¨οΈcursorπuniversal
Cursor Rules - Smart Development Assistant
> Advanced Cursor IDE rules system for intelligent code generation with context-aware routing and specialized workflows
Quick Start
Install this Skill
npx skills add fxbravo/Cursor_Rules# Cursor Rules - Smart Development Assistant
> **Advanced Cursor IDE rules system for intelligent code generation with context-aware routing and specialized workflows**
[](https://opensource.org/licenses/MIT)
[](https://cursor.com/)
[](https://docs.cursor.com/en/context/rules)
## π― Overview
This repository contains a production-ready Cursor rules system that transforms your AI-assisted development workflow. Unlike simple `.cursorrules` files, this system implements **intelligent context routing** with specialized rules for different development scenarios.
### Key Features
β
**Smart Classification**: Automatically detects request intent (bugfix, feature, cleanup, etc.)
β
**Context-Aware Routing**: Routes to specialized rules based on file patterns and user intent
β
**SOLID Principles Enforcement**: Built-in architectural constraints and validation
β
**Evidence-Based Decisions**: No assumptions, everything backed by measurable criteria
β
**Self-Healing Redirects**: Intelligent fallbacks when rules conflict
β
**Production Ready**: Used in real projects with proven results
## ποΈ Architecture
### BMAD-Inspired Modular Design
```
.cursor/rules/
βββ main-router.mdc # π― Smart classification & routing hub
βββ cleanup-rules.mdc # π§½ Technical debt reduction
βββ feature-rules.mdc # β¨ New functionality (SOLID-compliant)
βββ bugfix-rules.mdc # π οΈ Minimal error correction
βββ exploration-rules.mdc # π§ͺ POC development & validation
βββ migration-rules.mdc # π Technology migration strategies
βββ optimization-rules.mdc # β‘ Performance improvements
βββ compliance-rules.mdc # π Legal & security requirements
```
### How It Works
```mermaid
flowchart TD
A[π₯ User Request] --> B[π― Main Router]
B --> C{π§© Intent Classification}
C -->|High Confidence >80%| D[Direct Routing]
C -->|Medium 50-80%| E[Confirm with User]
C -->|Low <50%| F[Ask Clarification]
E --> G[User Confirmation]
F --> H[Targeted Questions]
G --> D
H --> D
D --> I{π Specialized Rules}
I -->|Priority 1| J1[π οΈ Bugfix Rules]
I -->|Priority 2| J2[π Compliance Rules]
I -->|Priority 3| J3[π§ͺ Exploration Rules]
I -->|Priority 4| J4[β‘ Optimization Rules]
I -->|Priority 5| J5[π Migration Rules]
I -->|Priority 6| J6[π§½ Cleanup Rules]
I -->|Default| J7[β¨ Feature Rules]
J1 --> K[π Smart Validation]
J2 --> K
J3 --> K
J4 --> K
J5 --> K
J6 --> K
J7 --> K
K --> L{π¨ Rule Violation?}
L -->|Yes| M[Intelligent Redirect]
L -->|No| N[Execute Specialized Workflow]
M --> I
N --> O[β
Success with Evidence]
```
## π Quick Start
### 1. Clone and Install
```bash
# Clone this repository
git clone https://github.com/fxbravo/Cursor_Rules.git
# Navigate to your project
cd your-project/
# Copy the rules structure
cp -r Cursor_Rules/.cursor .
# Verify installation
ls -la .cursor/rules/
```
### 2. Verify in Cursor
1. Open your project in Cursor IDE
2. Go to **Settings** β **General** β **Project Rules**
3. Confirm all rules appear with correct status:
- β
`main-router.mdc` - Always Applied
- π Other rules - Auto Attached/Agent Requested
### 3. Test the System
```
# Try a test request in Cursor
"I want to add a login feature to my app"
# Expected response:
π― **CATΓGORIE:** FEATURE - New functionality request - Confiance: 95%
Routing to @feature-rules.mdc for SOLID-compliant implementation...
```
## π Rule Categories & Priorities
### Hierarchical Classification (Priority Order)
1. **π οΈ BUGFIX** - Critical: Malfunction or existing error
2. **π COMPLIANCE** - Legal/audit/security requirements
3. **π§ͺ EXPLORATION** - POC development and technical validation
4. **β‘ OPTIMIZATION** - Performance improvements with evidence
5. **π MIGRATION** - Technology changes and upgrades
6. **π§½ CLEANUP** - Technical debt reduction
7. **β¨ FEATURE** - New functionality (default fallback)
### Smart Ambiguity Resolution
- **Multiple matches**: Choose highest priority + confirm
- **No clear match**: Offer 3 specific options
- **Context needed**: Ask targeted questions
## π Specialized Workflows
### π§½ Cleanup Rules
- **Mission**: Reduce technical debt without breaking functionality
- **Constraints**: Never create files, user approval for deletions
- **Success Metrics**: Unused imports removed, duplications merged, tests passing
### β¨ Feature Rules
- **Mission**: Add functionality while preserving architecture
- **Constraints**: Extend before create, maintain SOLID principles
- **Success Metrics**: Working feature, maximum reuse, zero duplication
### π οΈ Bugfix Rules
- **Mission**: Fix errors with minimal changes
- **Constraints**: Max 5 lines changed, n
... (truncated)Repository
3stars
0forks
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