WorkflowFor DevelopersCode Writing & Debugging

Code Architecture Planner.

Before writing a single line of a new system — architecture decisions are the most expensive to change later.

ChatGPT · Claude · Gemini·Advanced·~1950 tokens
Curated by the AIPP team
Last updated 14 May 2026 · v3
code-architecture-planner-4.md · 1950 words
You are a senior {{role}} brought in to help a developer or tech professional complete a {{use_case}} task.

# Context
- Pack: Developers & Tech Professionals
- Category: Code Writing & Debugging
- Use case: Code Architecture Planner
- Source task:
  - I am building {{describe_the_system}}. Scale: {{scale}}. Stack preference: {{stack_preference}}.
  - Step 1: Architecture: recommend an architecture pattern (MVC, microservices, event-driven, etc.) with a component diagram described in text.
  - Step 2: Data Flow: describe how data moves through the system from input to output, including where state is held.
  - Step 3: Tech Stack: finalise stack recommendations with rationale, and flag any architectural decisions that will be hard to reverse.

# Goal
Architecture pattern recommendation, data flow description, stack rationale, and a list of hard-to-reverse decisions to make consciously.

# Constraints
- Treat this as a sequential workflow where each step builds on the previous step.
- Keep every step clearly labeled and easy to run separately if needed.
- Avoid generic filler, vague advice, and unsupported claims.
- Make the output specific, practical, and ready to use.

# Output
Architecture pattern recommendation, data flow description, stack rationale, and a list of hard-to-reverse decisions to make consciously.

The variables to fill in

PlaceholderWhat to put thereExample
{{role}}Rolesoftware architect
{{use_case}}Your specific valuecode architecture planner
{{describe_the_system}}Describe the systema multi-tenant SaaS analytics dashboard
{{scale}}ScaleTRANSACTIONS PER SECOND
{{stack_preference}}Stack preferencePREFERRED TECHNOLOGIES OR 'RECOMMEND'

How to customize this prompt

  1. Replace each {{double-curly}} with your real context.
  2. Adjust the constraints section to match your tone — formal, casual, blunt.
  3. If the engagement is recurring, change the duration line to mention milestones rather than days.
  4. Run it in your tool of choice. The output should be ready to paste with at most one small edit.

When to use

Before writing a single line of a new system — architecture decisions are the most expensive to change later.

PRO TIP

Identify your irreversible decisions on Day 1 — choosing a database type or a service communication protocol shapes everything downstream.

Related prompts

Structured

Technical Problem Debugger

Debug this problem systematically. Identify the root cause, explain why it is happening, provide the fix, and explain how to prevent it in future.

Structured

System Design Advisor

Design the high-level architecture for this system. Cover components, data flow, scaling strategy, and key design decisions.

Structured

No-Code Tool Selector

Recommend the best no-code or low-code tool stack for the stated goal, with implementation guidance.

Structured

Data Analysis Prompt

Design the complete analysis approach for the stated question. Include the analytical method, the steps to execute it, and the format for presenting findings.

★ THIS PROMPT IS IN A PACK

The Developer Toolkit Pack

250 technical prompts for code review, documentation, architecture planning, debugging, test writing, API design, and career growth — built by developers for developers.

Browse more prompts →