Architecture action recipe
Suggested prompt
Use the flowchart fixture and action files in examples/recipes/architecture/ to demonstrate presentation changes versus semantic edits. First inspect capabilities and explain which actions affect only the sidecar. Then propose the source-changing transformation separately, preserving unrelated source and validating each supported mutation through a fresh receipt. Do not confuse this flowchart recipe with architecture-beta.
Use the flowchart fixture and action files in examples/recipes/architecture/ to demonstrate presentation changes versus semantic edits. First inspect capabilities and explain which actions affect only the sidecar. Then propose the source-changing transformation separately, preserving unrelated source and validating each supported mutation through a fresh receipt. Do not confuse this flowchart recipe with architecture-beta. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
This recipe demonstrates the difference between presentation actions and semantic transformations using one small architecture flow.
Read the Mermaid source
flowchart LR
client[Client] --> gateway[API Gateway]
gateway --> auth{Authorized?}
auth -->|Yes| worker[Worker]
auth -->|No| denied[Access denied]
worker --> database[(Database)]
worker -.-> queue[Retry queue]
Preview the input
beautiflow server examples/recipes/architecture/architecture.mmd
Apply presentation actions
Suggested prompt
On a disposable copy of the flowchart in examples/recipes/architecture/, inspect the provided presentation action file and explain its effects before applying it through a fresh receipt. Change only supported sidecar presentation; preserve every source node, relationship and label. Render and compare against the original.
On a disposable copy of the flowchart in examples/recipes/architecture/, inspect the provided presentation action file and explain its effects before applying it through a fresh receipt. Change only supported sidecar presentation; preserve every source node, relationship and label. Render and compare against the original. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
layout-actions.json marks the primary flow, assigns the denied node an exception role, and places the retry queue relative to the database. It changes sidecar presentation state rather than Mermaid topology.
Inspect the result without writing:
beautiflow apply examples/recipes/architecture/architecture.mmd \
--actions examples/recipes/architecture/layout-actions.json \
--dry-run --json
Apply it:
beautiflow apply examples/recipes/architecture/architecture.mmd \
--actions examples/recipes/architecture/layout-actions.json \
--json
Transform graph semantics
Suggested prompt
Inspect the provided transformation actions in examples/recipes/architecture/ and describe the proposed topology changes before requesting approval. Use a fresh receipt for the disposable working copy, preserve unrelated source, verify the resulting model and stop on rejection. Do not substitute ad hoc text rewrites.
Inspect the provided transformation actions in examples/recipes/architecture/ and describe the proposed topology changes before requesting approval. Use a fresh receipt for the disposable working copy, preserve unrelated source, verify the resulting model and stop on rejection. Do not substitute ad hoc text rewrites. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
graph-transformations.json inserts a validation decision, labels its valid edge, and adds an invalid path. It changes Mermaid source as well as reconciling layout state.
Always inspect a structural edit first:
beautiflow transform examples/recipes/architecture/architecture.mmd \
--actions examples/recipes/architecture/graph-transformations.json \
--dry-run --json
To experiment without modifying the committed fixture, copy the recipe:
cp -R examples/recipes/architecture /tmp/beautiflow-architecture
beautiflow transform /tmp/beautiflow-architecture/architecture.mmd \
--actions /tmp/beautiflow-architecture/graph-transformations.json \
--json
Key distinction
| Command | Changes topology | Writes Mermaid | Writes sidecar |
|---|---|---|---|
apply |
No | No | Yes |
transform |
Yes | Yes | Yes |
Either with --dry-run |
Evaluates only | No | No |