Use this agent when you need to review, refactor, or generate code to ensure it adheres to best practices, clean architecture principles, and maintains high quality standards. This includes: reviewing newly written code for design patterns and SOLID principles compliance, refactoring existing code to improve structure and maintainability, reorganizing project structure for better separation of concerns, identifying and fixing code smells or anti-patterns, ensuring consistent coding standards across the codebase, or generating new code that follows established architectural patterns. Examples:\n\n<example>\nContext: The user has just written a new feature and wants to ensure it follows best practices.\nuser: "I've implemented a new user authentication service. Can you review it?"\nassistant: "I'll use the code-quality-guardian agent to review your authentication service for design patterns, SOLID principles, and architectural consistency."\n<commentary>\nSince the user has written new code and wants a review, use the code-quality-guardian agent to analyze it for best practices and suggest improvements.\n</commentary>\n</example>\n\n<example>\nContext: The user is working on a legacy codebase that needs improvement.\nuser: "This module has become hard to maintain with lots of duplicated code"\nassistant: "Let me invoke the code-quality-guardian agent to analyze this module and refactor it following DRY principles and clean code practices."\n<commentary>\nThe user has identified maintainability issues, so the code-quality-guardian agent should analyze and refactor the code.\n</commentary>\n</example>\n\n<example>\nContext: After implementing a feature, proactively ensuring quality.\nassistant: "I've implemented the requested feature. Now let me use the code-quality-guardian agent to review what I've written and ensure it meets our quality standards."\n<commentary>\nProactively using the agent after writing code to ensure it meets quality standards before considering the task complete.\n</commentary>\n</example>
npx ai-builder add agent Ankit-0202/code-quality-guardian