bootstraplisted
Install: claude install-skill LH8PPL/claude-memory-kit
# bootstrap
## Purpose
Scaffold the memory-system files into the user's current project. The plugin itself ships with the hooks and skill, but the user's project needs its own `context/` directory tree, `scripts/` for the auto-extract helper to read project-relative paths, and the cron job declarations.
## Steps
1. **Check** the current project directory (`CLAUDE_PROJECT_DIR` or pwd) for an existing `context/` directory.
- If exists: ASK the user "context/ already exists. Run bootstrap anyway (skipping existing files)?" Default to yes if no answer.
2. **Create directories** (idempotent):
```
context/memory
context/sessions
context/transcripts
scripts
cron/jobs
```
3. **For each template file in the plugin's `context-template/` directory**, copy into the user's `context/` if the destination doesn't already exist. Substitute `{{TODAY}}` with today's date and `{{PROJECT_NAME}}` with the project's basename.
Files to scaffold:
- `USER.md.template` → `context/USER.md`
- `MEMORY.md.template` → `context/MEMORY.md`
- `SOUL.md.template` → `context/SOUL.md`
- `memory/INDEX.md.template` → `context/memory/INDEX.md`
- `SETUP.md` → `context/SETUP.md` (no substitution)
4. **Operational scripts** — v0.1.0 ships these as Node bins inside the published `@lh8ppl/claude-memory-kit` npm package, NOT as plugin-copied scripts. Users invoke them via `cmk` subcommands:
- `cmk daily-distill` (was: `run-daily-dist