| name | arkive-init |
| description | Initialize arkive architecture tracking in the current project. Handles MCP registration and skill installation. |
| trigger | User says "init arkive", "set up arkive", "initialize architecture tracking", or invokes /arkive-init. |
/arkive-init — Initialize Architecture Tracking
When to Use
Run this to set up arkive in a new or existing project.
Flow
1. Check existing state
Check if arkive/architecture.json exists in the arkive/ directory.
- If it exists: inform the user arkive is already initialized. Offer to run
/arkive-import to populate from existing code, or re-initialize (destructive — requires explicit confirmation).
- If it does not exist: proceed.
2. Ask: global or project-only?
Ask the user:
"Do you want arkive available globally (in all projects) or just this project?"
- Global — installs arkive skills globally so you can invoke
/arkive-init in any new project without re-installing
- Project only — installs arkive only in this project
3. Ask: which AI platform?
Ask the user which AI platform they use:
- Claude Desktop
- Claude Code
- Cursor
- OpenCode
- VS Code Copilot
- Windsurf
- Cline
4. Execute initialization
Run the following commands:
npx -y @ericjdz/arkive init --name <project-name>
npx -y @ericjdz/arkive install <platform>
npx -y @ericjdz/arkive install-skill <platform> [--global]
If MCP tools are available, prefer calling scaffold_project instead of the CLI init command.
5. Populate from existing code (if project has code)
If the project already contains source code (check for package.json, src/, app/, or similar):
- Inform the user: "This project already has code. Want me to analyze it and populate the architecture document? This may use significant tokens for large projects."
- If yes: invoke
/arkive-import
- If no: leave
arkive/architecture.json empty — it will be populated as you build.
6. Verify
Run: npx @ericjdz/arkive status
Must show project name and zero drift warnings.
Tell the user to restart their agent session to pick up the MCP server.
MUST DO
- Always ask global vs project-only BEFORE executing
- Always ask which platform BEFORE executing
- Always verify with
status after init
- If project has existing code, offer
/arkive-import
MUST NOT
- Do NOT skip the platform question — MCP registration is platform-specific
- Do NOT commit generated files without user confirmation
- Do NOT re-initialize if
arkive/architecture.json exists without explicit user confirmation