Skip to content

Add a Project

A Project is one Team’s slice of the Workspace. Add one when a Team starts modelling what it owns. See Workspace and Projects for the idea.

The Team that will own the Project must be defined in workspace.yaml. Add it if it is new:

workspace.yaml
# Big Bank plc: a fictional bank, after the C4 model's internet banking example.
teams:
digital-banking:
name: Digital Banking
description: Web, mobile and the internet banking API.
core-banking:
name: Core Banking
description: The mainframe and the systems that sit on it.
platform:
name: Platform
description: Cloud platform, messaging and e-mail.
identity:
name: Identity
description: Customer sign-in and the user directory.
payments:
name: Payments
description: Payments, card network and fraud.
environments:
staging:
name: Staging
prod:
name: Production

Create a folder under the Workspace folder, usually named after the Project’s id, with a project.yaml:

identity/project.yaml
id: identity
name: Identity
owner: identity
  • id is how other Projects name this one’s Elements, as identity:auth-service. Choose it with care: changing it later means changing every reference.
  • name is shown in the viewer.
  • owner is the Team that owns everything declared here, unless an Element says otherwise.

Projects don’t nest: a Project folder can’t sit inside another.

Add a file such as model.yaml beside project.yaml. Any name works, and you can split a Project across as many files as you like. Big Bank’s Identity Project is one System with two Services:

identity/model.yaml
systems:
identity:
name: Identity Platform
description: Signs customers in and keeps their credentials.
services:
auth-service:
name: Auth Service
description: OpenID Connect provider for every customer-facing app.
technology: Keycloak
relationships:
- to: user-directory
description: Reads and writes credentials in
technology: LDAP
- to: platform:email-system
description: Sends password-reset e-mails through
technology: SMTP
user-directory:
name: User Directory
type: datastore
technology: OpenLDAP

The Auth Service depends on platform:email-system, an Element of another Team’s Project. Declare only this Project’s outbound Relationships; the Teams that depend on this one declare theirs.

Then add Services and Deployments as the Project grows.

Terminal window
archidocs check

Each Team changes only its own folder, so a CODEOWNERS line per Project sends every change to the Team that owns it:

/archidocs/identity/ @bigbank/identity

Over MCP, create_project writes the folder and project.yaml, and upsert_team adds a missing Team. To model an existing codebase in one go, see Bootstrap a Project from code.