Skip to content
venizia.ai

Documentation · VULCAN

Adopt VULCAN ​

Start a new project with one command, or add VULCAN to a repository you already have.

Prerequisites ​

Before starting:

  • Bun 1.4.4 or newer
  • A git repository is optional for an existing project (atlas release tags and the per-machine ignore list in .git/info/exclude use it)

New project: read Start a new project. Repository you already have: jump to Adopt an existing project.

Start a new project ​

A framework ships its app template as a preset. One command turns it into a monorepo with its first app, already checked. Run it where the project folder should go; the project does not exist yet, so call the package by its full name:

bash
bun x @venizia/vulcan project init --preset ignis

In a terminal that can draw menus, every question is a menu, not a typed answer; see Interactive prompts. The samples below show what a plain terminal (TERM=dumb) asks.

ignis means the package @venizia/ignis. In a terminal, init asks for the names. It never picks one for you:

text
? Project name (the monorepo folder) > my-product
? Project key for flow ids, as VULZ-<key>-<number> (uppercase letters and digits, 2 to 8 of them) (MYPRODUC) > MYPROD
Fetching preset @venizia/ignis@latest ...
? Backend folder (holds every backend app) > services
? Name of this backend app > core-api
? Shared code folder (empty to skip) > libs

The project key names the project's flows (VULZ-MYPROD-12); Enter takes the one made from the project name, shown in brackets. In a menu terminal init also asks for an optional package scope (--scope @acme names the packages @acme/<name>), then shows the plan and waits for you to confirm it. Then it writes the files and runs, in this order:

  1. bun install
  2. git init -b develop (the project is a git repository on develop)
  3. vulcan project sync
  4. the preset's own checks (their names come from the preset)
  5. vulcan project doctor
  6. vulcan okf check --strict

It stops at the first failing step. The one exception is git init: if git is missing, init prints the command to run yourself and goes on. The first vulcan project sync of a project asks which coding agents you use on this machine. The detected line shows what it found, so yours differs; press Enter to accept it, or type your list. When you are asked again later, Enter keeps your earlier choice instead:

text
Which coding agents do you use in this project? (comma-separated; Enter accepts the detected list: claude, omp)
  detected: claude, omp
  available: claude, omp, codex, cursor, copilot-cli, copilot-vscode, antigravity, pi, none
? Agents > claude

The answer is stored in .agents/local/profile.json, which stays on your machine. It decides which adapter files sync writes (Choosing your agents).

Without a terminal (CI, scripts), pass each answer as a flag:

bash
bun x @venizia/vulcan project init --preset ignis --project my-product --backend-dir services --app core-api --shared-dir libs
QuestionFlag
Project name--project my-product
Backend folder (or Frontend folder, for a frontend preset)--backend-dir services (or --frontend-dir)
Name of this app--app core-api
Shared code folder--shared-dir libs (leave it out to skip)
Project key (flow ids)--key MYPROD (made from the project name when left out)
Package scope (optional)--scope @acme (a plain terminal never asks; leave it out for none)

A name with fewer than 2 letters or digits is an error that asks for --key; otherwise the key is made from the project name, with a note.

A missing flag is an error that names it (vulcan project init: missing --app (Name of the first app) - names are never chosen for you). Without a terminal there is no agents question either: sync writes the Claude files and prints one line saying how to choose (vulcan project sync --agents claude,omp).

The project it creates (the files init and sync wrote, without .git, node_modules and the lockfile):

text
$ cd my-product && find . -type f -not -path './.git/*' -not -path '*/node_modules/*' -not -name bun.lock | LC_ALL=C sort
./.agents/knowledge/index.md
./.agents/knowledge/packages/core-api.md
./.agents/rules.md
./.agents/local/profile.json
./.agents/local/vulcan.manifest.json
./.claude/settings.json
./.claude/vulcan-managed.json
./.configs/vulcan.config.mts
./.dockerignore
./.gitignore
./.mcp.json
./AGENTS.md
./CLAUDE.md
./Makefile
./README.md
./bunfig.toml
./libs/.gitkeep
./package.json
./services/core-api/.configs/builders/Dockerfile
./services/core-api/.configs/builders/compile.ts
./services/core-api/.configs/formatters/.ignore
./services/core-api/.configs/lints/eslint.config.mjs
./services/core-api/.configs/lints/oxlint.config.mts
./services/core-api/.env.example
./services/core-api/package.json
./services/core-api/src/application.ts
./services/core-api/src/controllers/hello.controller.ts
./services/core-api/src/index.ts
./services/core-api/src/smoke.test.ts
./services/core-api/tsconfig.json

Everything under services/core-api/ comes from the preset (the list shows its shape; the exact files come from the preset you pick). The rest is the VULCAN layer. sync also creates the scratch folder .agents/local/ (gitignored). .agents/local/profile.json exists only after you chose your agents. When every step passes, init prints the next step (the lines depend on the preset):

text
vulcan project doctor: OK
check: OK - OKF v0.2 + house rules - N files, N concepts
Done. Next:
  cd my-product && make dev
  open http://localhost:3000/api/hello
  open http://localhost:3000/api/doc/explorer

Last, in a terminal, init offers to save your working style (reply language, how to address you, tone) with vulcan profile. Without a terminal it prints the command. The project's own agent.owner.language is not asked here: set it in .configs/vulcan.config.mts (owner).

For every file and message, see the init reference.

Add more apps ​

Run vulcan package add at the monorepo root. --app adds another backend, or a frontend that proxies /api to a backend; --lib adds a library other apps import:

bash
bun node_modules/.bin/vulcan package add --preset ignis --app api2
bun node_modules/.bin/vulcan package add --preset ignis --lib billing

In a terminal add asks what to create. Without one, give --app or --lib. A frontend also needs --api <backend app> or --no-api when there is no terminal, for example:

bash
bun node_modules/.bin/vulcan package add --preset ardor --app web --frontend-dir apps --api core-api

See the add reference.

Adopt an existing project ​

Add VULCAN to a repository you already have in one sitting. Five steps, in order: install, scaffold, describe the project, sync, check.

1. Install dependencies ​

bash
bun add -d --exact @venizia/vulcan @venizia/dev-configs

--exact pins the version, so an upgrade is a step you take.

Every lint configuration builds on @venizia/dev-configs. The style check in vulcan project doctor requires @venizia/dev-configs in package.json.

Check: Open package.json and confirm both packages appear under devDependencies.

2. Scaffold with init ​

bash
bun node_modules/.bin/vulcan project init

init writes AGENTS.md, .agents/rules.md, .agents/knowledge/index.md, .configs/vulcan.config.mts, the lint configs under .configs/lints/, .dockerignore, bunfig.toml and a Makefile (with a hint instead when you already have one). It also appends the agent entries (including .agents/local/) to .gitignore, installs the lint tools with bun add -d, and ends with a numbered list of what is left to do. For command options and file details, see the init reference.

Check: The command exits with code 0.

3. Fill in scaffolded files ​

After initialization, .agents/knowledge/index.md always needs an edit. Describe your project there, and delete the vulcan:scaffold marker line. If you already have a Makefile, add the -include line init printed (see the table at the end).

The configuration file .configs/vulcan.config.mts needs no edits unless package.json declares workspaces. If your repository uses workspaces, declare each package under packages in release order. path defaults to packages/<dir>; set it when the package lives elsewhere. Setting name is optional and defaults to the root package name:

ts
name: 'my-project',
packages: [
  { dir: 'core', name: '@venizia/core', path: 'core' },
],

For all configuration options, see the configuration reference.

Check: .agents/knowledge/index.md contains no vulcan:scaffold line.

4. Synchronize adapters ​

bash
bun node_modules/.bin/vulcan project sync
text
$ bun node_modules/.bin/vulcan project sync
  created   CLAUDE.md
  created   .claude/settings.json (shipped, slot and agent.claude.settings over personal keys)
  created   .claude/skills/build-a-feature
  created   .claude/skills/docs-update
  created   .claude/skills/docs-writing
  created   .claude/skills/fix-a-bug
  created   .claude/skills/plan-a-change
  created   .claude/skills/report-back
  created   .claude/skills/research
  created   .claude/skills/retro
  created   .claude/skills/review-a-change
  created   .claude/skills/ship
  created   .claude/skills/visualize-work
  created   .mcp.json
  created   .agents/local/vulcan.manifest.json
  created   .agents/atlas.manifest.json
  created   .agents/vulcan.manifest.json
  replaced  AGENTS.md (Atlas block)
  created   .agents/local/profile.json
  created   .agents/local (created tmp, worktrees, clones, cache, reports, prototypes)
  replaced  .git/info/exclude

The starter config suggests claude (agents: ['claude']), so sync takes that, in a terminal or not, and stores it in .agents/local/profile.json without asking. A project made with init --preset has no suggestion, so its first sync asks (Start a new project). Change the choice later with vulcan agent. A CLAUDE.md that already exists, one bun init wrote included, is left alone and reported as skipped; delete it to let sync write @AGENTS.md. init already added CLAUDE.md, CLAUDE.*.md, .claude/, .agents/plans and .agents/local/ to .gitignore, and sync lists the files it wrote for your agents in .git/info/exclude. These adapter files stay local on each machine. Commit .agents/atlas.manifest.json, its temporary copy .agents/vulcan.manifest.json and the Atlas block sync wrote into AGENTS.md to version control; .agents/local/vulcan.manifest.json stays on your machine. For details on adapter generation, see the sync reference.

Check: .agents/atlas.manifest.json and .agents/vulcan.manifest.json exist in git status, while .agents/local/, CLAUDE.md and .claude/ remain gitignored.

5. Verify with doctor ​

bash
bun node_modules/.bin/vulcan project doctor

To check your setup, run vulcan project doctor until all violations resolve. If you skipped editing .agents/knowledge/index.md, the command reports a scaffold violation:

text
$ bun node_modules/.bin/vulcan project doctor
  [scaffold] .agents/knowledge/index.md: still the scaffold - describe the project, then delete the vulcan:scaffold line
vulcan project doctor: 1 violation(s)

doctor can also print warning and info lines before the count; they do not fail the check. Running vulcan project doctor before vulcan project sync also reports not-synced lines for adapters and the manifest. Once all violations resolve, doctor reports OK:

text
$ bun node_modules/.bin/vulcan project doctor
vulcan project doctor: OK

For individual check details and remediation, see the doctor reference.

Check: The command prints vulcan project doctor: OK and exits with code 0.

If your project already has... ​

Existing repositories may trigger doctor checks during adoption. The table below lists common findings and how to resolve them:

You already haveWhat to do
An existing MakefileInclude vulcan.mk and keep target names apart. See the make check.
A project skill with a shipped nameRename its directory. See the skills check.
Lint configs not built on the shared styleBuild them on @venizia/dev-configs. See the style check.
Git tags of another layoutDeclare the package, add an alias, or ignore the tags. See the tags check.

Details:

  • For a Makefile, add -include node_modules/@venizia/vulcan/base/make/vulcan.mk, and do not reuse shipped target names.
  • For a skill with a shipped name, rename the directory under .agents/skills/ to avoid collisions.
  • For lint configs, add @venizia/dev-configs as a devDependency and import from it in the lint configurations.
  • For git tags, declare the package, add an alias, or add the tags to knowledge.atlas.ignoreTags.

Run it in CI ​

On a clean checkout in CI, run install, sync, and doctor in order:

bash
bun install --frozen-lockfile
bun node_modules/.bin/vulcan project sync
bun node_modules/.bin/vulcan project doctor

Running vulcan project doctor before vulcan project sync fails because gitignored adapters do not exist yet.

With no terminal and no stored choice, sync takes claude and says so. The choice of agents lives in the gitignored .agents/local/profile.json, so a CI checkout never has it: a project whose config lists no agents gets only the Claude adapters in CI. Pass --agents <list> to sync to get others. For CI details and output capture, see the doctor reference.

Upgrade later ​

Pass the target version to vulcan project upgrade:

bash
bun node_modules/.bin/vulcan project upgrade 0.4.5

Without a version argument, vulcan project upgrade installs the stable latest release. Add --nightly to take the newest of latest and next, which can be a prerelease:

bash
bun node_modules/.bin/vulcan project upgrade --nightly

From an installed prerelease, latest can be an older version, so a plain upgrade prints a note first; --stable is the name of that default, and --nightly keeps the prerelease line.

The command installs the target release and runs vulcan project sync with the newly installed CLI. Commit .agents/atlas.manifest.json and .agents/vulcan.manifest.json if they changed. For all available commands, see the commands reference.

See also ​