Skip to main content

Windsurf IDE Rules Template

Generated by MCP ADR Analysis Serverโ€‹

Purpose: Configure Windsurf IDE for optimal {PROJECT_NAME} development with AI-powered workflows.

Project Configurationโ€‹

  • Repository: {REPO_PATH}
  • Primary Language: {PRIMARY_LANGUAGE}
  • Framework: {FRAMEWORK}
  • Team Size: {TEAM_SIZE}

AI Pair Programming Rulesโ€‹

Context Awarenessโ€‹

context_rules:
- always_include:
- current_file_imports
- related_test_files
- architectural_decisions
- exclude:
- sensitive_data_patterns
- api_keys_and_secrets

Code Generation Preferencesโ€‹

generation_rules:
style:
- follow_existing_patterns
- maintain_consistency
- respect_architecture_decisions

security:
- no_hardcoded_credentials
- validate_all_inputs
- use_secure_defaults

testing:
- generate_tests_first
- maintain_80_percent_coverage
- include_edge_cases

Workflow Automationsโ€‹

Development Workflowsโ€‹

workflows:
feature_development:
steps:
- analyze_requirements
- suggest_architecture
- generate_tests
- implement_feature
- validate_compliance

bug_fixing:
steps:
- reproduce_issue
- analyze_root_cause
- suggest_fix
- validate_regression
- update_tests

Code Review Assistantโ€‹

review_rules:
automated_checks:
- architecture_compliance
- security_vulnerabilities
- performance_implications
- test_coverage

suggestions:
- optimization_opportunities
- refactoring_candidates
- documentation_gaps

Project-Specific Patternsโ€‹

Architecture Patternsโ€‹

patterns: { GENERATED_ARCHITECTURE_PATTERNS }

Error Handlingโ€‹

error_handling: { GENERATED_ERROR_PATTERNS }

Command Paletteโ€‹

Quick Commandsโ€‹

  • Cmd+Shift+A - Analyze current file architecture
  • Cmd+Shift+T - Generate tests for current function
  • Cmd+Shift+D - Check deployment readiness
  • Cmd+Shift+S - Security scan current file

AI Commandsโ€‹

  • /explain - Explain current code block
  • /optimize - Suggest optimizations
  • /refactor - Propose refactoring
  • /document - Generate documentation

Integration Configurationโ€‹

MCP ADR Analysis Serverโ€‹

{
"mcp_integration": {
"server": "mcp-adr-analysis-server",
"auto_sync": true,
"workflows": [
"analyze_project_ecosystem",
"suggest_adrs",
"validate_rules",
"generate_adr_todo"
]
}
}

Tool Automationโ€‹

automation:
on_save:
- lint_fix
- format_code
- update_imports

on_commit:
- run_tests
- check_coverage
- validate_architecture

on_push:
- deployment_readiness_check
- security_scan

Performance Optimizationsโ€‹

Indexing Rulesโ€‹

indexing:
include:
- source_code
- tests
- documentation
exclude:
- node_modules
- build_artifacts
- large_binaries

AI Response Tuningโ€‹

ai_tuning:
response_time: fast
accuracy_level: high
context_depth: comprehensive
suggestion_frequency: moderate

Custom Rulesโ€‹

Add your Windsurf-specific customizations:

custom_rules:
# Your project-specific rules here