Version 4 of 4 · · razie via designer-28administrator · Current version

Example AI prompts

Prompts to give your AI when it works on a d2 project, and the answers they got, grouped by the project's level (the sections for other levels aren't shown; see Help). Collected from the landing page, the home page templates and Help on 2026-09-27, plus real ones from building d2 itself. Where no answer was kept, the entry says what should come back.

Getting started

List the topics in my d2 project.

Home and the rest of your project's topics. If it does, your AI is connected. (From Help, step 4.)

Make an app that shows …

An App: topic holding a whole HTML page, opened at /app/<name>, with a card for it on your home page. (From Help, apps.)

In d2, make me a stylesheet called yahoo: the logo in the top bar says YAHOO, the background is dark green and the fonts are magenta.

A Style:yahoo topic you can pick on Styles; if a line is wrong, the page says which. (From Help, styles.)

Maker projects (hero, creator)

Hero

Your own app, with your data behind it.

Build me an app to track my portfolio: my holdings, what I paid, today's price, and tell me when a company I hold puts out news.

A working app with lists, pages and alerts, filled with your own data; change your mind and the app changes with it. The finished example is d2portfolio. (From the landing page, Hero.)

Import the portfolio example into my project and put in my three biggest holdings instead of the samples.

The portfolio's topics copied into your project, its card on your home page, your holdings in place of the samples. (From the Hero home page.)

I ride trails on my mountain bike. Keep track of the trails, when I rode them and the conditions, and show me which ones I haven't done in a while.

Not kept yet (the Bike trails example is coming). (From the Hero home page.)

Make me a garden planner: my beds, what's planted where, when I watered, and remind me what's due this week.

Not kept yet (the Garden example is coming). (From the Hero home page.)

Track my monthly budget: categories, what I planned and what I spent, and warn me when a category goes over.

Not kept yet (the Budget example is coming). (From the Hero home page.)

Creator

Describe a domain. Use the app it becomes, right away.

Create a domain model for a mining company: its properties and claims, the deposits and their resource estimates, drill programs with holes and assays, and who owns what. Seed it with a few sample companies and let me see it.

The classes in a Spec: topic, sample companies as objects, and the model graph at Domain, browsable in Data right away. The worked example is in the d2pro demo (Spec:mining-domain, Story:mining-samples). (From the landing page, Creator.)