General Definition
- Role: Senior Software Architect.
- Objective: Review, design, and plan software systems for high maintainability, scalability, and security.
- Responsibilities:
- Architecture Design: Create system architectures, database schemas, and API designs based on project requirements.
- Best Practices: Enforce clean architecture principles, SOLID principles, and design patterns.
- Analysis: Analyze codebases to identify technical debt, bottlenecks, and security vulnerabilities (treating them as if a junior developer wrote the code).
- Diagramming: Generate Mermaid.js diagrams to visualize architectural changes, database relationships, and component interactions.
- Documentation: Produce clear technical documentation and decision logs (ADRs).
- Interaction Guidelines:
- Ask First: Before offering a solution, ask clarifying questions about requirements and constraints.
- Justify Decisions: Explain the trade-offs of the proposed architecture.
- Iterative Review: Review code against a rubric (Clarity, Security, Performance) and provide actionable feedback.
- Tone: Professional, analytical, and objective.
The “Architect Planner” (For Feature Planning)
You are the Principal Architect. Based on the requirement , create a technical design document. Include a database schema (in Mermaid), an API contract, and a step-by-step implementation plan for the developer agent, identifying potential bottlenecks or security risks.
The “Code Reviewer” (For Quality Assurance)
Act as a security and performance expert. Review this code: .
1. Identify critical security vulnerabilities.
2. Find areas for optimization (uncalled code, performance bottlenecks).
3. Propose a refined structure using SOLID principles
Top 100 Prompts for Architect Best Use of GitHub Copilot
1. System Design & Architecture
- Design a scalable architecture for a multi-tenant SaaS application handling thousands of users.
- Generate a high-level architecture for an event-driven microservices system using Kafka.
- Compare monolith vs microservices for this use case: [describe system].
- Design a fault-tolerant architecture for a payment processing system.
- Create a CQRS - Event Sourcing architecture for an order management system.
- Design a globally distributed system with low latency architecture.
- Suggest an architecture system for legacy modernization.
- Design a highly resilient system for regional cloud outages.
2. Cloud Architecture
- Design AWS architecture for a highly available SaaS application.
- Generate Terraform for a VPC with public/private subnets. Suggest cost-optimized cloud design for variable traffic.
- Design serverless architecture for image processing pipeline. Compare serverless vs containers for image processing.
- Generate Kubernetes manifests for multi-region clusters.
- Propose cloud migration strategy for auto-scaling patterns.
- Design infrastructure diagram for Load Balancer.
- Redesign architecture to optimize for cost.
- Design automated deployment pipeline.
- Design blue-green deployment pipeline.
3. Microservices & APIs
- Design API versioning strategy for backward compatibility. Generate REST API contract for frontend.
- Generate REST vs GraphQL for this scenario. Compare service-to-service communication strategy.
- Design microservices architecture resilience & mesh.
- Compare API Gateway vs circuit breaker pattern.
- Generate OpenAPI spec for backend.
- Propose authentication networking strategy.
- Design API rate limiting strategy.
- Create auto-scaling strategy for microservices.
- Design event-driven communication.
- Design idempotent APIs for payments.
4. Performance & Scalability
- Identify bottlenecks in this design: [description].
- Design horizontal scaling strategy.
- Generate load balancing approach.
- Design cache architecture strategy.
- Design websocket strategy for real-time updates.
- Design write-through caching strategy for DB.
- Generate performance testing requirements.
5. Reliability & Resilience
- Design failure handling strategy.
- Generate circuit breaker implementation.
- Design retry and timeout logic for services.
- Design backpressure handling strategy.
- Design disaster recovery plan.
- Determine requirements for high availability.
- Design chaos engineering experiments.
6. Data & Storage
- Design database schema for [domain model].
- Generate SQL vs NoSQL for this scenario.
- Compare SQL vs NoSQL for high-performance apps.
- Design indexing strategy for tables.
- Design data partitioning strategy.
- Create data migration plan for legacy systems.
- Design database replication strategy.
7. Security & Compliance (labeled as Performance & Scalability in image)
- Design authentication & authorization architecture.
- Compare OAuth vs JWT for this app.
- Design security hardening strategy.
- Design encryption management requirements.
- Design secure session management strategy.
- Design data masking strategy.
8. DevOps & CI/CD
- Generate CI/CD pipeline for microservices.
- Compare Git branching strategy.
- Generate a release strategy.
- Design monitoring and logging architecture.
- Design observability strategy.
- Generate error management strategy.
9. Code Quality & Patterns
- Refactor this code for SOLID principles.
- Apply design patterns to this code.
- Change direct architecture dependencies.
- Improve maintainability for this module.
- Design clean code refactoring.
- Optimize performance for this module.