К основному содержанию
промпт

create_design_document — промпт для Claude: дизайн-документ по C4

Собирает подробный дизайн-документ системы по модели C4: бизнес-контекст, безопасность, диаграммы и таблицы элементов.

Установить в Claude Code · Вручную: положить файлы Все способы и платформы ↓
.claude/commands/create_design_document.md
Открыть на GitHub

Что делает create_design_document

Промпт разворачивается в полноценный документ по вашему описанию идеи или системы. Сначала идёт раздел BUSINESS POSTURE: какие цели решает система и какие бизнес-риски нужно закрыть. Следом SECURITY POSTURE — существующие контроли и принятые риски, затем рекомендованные контроли и требования по безопасности.

В разделе DESIGN три подраздела по модели C4: CONTEXT, CONTAINER и DEPLOYMENT. В каждом — диаграмма в формате mermaid и таблица с колонками Name, Type, Description, Responsibilities и Security controls. Замыкают документ RISK ASSESSMENT с вопросами о защищаемых процессах и данных и раздел QUESTIONS & ASSUMPTIONS.

Вывод — только валидный Markdown, без жирного и курсива. Промпт жёстко задаёт структуру, так что на выходе не будет вольных отступлений от схемы. Если нужен документ под внутренний шаблон компании, придётся править сам файл промпта, потому что порядок разделов зашит в шаги.

Какие задачи решает

  • описать систему по модели C4 с контекстной диаграммой
  • зафиксировать бизнес-риски и цели до начала разработки
  • перечислить существующие и рекомендованные контроли безопасности
  • собрать таблицы элементов контейнера и развёртывания
  • выписать открытые вопросы и допущения по проекту

Примеры запросов агенту

  • Сделай дизайн-документ по C4 для сервиса приёма платежей
  • Опиши систему доставки уведомлений: бизнес-контекст, безопасность, диаграммы
  • Построй дизайн-документ для внутреннего API с разделом RISK ASSESSMENT

Как установить create_design_document

Вручную: положить файлы

.claude/commands/create_design_document.md

Вопросы о create_design_document

Как установить create_design_document в Claude?

Положите файл промпта в проект по пути .claude/commands/create_design_document.md — он подхватится как слэш-команда.

Что делает create_design_document?

По описанию идеи или системы пишет дизайн-документ: бизнес-контекст, безопасность, разделы C4 с диаграммами mermaid и таблицами, оценку рисков и список допущений.

Чем этот промпт отличается от обычной просьбы описать архитектуру?

Он задаёт фиксированный порядок разделов и требует таблицы с колонкой Security controls для каждого элемента диаграммы. Ответ приходит готовым Markdown без выделений жирным и курсивом.

Исходный текст

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

Похожие промпты

Все промпты по теме «Тексты и документация» →
Open Source Release Checklist Builder (YAML) f Промпт превращает план релиза open-source проекта в YAML-чеклист с версиями, тестами, артефактами, безопасностью и каналами анонса. GP ChatGPT ★ 174 676звёзд репо Fix LaTeX dollars [email protected] Промпт разбирает все знаки $ в Markdown и экранирует только валютные, не трогая формулы и код. Пригодится, когда сборка сыплет предупреждениями. GP ChatGPT ★ 174 676звёзд репо Git Repository Analysis and Knowledge Base Construction oasiszeng Промпт переводит модель в режим аналитика репозиториев GitHub. Ассистент изучает коммиты и собирает базу знаний для новичков. GP ChatGPT ★ 174 676звёзд репо ⚙️ PromptForge senoldak Промпт, который разбирает ваш промпт по шагам: находит двусмысленности, переписывает точнее и проверяет на сбои. GP ChatGPT ★ 174 676звёзд репо DOE Framework - Directions Template [email protected] Промпт превращает модель в архитектора регламентов DOE Framework. Он создаёт структуру рабочих инструкций, целей и стандартов качества для проекта. GP ChatGPT ★ 174 676звёзд репо Small Functional Analyst mode bortch Промпт включает режим системного аналитика: агент сначала пересказывает требования и неизвестные, потом работает по фазам и не рисует схемы без разрешения. GP ChatGPT ★ 174 676звёзд репо

Из того же набора26

Весь набор →
summarize_git_changes Промпт превращает описание обновлений проекта за последние 7 дней в короткий Markdown-отчёт. Пригодится, когда нужно выделить главные изменения и подать их с энтузиазмом. ★ 44 450звёзд репо summarize_git_diff Промпт читает git diff и выдаёт короткое сообщение коммита в стиле conventional commits плюс список изменений по пунктам. ★ 44 450звёзд репо create_git_diff_commit Генерирует команды git add и сообщения коммитов по diff репозитория в формате Conventional Commits. ★ 44 450звёзд репо refine_design_document Уточняет документ архитектуры по замечаниям ревью и возвращает обновлённую версию в Markdown. Пригодится для доработки проектных решений. ★ 44 450звёзд репо create_coding_project Промпт превращает сырую идею приложения в каркас проекта: генерирует структуру каталогов и стартовый код со скриптом развёртывания. ★ 44 450звёзд репо create_coding_feature Промпт создаёт изменения кода по спецификации проекта и возвращает операции с файлами в заданном JSON-формате. Подходит для задач, где важны безопасность и границы проекта. ★ 44 450звёзд репо coding_master Промпт из Fabric, который разбирает язык программирования или концепцию так, будто объясняет её новичку, и выдаёт ответ строго в Markdown. ★ 44 450звёзд репо explain_code Разбирает исходный код, логи утилит безопасности или конфигурационные файлы и отвечает на вопросы к ним без лишних примечаний. ★ 44 450звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой