name: init
description: Initialize hello-scholar project assets for the current repository. Use when the user explicitly types `initor asks to initialize hello-scholar records for a project; creates the projecthello-scholar/directory if missing and ensures root.gitignoreignores/hello-scholar/and/.hello-scholar/`.
policy:
allow_implicit_invocation: false
Trigger: ~init
~init initializes the current repository for hello-scholar project records.
Rules
- Do not create or update a change record for this command.
- Treat an existing project-root
hello-scholar/directory as already initialized. - Ensure project-root
.gitignorecontains/hello-scholar/and/.hello-scholar/. - Do not run
git rm --cached; only tell the user if already tracked files may need manual untracking.
Steps
- Run
hello-scholar initwhen the CLI is available. - If running from an installed runtime where the CLI is unavailable, run
node .hello-scholar/scripts/project-storage.mjs init --cwd <project-root>. - Report whether the asset directory already existed and whether
.gitignorewas updated.
