Working with Claude

Ask in plain language. Name the diagram, or the project for a new one, so Claude can find it: it asks when several match or none does.

Example requests#

GoalAsk
New diagram"Draw our checkout in the Platform project: CloudFront serves the site from S3, and API Gateway sends orders to a Lambda function that stores them in DynamoDB."
From code"Draw the architecture in infra/ as a new diagram in the Platform project."
Change"In the Checkout diagram, add an SQS queue between the orders function and the email function."
Another view"Add a page to the Checkout diagram that shows the VPC, its subnets and what runs in each."
Explain"What writes to the orders table in the Checkout diagram?"
Share"Create a view-only share link for the Checkout diagram."
Organize"Move the Checkout diagram to the Archive project."
Image for a README"Render the first page of the Checkout diagram as docs/architecture.svg."
  • Mention the boundaries, such as account, region, VPC and subnets, and how requests and data flow. Claude turns them into groups and arrows.
  • From code, Claude reads Terraform, CDK, template.yaml, serverless.yml, Kubernetes manifests and docker-compose.yml, and works out what contains what and what connects to what from event sources, integrations, security group rules and environment variables.
  • Rendering needs the lineout CLI. Claude saves the page's JSON next to the image, such as docs/architecture.json, so it can be rendered again or imported into Lineout.

The diagrams skill#

Claude loads it by itself for Lineout requests. To make sure, start your message with it:

/lineout:diagrams draw the Terraform in infra/ as a new diagram

In the turn that starts the skill, Claude can read your workspace, diagrams, share links, the format guide and icons, and run lineout, without asking. Everything else, every change to your diagrams included, follows your Claude Code permission settings.

What Claude does#

  1. Finds the diagram or project by name. Before creating a diagram in a project you didn't name, it asks.
  2. Plans the components, the boundaries that group them and the flows between them. It always reads a page before editing it.
  3. Picks icons with search_icons: AWS icons for AWS, Google Cloud and Azure icons for those clouds, generic icons for everything else.
  4. Lays out the page with the main flow left to right on a grid, and pins arrows that would cross other items. Flows and UML diagrams may be written in Mermaid.
  5. Writes a new diagram in one call, or changes only the items that change. It redraws a page only after you agree.
  6. Checks the result by reading it back and, with the CLI, rendering it.
  7. Replies with the link and a summary, including its assumptions.

Unless you ask, Claude leaves out plumbing such as IAM roles, policies, log groups and parameters, as well as styling. On new services it sets at most their copies and whether they count, and leaves the rest of the pricing to you.

Safety#

  • Claude asks before deleting a diagram, project or page, revoking a share link, redrawing a page that has content, or installing the CLI.
  • It creates or changes share links only when you ask.
  • At a plan limit, it tells you which limit and passes on the link to change the plan. It never deletes or overwrites anything to make room.
  • It doesn't try to change read-only diagrams or diagrams shared with you for viewing, and tells you why instead.

Claude's changes aren't in the editor's undo history. Before a big change, ask Claude to duplicate the diagram.

Without the MCP server#

Claude can also write single-page JSON files in your repository and render them with the CLI, for example for documentation only. It looks up icon names among the icons that come with the CLI, and treats an icon not found warning as an error. Drop such a file on a project to import it into Lineout later.