Vibe Kit Init
Initialize the kit safely.
Required behavior
- Print the requirements checklist from
.vibekit/init/FIRST_TIME_INIT.md. - Run or emulate detection, including repo-specific conventions, project mode, and PRD presence:
bashnode .vibekit/scripts/init-backbone.mjs . --propose
- Run the project-understanding step below.
- Run the Codex setup preference below when Codex is installed and supports it.
- Propose a unified diff for
backbone.yml, itsconventionsrules, managed blocks, any new.vibekit/docs/PRD.md, and approved Codex preference files. - Ask:
Apply this proposed backbone and convention rules? Reply yes, edit, or abort. - Write only after explicit
yes. - Validate after writing.
Ask every first-init question in the plain style from Question style (first init) in .vibekit/init/FIRST_TIME_INIT.md: coding level 0 words, ASD-STE100 in English, one topic, 2 or 3 numbered choices, no config keys.
Project understanding (PRD)
Detection reports project.mode (greenfield = no source yet, brownfield = existing code) and whether a PRD exists.
- Always offer a short interview, regardless of whether docs already exist: what the project is and who it is for, the core problem and primary focus now, what success looks like, key constraints/non-goals, and (brownfield) which area to improve first.
- If no PRD is found, propose creating
.vibekit/docs/PRD.mdfrom.vibekit/docs/templates/PRD_TEMPLATE.mdusing the answers, and setproject.prdto that path. - If a PRD exists, read it, link it in
project.prd, and offer to refresh it without overwriting unapproved content. - Keep the PRD short; it captures intent, not a full spec. Record domain terms in
.vibekit/docs/CONTEXT.md(scaffold from.vibekit/docs/templates/CONTEXT_TEMPLATE.md) and link it inproject.context.
Codex setup preference
Follow the three-choice Codex multiple-choice questions procedure in .vibekit/init/FIRST_TIME_INIT.md. Ask it only when Codex is installed and supports it. Recommend Yes with its short reason, treat No as temporary, persist Don't show this again as project-local dismissal, and never edit the user's global ~/.codex/config.toml. Include any resulting .codex/config.toml or .vibekit/preferences.json change in the approval diff.
Convention detection
- Infer naming, directory layout, architecture, shared resource access, localization/message access, generated definitions, and per-app/package differences from existing files.
- Prefer existing constants, registries, generated APIs, and helper modules over hardcoded literals when the repo already has them.
- If no convention is clear, mark it as not detected and ask before introducing a broad new pattern.
- Store confirmed project rules in
backbone.ymlunderconventions; later work must follow those rules unless the user edits them.
Merge policy
- Never overwrite existing
CLAUDE.mdorAGENTS.md. - Replace only content between Minimal Vibe managed markers.
- Preserve user content outside managed markers.
- Keep
CLAUDE.mdandAGENTS.mdconcise.
Completion
Report initialized status, validation command, validation result, PRD path, and next recommended skill. Once the user confirms setup is complete, offer graduation (node .vibekit/scripts/vibekit-finalize.mjs . --propose) to move one-time bootstrap files into the cleanup folder.


