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:
{TECH_STACK}
- Architecture Pattern:
{ARCHITECTURE_PATTERN}
- Development Phase:
{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โ
{
"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