| name | ~init |
| description | Initialize hello-scholar project assets for the current repository. Use when the user explicitly types `~init` or asks to initialize hello-scholar records for a project; creates the project `hello-scholar/` directory if missing and ensures root `.gitignore` ignores `/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
.gitignore contains /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 init when 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
.gitignore was updated.