Give a new project a shape, and keep it.
Barnark keeps a catalogue of architecture templates. Clone one into a template of your own, let Barnark make the folders, and check at any time that nothing has strayed.

A shape, not a blank folder.
Barnark ships five: Domain Driven Design, Feature Based Architecture, Model View Controller, Library and Package App. Each says what folders there are and what each is for, and where it suits.
Cloning one makes the folders at once. A template says only what folders there are, never what goes in them, so it fits any language.
app/
├── Controller/
├── Model/
└── View/
The folders a clone makes. Libraries and layered applications make more.
A copy, so nothing can change under you.
Clone Domain Driven Design as Hotel and Hotel is the project’s own, with nothing tying it to the original. If a later Barnark changes the shipped template, your project doesn’t notice.
Edit your template as you like, or leave it as it is. Whatever you build is yours to keep.
- Hotelbound to /src
- Domain Driven Designshipped, read-only
- Libraryshipped, read-only
The template and the folders move together.
Add a context and the template records it as a new revision while the folder, with everything a context holds, appears on disk. Deleting a member is recorded as a revision too.
Every revision is kept with a reason, so the history of the architecture reads like the history of any decision.
$ barnark template:new Context Reservation src/Context src/Context/ └── Reservation/ ├── Application/ ├── Domain/ ├── Infrastructure/ └── PublicApi/
The template now reads “Added Context/Reservation.”
Either it conforms or it doesn’t.
The check compares the project’s folders with its template and lists what is missing and what is unexpected. For anything unexpected you decide: remove it, or take it into the template and say what it is for.
Nobody declares a project well architected. The check says.
