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.
1. Make sure the Team exists
Section titled “1. Make sure the Team exists”The Team that will own the Project must be defined in workspace.yaml. Add it if it is new:
# 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: Production2. Create the folder and project.yaml
Section titled “2. Create the folder and project.yaml”Create a folder under the Workspace folder, usually named after the Project’s id, with a project.yaml:
id: identityname: Identityowner: identityidis how other Projects name this one’s Elements, asidentity:auth-service. Choose it with care: changing it later means changing every reference.nameis shown in the viewer.owneris the Team that owns everything declared here, unless an Element says otherwise.
Projects don’t nest: a Project folder can’t sit inside another.
3. Declare its Elements
Section titled “3. Declare its Elements”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:
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: OpenLDAPThe 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.
4. Check it
Section titled “4. Check it”archidocs check5. Route its reviews
Section titled “5. Route its reviews”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/identityWith an agent
Section titled “With an agent”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.