.cursorrules Angular Novo Elements

Code Refactoring Tool

AI-powered analyzer that detects code smells (long methods, duplicate code) and suggests structural improvements using DRY/KISS principles. Implements Boy-Scout Rule through automatic technical debt reduction during edits

Unit Test Generator

Automatically creates Angular component tests covering edge cases by analyzing existing code patterns and Novo Elements integration Generates Jest/Cypress templates with 90%+ coverage targets.

Real-Time Code Review

IDE-integrated system that flags YAGNI violations and complex logic during coding. Uses Curly’s Law to enforce single-responsibility components.

Angular Component Analyzer

Scans standalone components for Novo Elements compatibility, lifecycle hooks optimization, and change detection strategies. Provides migration path suggestions.

Code Maintenance Dashboard

Tracks metrics like cyclomatic complexity (target <10), duplication percentage (<3%), and cleanliness scores. Visualizes technical debt hotspots via SonarQube integration.

Project Structure Optimizer

AI-driven directory organizer for Angular projects using Novo Elements. Enforces feature-based architecture with automatic module boundary checks.

Automated Documentation

Generates living documentation explaining component interactions and data flows. Links Angular templates to TypeScript logic using AI analysis.

Debugging Assistant

AI-powered error diagnosis with stack trace analysis and fix suggestions. Creates reproducible test cases for intermittent failures.

Code Quality Checker

Real-time linter enforcing style rules (PascalCase components, async pipe usage) and library version checks. Integrates with CI/CD pipelines.

Optimization Detector

Identifies premature optimizations (over-memoization, redundant re-renders) and recommends strategic performance investments.

Overview of .cursorrules prompt

The .cursorrules file outlines a set of coding standards and principles to guide developers in creating optimal, production-ready code. It emphasizes preserving existing code structures, verifying changes, and delivering concise solutions. Key coding principles such as DRY (Don’t Repeat Yourself), KISS (Keep It Simple Stupid), and YAGNI (You Aren’t Gonna Need It) are highlighted to maintain code quality and avoid unnecessary complexity. It also includes specific rules for debugging, testing, and maintaining project structure, while integrating Angular with standalone components and Novo Elements. The file aims for thorough testing, clear documentation, and minimal diffs in code changes to meet specified project requirements efficiently.

Updated: March 14, 2025