Spec Driven Development with Dart and Claude

The article showcases how this app was built from this Event model, that was created using the Claude Event Modeling plugin.
Why?
I have vibe-slopped the plugin. It was time to put it to action to show people what is possible to do in one evening.
How?
Creating a Jira story
First I needed a domain, which I have created using this Prompt in ChatGPT:
Describe me https://calendly.com/ in the format of a Jira Epic, the 20% of calendly.com that is 80% (the core) of the product; Describe it in a way a Product Manager that wants to implement the same tool (say for internal corporate use) would describe it as.
Which has resulted in the following “Jira” Epic:
Employees spend unnecessary time coordinating meetings through email, messaging platforms, and manual calendar checks. Scheduling a simple meeting often requires several interactions to identify a mutually convenient time, confirm availability, create a calendar invitation, and communicate subsequent changes.
We want employees to schedule meetings with colleagues without requiring manual coordination.
Full one can be read here.
Creating the model in Claude
Time to work with Claude, here are the prompts:
|
|
The model was created, there were hotspots;
Claude responded with:
The spec and the emhcl-generated diagram are in the project folder. The model passes validate but not strict, because 13 business questions are still open. The diagram renders over localhost; it was blank in the app’s file preview.
Do you want to resolve the 13 open questions now?
My response:
|
|
After answering all questions, the following event model was created, view the spec here and the diagram here.
Project setup
Then I have setup the project with Dart and Jaspr:
|
|
Then I have installed jaspr skills and dart event model to code skills.
|
|
Building the app
Then I gave this prompt to Opus 5.5 in omp and went to take a shower, then went to bed:
|
|
Opus 5.5 did ask some questions, here are the answers:
- Calendar: “Use https://pub.dev/packages/googleapis and have a Mock that works without a GCP project and key, if possible: so if a person supplies the gcp credentials and stuff in the environment -> real integration can…”
- SSO: Supabase Auth email+password (Recommended)
- Email: SMTP (local Supabase Mailpit) (Recommended)
- Read models: Materialized via fstore-sql streaming
And then?
Then I went to bed, woke up in the morning to a working project:

Get the source code here, run it with:
|
|
It has vertical slices, so event model slices are 1 to 1 mapped to the code:

Hope it was interesting and it helps you create apps with Event Modeling.
Resources:
- source code of the app;
- the event model: .em.hcl spec, diagram;
- fmodel dart library
- fmodel-sql - the event store
- Claude Event Modeling plugin
- dart event modeling skills