arckit init
Thearckit init command creates a new ArcKit project with a complete directory structure, governance templates, and AI assistant integration.
This is a CLI command (not a slash command). Run it directly in your terminal before starting your AI assistant.
Description
Initializes a new ArcKit project for enterprise architecture governance by:- Creating project directory structure
- Copying templates for architecture principles, requirements, SOW, etc.
- Setting up AI assistant commands (Codex or OpenCode)
- Copying documentation and guides (unless
--minimal) - Initializing git repository (optional)
Usage
Basic Examples
Arguments
Name for your new project directory. Use
. or --here to initialize in the current directory.Examples:my-architecture-project.(current directory)uk-gov-digital-service
Options
AI assistant to configure for slash command integration.Choices:
codex- OpenAI Codex CLIopencode- OpenCode CLI
For Claude Code, use the ArcKit plugin instead:For Gemini CLI, use the ArcKit extension:
Initialize project in the current directory instead of creating a new one.Example:
Skip git repository initialization.Example:
Minimal install: skip documentation and guides. Only installs templates and commands.Example:
Install commands for all CLI-supported AI assistants (Codex and OpenCode).Example:
Prerequisites
Required: Python 3.11+
Required: Python 3.11+
ArcKit requires Python 3.11 or later.
Recommended: Git
Recommended: Git
Git is recommended for version control of architecture artifacts.If git is not installed,
arckit init will skip repository initialization automatically.Optional: direnv
Optional: direnv
direnv automatically loads environment variables when entering the project directory.After
arckit init, run:What It Creates
Directory Structure
Generated Files
- Templates
- Commands
- Documentation
54 document templates copied to
.arckit/templates/:- Architecture principles
- Requirements
- Risk register
- Business cases
- SOW/RFP
- Design reviews
- And 48 more…
Example Output
Next Steps
Establish Architecture Principles
projects/000-global/ARC-000-PRIN-v1.0.md — the governance foundation required by most downstream commands.Customizing Templates
After initialization, customize templates using the/arckit.customize command:
.arckit/templates-custom/ and preserved when running arckit init again.
Updating an Existing Project
Runningarckit init again in an existing project:
Refreshes Default Templates
Refreshes Default Templates
Templates in
.arckit/templates/ are updated to the latest version.Preserves Customizations
Preserves Customizations
Your custom templates in
.arckit/templates-custom/ are never modified.Updates Commands
Updates Commands
Slash commands in
.codex/prompts/ or .opencode/commands/ are refreshed.Updates Documentation
Updates Documentation
Guides, diagrams, and reference docs are updated to match the new version.
Troubleshooting
Error: Directory already exists
Error: Directory already exists
--here to initialize in the current directory:Git not found
Git not found
--no-git flag:Slash commands not working
Slash commands not working
Codex CLI:
- Verify
CODEX_HOMEis set: - Restart Codex after setting
CODEX_HOME
- Verify
OPENCODE_HOMEis set: - Restart OpenCode after setting
OPENCODE_HOME
Related Commands
arckit check
Verify ArcKit installation and prerequisites
/arckit.start
Get oriented with guided onboarding
/arckit.principles
Create architecture principles
/arckit.customize
Customize document templates