Initialize OpenLogos infrastructure for an existing project that already has code but no logos/ directory. Unlike init (which starts a fresh project from Phase 1), adopt sets the module lifecycle directly to launched and marks bootstrap: adopted, skipping the initial document baseline requirement.
openlogos adopt [name] [--locale <en | zh>] [--ai-tool <claude-code | opencode | codex | cursor | other | all>]
Must be run from the project root (where package.json, Cargo.toml, or similar exists).
Argument Description Default nameProject name Auto-detected from package.json, Cargo.toml, pyproject.toml, or directory name
Option Values Default Description --localeen, zhInteractive prompt Set the document language --ai-toolclaude-code, opencode, codex, cursor, other, allInteractive prompt Set the AI coding tool
Creates the full logos/ directory structure (same as init)
Writes logos/logos.config.json with project configuration
Writes logos/logos-project.yaml with bootstrap: adopted and lifecycle: launched
Generates AGENTS.md and CLAUDE.md with change management rules active
Deploys Skills, specs, and tool-specific plugin assets
Auto-detects and configures verify.pre_run_command based on project type
Aspect initadoptTarget New project (no existing code) Existing project with code Module lifecycle initiallaunchedBootstrap mode normal (default)adoptedDocument baseline Required (Phase 1 → 2 → 3) Skipped Change management Not enforced until launch Active immediately
When bootstrap: adopted is set:
status : Phase 1, Phase 2, and Phase 3-0 missing documents don’t report as errors — shows “Document baseline skipped (existing project onboarding)”
next : When no active proposal exists, suggests openlogos change add-baseline-docs to backfill documentation
launch : Exempted from initial document gate checks (already launched)
detect --format json : Outputs bootstrap: "adopted" in the module data
? 检测到已有项目:my-app(来自 package.json)
✓ verify.pre_run_command auto-configured: cd cli && npm test
✓ 写入 logos-project.yaml(bootstrap: adopted, lifecycle: launched)
✓ 写入 AGENTS.md / CLAUDE.md
✓ 16 skills deployed to logos/skills/
✓ 13 specs deployed to logos/spec/
项目已进入存量项目接入模式(bootstrap: adopted):
→ openlogos change add-baseline-docs
Error Cause Fix 该项目已初始化(logos/logos.config.json 已存在)Project already has OpenLogos Use openlogos sync to refresh, or remove logos/ to start over
init — Initialize a brand-new project (starts from Phase 1)
sync — Refresh AI instructions and Skills for an existing OpenLogos project
change — Create a change proposal (suggested first action after adopt)
status — Check project phase and bootstrap state