Use cases

What Tritone is for, one situation at a time. Each one says which diagram fits it, links to an example, and says how to put the diagram in front of the people who need it.

None of them asks you to write code. A diagram is a few lines of plain text: write them yourself, start from an example of these pages, or ask an AI agent that has read the story language. Each use case ends with a request you can give an agent as it is.

You want to Draw Hand it over as
Explain a change A story, before and after A link, or a picture in the pull request
Show a newcomer the system planes, then a request A frame in the team’s wiki
Document how an API is used A story, a conversation A block in the documentation
Write up an incident A story, an incident A link in the report
Find the weak points dominators and city A link for the review
Decide where to split a system matrix and ring A link for the meeting
Check what a project depends on tree and stages A frame in the docs, a link in the issue
Map who does what lanes, or a story between people A frame in the handbook
Show where money or time goes sankey A link, or a frame in the report
Put work in order stages A link in the plan
Teach an idea A story, an idea taught A picture that plays in the page

Links, frames and pictures that play point at a Tritone site. There is no public one yet, so a team runs its own, with one command. A file saved with Save SVG needs no site at all: it is a picture, like any other.

Explain a change

You, or your agent, changed how something works. The pull request lists the files, but a reviewer, a manager or a teammate back from holiday wants to know what changed for the system: what happened before, what happens now, and what it is worth.

  • Draw a story before and after: the same request twice, with a set on the number that moved.
  • Hand it over as the link of the live editor in the description, or as the file Save SVG saves, committed and shown as an image: it plays by itself.
  • Ask your agent: “Explain the change you just made as a Tritone story: one step before it, one after, with the time each one takes.”

Show a newcomer the system

Someone joins the team. Before reading any code, they need the map: what the parts are, which layer each one is in, and what one click goes through.

  • Draw the architecture as Mermaid text in planes, one plane per layer. A Mermaid diagram the team already has works as it is. Then a request, hop by hop, for the action people do most.
  • Hand it over as a frame in the team’s wiki (iframe), or as links in the welcome message.
  • Ask your agent: “Read this repository and draw its architecture as a Mermaid flowchart with one subgraph per layer. Then write the most common request as a Tritone story.”

Document how an API is used

The people who call your API need to know what to send, in what order, and what comes back, including the answer that says no.

  • Draw a story of a conversation between parties: one step per exchange, and the status of each answer in its label.
  • Hand it over as a tritone block in documentation written in Markdown, through the Markdown plugin, or as a frame.
  • Ask your agent: “Write a Tritone story of how a client uses this endpoint: one step per call, with what it sends and what it gets back.”

Write up an incident

Something broke. The report has to say what happened and in what order, how long each part took, and what will stop it from happening again, for the engineers and for everyone else.

  • Draw a story of an incident: one step per moment with the time in its title, a set on what the users felt, and the lesson as the idea of the last step.
  • Hand it over as a link in the report, and in the chat where it is discussed.
  • Ask your agent: “Turn this timeline into a Tritone story: one step per moment, the error rate as a metric, and the lesson in the last step.”

Find the weak points

Before a review of how reliable a system is, or after an outage: which parts would take the most with them if they stopped?

  • Draw the system as Mermaid text in dominators. Everything that hangs under a node is what no other way reaches: it would be cut off without that node. Then city, where the tallest buildings are the parts with the most links.
  • Hand it over as a link, opened together during the review: turn the scene, and select a node to read its links.
  • Ask your agent: “Draw the services of this system and the calls between them as a Mermaid flowchart, so I can open it in Tritone’s dominators model.”

Decide where to split a system

A system has grown too big for one team, and it should become two. The place to cut is where few links cross, all of them going the same way.

  • Draw the modules as Mermaid text, one subgraph per part you might split off, in matrix. A bar counts the links from one group to another: two groups with bars both ways depend on each other, which is the hardest pair to pull apart. ring shows the same ties as arcs over a table.
  • Hand it over as a link for the meeting where the split is decided.
  • Ask your agent: “List the modules of this code and which ones call which, as a Mermaid flowchart with one subgraph per team that owns them.”

Check what a project depends on

A dependency is about to be upgraded or removed, or a security review asks what a package brings with it.

  • Draw the packages as Mermaid text in tree: each one hangs what it needs below itself. stages puts the same text in order, so what has to be built first is on the last step.
  • Hand it over as a frame in the project’s documentation, or a link in the issue.
  • Ask your agent: “Draw the packages of this repository and what each one imports as a Mermaid flowchart.”

Map who does what

A process crosses several people or teams: a refund, a hire, an expense. Nobody sees all of it, and the delays hide where the work changes hands.

  • Draw the process as Mermaid text in lanes, one subgraph per role: every link across the lanes is a hand-off. A short process told in order reads well as a story between people.
  • Hand it over as a frame in the handbook, or a link in the message that proposes a change to the process.
  • Ask your agent: “Here is how our refunds work: … Draw it as a Mermaid flowchart with one subgraph per team, from the customer’s request to the money back.”

Show where money or time goes

A budget, the visitors of a sign-up page, the hours of a project: an amount that splits, then splits again. The question is where most of it ends up.

  • Draw Mermaid’s sankey-beta text, one line per split, in sankey: each band is as wide as what it carries. Select a block to read its amount and its share.
  • Hand it over as a link, or a frame in the report. A picture of a sankey shows the widths but not the numbers: those are in the panel of the live view.
  • Ask your agent: “Turn this budget into Mermaid sankey-beta text: one line for each split, with its amount.”

Put work in order

A launch, a migration or a course: many tasks, some of which need others done first. The question is what can start now, and what can happen at the same time.

  • Draw the tasks as Mermaid text, with an arrow from each task to the tasks it unlocks, in stages. Each task stands one step after the last task it waits for, so the tasks on the same step can be done at the same time.
  • Hand it over as a link in the plan, written again when the plan changes.
  • Ask your agent: “Draw these tasks as a Mermaid flowchart, with an arrow from each task to every task that needs it done first.”

Teach an idea

A course, an article, a talk: an idea such as a cache, a CDN or the way an e-mail travels is easier to see than to read about.

  • Draw a story of an idea, taught: one step per thing to understand, the explanation in say, and the sentence to remember in idea.
  • Hand it over as a picture that plays by itself in an article (Markdown image); as a player in the flow of a page you control (element), with the narration beside it; and in a talk, as the live editor with Hide source, so the diagram has the whole screen.
  • Ask your agent: “Explain how DNS works as a Tritone story for beginners: four steps at most, one idea per step.”

A case not listed here

Start from what the reader should understand.

If the point is Draw
What happens, in what order A story: the kinds there cover most needs
What is connected to what Mermaid text in one of the models: each one answers another question about the same text
Both A model for the map, then a story for the trip through it, as in showing a newcomer the system