Cursor IDE Rules Template
Generated by MCP ADR Analysis Server
Purpose: Optimize Cursor IDE for {PROJECT_NAME} development using architectural patterns and project-specific rules.
Project Context
- Technology Stack:
- Architecture Pattern:
- Development Phase:
Code Completion Rules
Import Suggestions
# Prefer project patterns
- Suggest internal modules before external packages
- Follow established import ordering conventions
- Auto-complete import paths based on project structure
Code Patterns
# Architecture-specific patterns
{GENERATED_PATTERNS}
AI Assistant Configuration
Project-Specific Knowledge
# ADR-based context
{ADR_CONTEXT}
# Technology-specific guidance
{TECH_GUIDANCE}
Code Generation Rules
# Enforce architectural decisions
{ARCHITECTURAL_RULES}
# Security patterns
{SECURITY_RULES}
Linting & Formatting
Auto-fix Rules
# Project-specific linting
{LINT_RULES}
Code Style
# Formatting preferences
{STYLE_RULES}
Workflow Automations
Pre-commit Hooks
# Automated checks
{PRECOMMIT_RULES}
Test Generation
# TDD patterns
{TEST_PATTERNS}
Commands
Quick Actions
/generate-adr
- Create ADR from current context/validate-architecture
- Check compliance with rules/suggest-improvements
- Get optimization suggestions
Workflow Commands
/setup-project
- Initialize project with best practices/deployment-check
- Validate deployment readiness/security-scan
- Run security analysis
Integration Points
MCP Server Connection
json
{
"mcp_server": "mcp-adr-analysis-server",
"tools": [
"analyze_project_ecosystem",
"generate_adrs_from_prd",
"validate_rules",
"deployment_readiness"
]
}
Customization
Add your project-specific rules here:
# Custom rules based on your ADRs