Skip to content
Development
Skill

/bootstrap

Scaffolds the core-memory-kit directory structure (context/, scripts/, cron/jobs/) into the current project. Idempotent — never overwrites existing files. Run once per project after installing the plugin. Use when the user says "bootstrap the memory system", "set up memory

From plugin
core-memory-kit
74 skills3 agents1 command1 MCP

Claude Code

$ npx -y skills add LH8PPL/core-memory-kit --skill bootstrap --agent claude-code

SKILL.md

bootstrap.SKILL.md
description: >
  Scaffolds the core-memory-kit directory structure (context/, scripts/,
  cron/jobs/) into the current project. Idempotent — never
  overwrites existing files. Run once per project after installing the
  plugin. Use when the user says "bootstrap the memory system", "set up
  memory here", or "scaffold the 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/core-memory-kit` npm package, NOT as plugin-copied scripts. Users invoke them via `cmk` subcommands:

  • `cmk daily-distill` (was: `run-daily-distill.sh`)
  • `cmk weekly-curate` (was: `run-weekly-curate.sh`)
  • `cmk compress --lazy` (no-cron fallback; new in Task 35)
  • `cmk register-crons` (was: `register-crons.py`)

5. **Copy cron job declarations** from the plugin's `cron-template/jobs/` into the user's `cron/jobs/`:

  • `daily-memory-distill.md`
  • `weekly-memory-curator.md`

6. **Report**: list which files were created vs skipped. Then tell the user:

  • Open `context/SETUP.md` for the Layer 6 (crons) install steps
  • Open `INSTALL-<your-os>.md` from the kit repo for OS prerequisites
  • The plugin's hooks already activate on session start — no per-project hook registration needed

Constraints

  • **NEVER overwrite existing files** in the user's project.
  • **NEVER modify their `.claude/settings.json`** — the plugin's hooks are registered via the plugin's own `hooks/hooks.json`, not the user's settings file.
  • Confirm before scaffolding if `context/` already has content.

Why this is a skill, not an install step

The npm CLI's `cmk install` scaffolds `template/` into a project. The plugin can't do that because Claude Code plugins don't run setup scripts at install time — they only register skills, hooks, agents, and MCP servers.

So instead the plugin ships the template content under `context-template/` and exposes this bootstrap skill, which the user runs explicitly with `/core-memory-kit:bootstrap` after installing the plugin.

Read more
@lh8ppl
Ships withcore-memory-kit

Persistent per-project memory for Claude Code, Kiro, Cursor & Codex - plain markdown committed with your code, captured prompt-free, auto-injected at session start, recalled by meaning (local semantic search, zero API). Cross-project persona, cited recall, searchable session history.

74 skills3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7
Star history of LH8PPL/core-memory-kit on GitHub, a chart by star-history.com

Other skills on core-memory-kit.

memory-search

memory-search

Searches the project's recorded memory (core-memory-kit) — decisions, conventions, architecture, the reasoning behind choices,…

memory-write

memory-write

Captures a durable fact to project memory through the kit's safe write path (Poison_Guard secret/injection screening + home-path…

troubleshooting

troubleshooting

Diagnoses and repairs core-memory-kit itself when the memory system is broken — the per-failure-code repair book. Fire whenever a…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about bootstrap.

Which coding agents can use bootstrap?
bootstrap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.