Prompt file imported from max-arshinov/masad (
.github/prompts/310-c4-container.prompt.md). Copyright stays with the author.
user --https-> urlShortener.api "Creates short link"
Add containers to the Structurizr model
Free account. Installing gives you the manifest plus copy-paste snippets.
See reviewsPrompt file imported from max-arshinov/masad (
.github/prompts/310-c4-container.prompt.md). Copyright stays with the author.
user --https-> urlShortener.api "Creates short link"
Copy one of these into your project. Installing also returns the manifest and these snippets.
<context>
When given a system description, identity the main technical decisions (technologies, frameworks, databases)
and define their interactions with users, each other, and other systems.
</context>
<inputs>
- ./docs/src/04_solution_strategy.adoc
- ./adrs/*.md
</inputs>
<instructions>
Edit `model.dsl`, add containers and relationships to the target `softwareSystem`.
</instructions>
<constraints>
- Prefer one of the following container "archetypes":
- webApp
- api
- datastore
- broker
- kafka
- mobile
- react
-cache
- NO components, or deployment nodes
- NO views or styling commands
- use !identifiers hierarchical: `softwareSystem.containerName` not `containerName` alone when outside the `softwareSystem` definition
</constraints>
<formatting>
- Elements (`container` and the archetypes listed above) = singular nouns.
- Relationships = verb phrases ("Creates order", "Uploads file to").
- Use quoted names and short descriptions (≤15 words).
- One entity per line.
- ALWAYS use `lowerCamelCase` for variable names.
- Output order: `elements` then `relationships`.
</formatting>
<files>
- Edit `model.dsl`, don't create or modify other files.
<files>
<example>
urlShortener = softwareSystem "URL Shortener" "Generates short URLs and redirects." {
db = datastore "Database" "Stores URL mappings." "PostgreSQL"
cache = cache "Web Application" "Allows users to create short URLs." "Redis"
api = api "API" "Handles URL shortening and redirection." "Node.js"
api --sdk-> cache "Reads from and writes to"
api --sdk-> db "Reads from and writes to"
}
user --https-> urlShortener.api "Creates short link"
</example>
<validation>
- [] Verify all variable names use lowerCamelCase
- [] Ensure relationship syntax uses `--protocol->` format
- [] Check that descriptions are ≤15 words
</validation>The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.
{
"prompt": "<context>\nWhen given a system description, identity the main technical decisions (technologies, frameworks, databases) \nand define their interactions with users, each other, and other systems.\n</context>\n\n<inputs>\n- ./docs/src/04_solution_strategy.adoc\n- ./adrs/*.md\n</inputs>\n\n<instructions>\nEdit `model.dsl`, add containers and relationships to the target `softwareSystem`.\n</instructions>\n\n<constraints>\n- Prefer one of the following container \"archetypes\":\n - webApp\n - api\n - datastore\n - broker\n - kafka\n - mobile\n - react\n -cache\n- NO components, or deployment nodes\n- NO views or styling commands\n- use !identifiers hierarchical: `softwareSystem.containerName` not `containerName` alone when outside the `softwareSystem` definition\n</constraints>\n\n<formatting>\n- Elements (`container` and the archetypes listed above) = singular nouns.\n- Relationships = verb phrases (\"Creates order\", \"Uploads file to\").\n- Use quoted names and short descriptions (≤15 words).\n- One entity per line.\n- ALWAYS use `lowerCamelCase` for variable names.\n- Output order: `elements` then `relationships`.\n</formatting>\n\n<files>\n- Edit `model.dsl`, don't create or modify other files.\n<files>\n\n<example>\nurlShortener = softwareSystem \"URL Shortener\" \"Generates short URLs and redirects.\" {\n db = datastore \"Database\" \"Stores URL mappings.\" \"PostgreSQL\"\n cache = cache \"Web Application\" \"Allows users to create short URLs.\" \"Redis\"\n api = api \"API\" \"Handles URL shortening and redirection.\" \"Node.js\"\n api --sdk-> cache \"Reads from and writes to\"\n api --sdk-> db \"Reads from and writes to\"\n}\n\nuser --https-> urlShortener.api \"Creates short link\"\n</example>\n\n<validation>\n- [] Verify all variable names use lowerCamelCase\n- [] Ensure relationship syntax uses `--protocol->` format\n- [] Check that descriptions are ≤15 words\n</validation>",
"variables": [],
"notes": "Add containers to the Structurizr model Mode: agent.",
"metadata": {
"source": {
"provider": "github-prompts",
"repository": "https://github.com/max-arshinov/masad",
"path": ".github/prompts/310-c4-container.prompt.md",
"ref": "6088e6e69c789b18df8311d48f1af42ef607bc06",
"url": "https://github.com/max-arshinov/masad/blob/6088e6e69c789b18df8311d48f1af42ef607bc06/.github/prompts/310-c4-container.prompt.md",
"key": "max-arshinov/masad/.github/prompts/310-c4-container.prompt.md"
}
}
}Fetch it by URL: GET /api/v1/registry/max-arshinov-masad-310-c4-container-prompt/manifest?version=1.0.0
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.