P

GitHub Copilot Prompt to Create a Software Architecture

GitHub Copilot, the AI development assistant integrated into IDEs, is a valuable ally for designing robust software architectures. Rather than starting from scratch, you can use Copilot Chat to generate architecture proposals tailored to your technical context: pattern selection, module breakdown, interface definition, and data flows. The tool particularly excels when given clear constraints (tech stack, volume, team size) as it leverages millions of open-source projects to suggest proven structures. Whether you're designing a modular monolith, microservices architecture, or event-driven system, a well-structured prompt lets you obtain a complete architectural skeleton with diagrams, file trees, and technical justifications. This guide provides optimized prompts to turn Copilot into a genuine software architect capable of producing architecture documents ready for immediate use by your development team.

The prompt

GitHub Copilot

Act as a senior software architect. I'm developing a [TYPE OF APPLICATION, e.g., SaaS project management platform] with the following constraints:

  • Tech stack: [e.g., TypeScript, Node.js, PostgreSQL, Redis]
  • Target users: [e.g., 10,000 concurrent users]
  • Team: [e.g., 4 fullstack developers]
  • Constraints: [e.g., real-time, multi-tenant, GDPR compliance]

Generate a complete architecture including:

  1. Recommended architectural pattern with justification (modular monolith, microservices, hexagonal, etc.)
  2. Module/service breakdown with responsibilities
  3. Project folder tree
  4. Main interfaces between modules (API contracts)
  5. Data flow for the 3 main use cases
  6. Technical choices for each layer (transport, persistence, cache, messaging)
  7. Deployment and scaling strategy
  8. A Mermaid diagram of the overall architecture

For each decision, explain the tradeoff and why this option is preferable to alternatives in this context.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Why it works

This prompt works because it imposes an expert role, provides precise technical context, and structures the output into concrete deliverables. Quantified constraints (users, team size) allow Copilot to calibrate architectural complexity. The explicit request for tradeoff justification forces comparative analysis rather than generic responses.

Expected result

You obtain a structured architecture document including a Mermaid diagram, a ready-to-scaffold file tree, and technical justifications for each choice. The result includes module interfaces, data flows for main use cases, and a deployment strategy adapted to your volume and team size.

Variants by level

FAQ

Can GitHub Copilot really replace a human software architect?
No, Copilot cannot replace a human architect but significantly accelerates the design process. It excels at generating initial proposals, exploring alternative patterns, and producing structured documentation. The human architect remains essential to validate choices based on business context, team skills, and organizational constraints that cannot always be expressed in a prompt.
How can I get usable architecture diagrams from Copilot?
Explicitly request diagrams in Mermaid or PlantUML syntax in your prompt. Copilot generates diagram code that you can visualize directly in VS Code with the Mermaid extension, or in tools like draw.io. For C4 diagrams, specify the desired level (Context, Container, Component) and Copilot will structure the output accordingly. You can then iterate by asking for zoom-ins on specific components.
How can I iterate on the architecture proposed by Copilot to refine it?
Proceed through successive refinements in the chat. After the first generation, challenge the choices: 'Why this pattern instead of X?', 'How does this architecture handle [specific scenario]?', 'Refactor module Y using hexagonal pattern'. You can also add forgotten constraints: 'Add multi-tenant management to this architecture' or 'Adapt for a team that will grow from 4 to 15 developers in 6 months'. Each iteration refines the proposal without starting from scratch.

Related prompts

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More prompts to explore

GitHub Copilot Prompt to Create a Training Program

GitHub Copilot, GitHub's AI-powered coding assistant, is not limited to code generation. Thanks to its contextual understanding capabilities...

GitHub Copilot Prompt to Create a UI Design

GitHub Copilot, GitHub's AI-powered coding assistant, has become an indispensable tool for developers looking to speed up their user interface creation workflow.

GitHub Copilot Prompt to Create an FAQ

GitHub Copilot is an AI-powered development assistant that excels at generating structured content, including FAQ pages. Creating a relevant and well-organized FAQ is essential to improve user experience, reduce customer support load, and optimize your site's natural referencing. With GitHub Copilot, you can significantly speed up this process by generating contextualized questions and answers from your code, existing documentation, or a simple brief. The tool analyzes your project context to suggest questions your users are likely to ask, while formulating clear and precise answers. Whether you are building an FAQ for a SaaS application, an API, an online store, or a showcase site, Copilot adapts to the tone and business domain. This AI-assisted approach allows you to quickly cover the most frequent inquiries without missing important topics, while maintaining editorial consistency across all your answers. The prompt below is optimized to get the most out of GitHub Copilot in this specific context.

GitHub Copilot Prompt to Create YouTube Thumbnails

GitHub Copilot, GitHub's AI-powered coding assistant, can be a formidable ally for generating striking YouTube thumbnails directly from your code editor.

GitHub Copilot Prompt to Generate Brand Names

GitHub Copilot, GitHub's AI-powered code assistant, is not limited to code generation. Thanks to its advanced natural language understanding...

GitHub Copilot Prompt to Generate JavaScript Code

GitHub Copilot, the AI-powered programming assistant developed by GitHub and OpenAI, has transformed the way developers write JavaScript code.

Go further

Get new prompts every week

Join our newsletter.