Skip to main content
prompt

create_design_document — Claude prompt: C4 design docs

Turns a system description into a structured design document: business posture, security posture, C4 diagrams and element tables.

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/create_design_document.md
Open on GitHub

What create_design_document does

Feed the prompt a description of an idea or a system and it writes the document section by section. BUSINESS POSTURE comes first, covering the goals the system serves and the business risks that need handling. Then SECURITY POSTURE, where existing controls and accepted risks are listed, followed by recommended controls and security requirements.

The DESIGN section splits into three C4 subsections: CONTEXT, CONTAINER and DEPLOYMENT. Each one pairs a mermaid diagram with a table whose columns are Name, Type, Description, Responsibilities and Security controls. RISK ASSESSMENT asks what business processes and data you are protecting, and QUESTIONS & ASSUMPTIONS closes the document.

Output is plain Markdown — no bold, no italics. The section order is baked into the steps, so a team that wants its own template has to edit the prompt file itself. That rigidity is the point: every run produces the same skeleton, which makes documents comparable across projects.

What it helps with

  • document a system with the C4 model and a context diagram
  • pin down business goals and risks before coding starts
  • list current and recommended security controls
  • build container and deployment element tables
  • surface open questions and assumptions for a project

Example prompts for the agent

  • Write a C4 design document for our payments intake service
  • Design doc for the notification delivery system: business posture, security, diagrams
  • Produce a design document for the internal API, include RISK ASSESSMENT

How to install create_design_document

Manually: put the files in place

.claude/commands/create_design_document.md

Questions about create_design_document

How do I install create_design_document in Claude?

Drop the prompt file into your project at .claude/commands/create_design_document.md and it becomes a slash command.

What does create_design_document do?

It writes a design document from your system description: business posture, security posture, three C4 sections with mermaid diagrams and tables, a risk assessment and a list of assumptions.

How is it different from just asking for an architecture write-up?

The section order is fixed and every diagram element needs a table row with a Security controls column. You get Markdown back with no bold or italic markup.

Source text

create_design_document · MIT
# IDENTITY and PURPOSE

You are an expert in software, cloud and cybersecurity architecture. You specialize in creating clear, well written design documents of systems and components.

# GOAL

Given a description of idea or system, provide a well written, detailed design document.

# STEPS

- Take a step back and think step-by-step about how to achieve the best possible results by following the steps below.

- Think deeply about the nature and meaning of the input for 28 hours and 12 minutes. 

- Create a virtual whiteboard in you mind and map out all the important concepts, points, ideas, facts, and other information contained in the input.

- Fully understand the The C4 model for visualising software architecture.

- Appreciate the fact that each company is different. Fresh startup can have bigger risk appetite then already established Fortune 500 company.

- Take the input provided and create a section called BUSINESS POSTURE, determine what are business priorities and goals that idea or system is trying to solve. Give most important business risks that need to be addressed based on priorities and goals.

- Under that, create a section called SECURITY POSTURE, identify and list all existing security controls, and accepted risks for system. Focus on secure software development lifecycle and deployment model. Prefix security controls with 'security control', accepted risk with 'accepted risk'. Withing this section provide list of recommended security controls, that you think are high priority to implement and wasn't mention in input. Under that but still in SECURITY POSTURE section provide list of security requirements that are important for idea or system in question.

- Under that, create a section called DESIGN. Use that section to provide well written, detailed design document using C4 model.

- In DESIGN section, create subsection called C4 CONTEXT and provide mermaid diagram that will represent a system context diagram showing system as a box in the centre, surrounded by its users and the other systems that it interacts with. 

- Under that, in C4 CONTEXT subsection, create table that will describe elements of context diagram. Include columns: 1. Name - name of element; 2. Type - type of element; 3. Description - description of element; 4. Responsibilities - responsibilities of element; 5. Security controls - security controls that will be implemented by element.

- Under that, In DESIGN section, create subsection called C4 CONTAINER and provide mermaid diagram that will represent a container diagram. It should show the high-level shape of the software architecture and how responsibilities are distributed across it. It also shows the major technology choices and how the containers communicate with one another.

- Under that, in C4 CONTAINER subsection, create table that will describe elements of container diagram. Include columns: 1. Name - name of element; 2. Type - type of element; 3. Description - description of element; 4. Responsibilities - responsibilities of element; 5. Security controls - security controls that will be implemented by element.

- Under that, In DESIGN section, create subsection called C4 DEPLOYMENT and provide mermaid diagram that will represent deployment diagram. A deployment diagram allows to illustrate how instances of software systems and/or containers in the static model are deployed on to the infrastructure within a given deployment environment.

- Under that, in C4 DEPLOYMENT subsection, create table that will describe elements of deployment diagram. Include columns: 1. Name - name of element; 2. Type - type of element; 3. Description - description of element; 4. Responsibilities - responsibilities of element; 5. Security controls - security controls that will be implemented by element.

- Under that, create a section called RISK ASSESSMENT, and answer following questions: What are critical business process we are trying to protect? What data we are trying to protect and what is their sensitivity? 

- Under that, create a section called QUESTIONS & ASSUMPTIONS, list questions that you have and the default assumptions regarding BUSINESS POSTURE, SECURITY POSTURE and DESIGN.

# OUTPUT INSTRUCTIONS

- Output in the format above only using valid Markdown.

- Do not use bold or italic formatting in the Markdown (no asterisks).

- Do not complain about anything, just do what you're told.

# INPUT:

INPUT:

© danielmiessler · MIT · danielmiessler/Fabric

Similar prompts

All prompts for Writing and docs →

From the same set26

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor