Skip to content

Bootstrap a Project from code

Have a coding agent read an existing codebase and declare its whole Project in one pass, with you approving what it found before it writes anything.

Start the agent in the code repo and name the Project and its Team:

Bootstrap the Archidocs Project "orders" for the Orders Team from this repo.

The skill sends the agent to the bootstrap topic, which it follows from here.

The agent reads Dockerfiles, manifests, Terraform, HTTP clients, connection strings and topic names. It shows a table of the Services, Components, Relationships, Deployment Targets and Deployments it found, each with its evidence (file and line) and its confidence.

It asks only what code can’t tell: how Services group into Systems, which are External, the business descriptions, and Owners other than the Project’s. Edit the table until it is right, then approve it. That one approval covers the writes.

The agent creates the Project and writes through the MCP write tools, in dependency order. Each write is checked as it is made, so the Model is valid at every step.

A Relationship to another Team’s Service is resolved by name, URL or host to its Qualified id. When the provider isn’t in the Model yet, the agent leaves the Relationship out and lists it as a gap for that Team.

The agent finishes with check and a report of what it wrote and skipped, with evidence, ready for the pull request description. Commit, push, and review it like code.

In the Workspace checkout:

Terminal window
archidocs check
0 errors, 0 warnings

Then run archidocs diff main to list every Element and Relationship the agent added. A PR preview shows them on the diagrams.

If the agent writes YAML files by hand instead of calling the write tools, it isn’t connected to the MCP server. Check the server is registered, as Connect an agent over MCP shows.

If a write is refused, the agent gets the rule and the file and line. It fixes the input or asks you, then writes again.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.