Skip to main content

Software Architecture · Advanced

From Idea to Architecture, Then Claude Code

A nine-prompt workflow that fixes the scope before any code is written

Download PDF

PDF · 94 KB · 19 pages

The PDF is in Arabic. This page describes it in your language; the file itself is unchanged.

  • architecture
  • ai
  • claude code
  • prd
  • requirements
  • workflow
  • prompts
  • scope
  • production readiness

01About this document

About this document

Before the prompts there are five rules that stop an AI agent from wrecking the scope. Then the prompts run in a fixed order, each one producing a document the next one consumes, so architecture decisions are made and recorded before anything is implemented.

The implementation half is just as controlled: one phase at a time, an architecture and quality review between phases, a change-request prompt that adds work without breaking the project, and a production readiness gate. It ends with a checklist before handing a phase to the AI and an honest section on when you still need a real developer or architect.

Preview

The first page of the document, as it is.Open the PDF in a new tab

02What you will learn

What you will learn

  • Turn a vague idea into a PRD and a justified architecture before coding
  • Compare architecture options on trade-offs instead of accepting the first answer
  • Split the project into phases and run Claude Code one phase at a time
  • Handle change requests without scope creep
  • Gate a release on readiness rather than on the agent saying it is done

03What is inside

What is inside

  1. 01Five rules that stop AI from wrecking the scope
  2. 02Prompt: discovery interview
  3. 03Prompt: requirements / PRD
  4. 04Prompt: architecture options
  5. 05Prompt: an architecture document ready to export
  6. 06Prompt: splitting the project into phases
  7. 07Claude Code — project intake, no coding yet
  8. 08Executing one phase, then an architecture and quality review
  9. 09Change requests, and the production readiness gate
  10. 10A checklist before handing any phase to the AI
  11. 11When you still need a real developer or architect

04Who this is for

Who this is for

  • Developers building a whole project with an AI agent
  • Freelancers and technical leads who have to defend architecture decisions
  • Founders scoping a product before hiring

05Related resources

  • AI & Developer Tools

    3 Prompts to Start a Project with AI

    Three ready prompts, one each for ChatGPT, Claude Code and Codex, that force the same sequence on every project: understand the problem before choosing any technology, review the plan before executing, then build phase by phase — with a checklist of what must be settled before you say “start building”.

  • Software Architecture

    SOLID Principles — An Arabic Field Guide

    The five SOLID principles explained in plain Arabic with examples taken from real projects, including a Laravel case that separates payment logic from the payment provider — and a section on recognising when a codebase is actually asking for them.

  • Frontend Development

    Frontend Skills for Claude Code

    A short practical guide to installing two skills — Frontend Design from Anthropic and UI UX Pro Max — into Claude Code, verifying the install, and then running one master prompt at the start of any front-end project so the design work follows a fixed method instead of a new guess each time.