Skip to content

archidocs init

Set up a Workspace in this repo and install the agent skill, or with --skill install only the skill in a code repo. Safe to re-run.

archidocs init [--skill [--workspace <dir>]]

Write archidocs/workspace.yaml if the repo has no Workspace yet, and install the agent skill.

Terminal window
archidocs init

In a code repo, install only the agent skill, and print the MCP command for the Workspace checked out beside it.

Terminal window
archidocs init --skill --workspace ../architecture/archidocs

--skill · Off by default.

Install only the agent skill and its pointers, for a code repo that has no Workspace of its own.

--workspace <dir>

With --skill: the Workspace checkout that the printed MCP command points at.

Code Meaning
0 The Workspace and the agent skill are set up, or already were. Each file written or updated is printed.
2 It could not run: an unknown flag, a flag missing its value, --workspace without --skill, or a file it could not write.

Exit 2 prints the reason to stderr as archidocs: <message>, and after most mistakes in the command line, the usage summary.

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