# Memoir onboard

> Memoir onboard is an open-source agent skill for knowledge and memory. Builds a persistent project snapshot in Memoir so future Codex sessions start warm. It is available on Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Codex
- **Website:** https://github.com/zhangfengcdt/memoir/tree/main/plugins/codex/skills/memoir-onboard
- **Repository:** https://github.com/zhangfengcdt/memoir
- **GitHub stars:** 650
- **License:** Apache-2.0
- **Skill name:** memoir-onboard
- **Collection:** https://github.com/zhangfengcdt/memoir
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-04

## About

This skill creates or refreshes a compact snapshot of the current project inside the Memoir store. In a git repository it records code-oriented facts such as modules, entry points, goals, rules, test strategy and lessons, keyed to the code commit so later runs only rewrite what changed. In a non-git folder it instead indexes files with deterministic stdlib extractors, aimed at writing, video editing, bookkeeping and other mixed-media projects, and keys changes to a filesystem snapshot hash.

The agent follows a staged procedure: it checks for a concurrent onboarding session, reads existing metadata to decide between a full rewrite, an incremental update or a metadata-only refresh, and then writes each entry through the memoir command line. Helper Python scripts handle walking the folder, extracting file summaries and building the directory tree, and the non-git path makes no LLM calls.

It expects Python 3 and the memoir CLI, either installed or runnable through uv or uvx. Writes are confined to the chosen onboard namespace in a store path that the skill verifies before writing.

## When your agent uses it

> Populate or refresh a persistent, high-level project snapshot in memoir. In a git repo this writes `codebase:onboard` (code-shape: modules, goals, rules, lessons) — use when the user asks for onboarding / a codebase tour ('what does this project do', 'give me a codebase overview', 'onboard me to this repo') or explicitly asks to refresh Memoir onboarding. In a non-git folder this writes `project:onboard` (file-shape: per-file structured blobs) using deterministic stdlib extractors instead of LLM passes — use for writing, video editing, bookkeeping, and other mixed-media projects. Snapshot contents seed future sessions via SessionStart injection. Skip for ordinary recall (use memory-recall) or trivial one-file questions.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/zhangfengcdt/memoir/tree/HEAD/plugins/codex/skills/memoir-onboard)
- [No network calls found in its scripts](https://github.com/zhangfengcdt/memoir/tree/HEAD/plugins/codex/skills/memoir-onboard)
- [License: Apache-2.0](https://github.com/zhangfengcdt/memoir/tree/HEAD/plugins/codex/skills/memoir-onboard)

## Features

- **Git codebase snapshot:** Records modules, entry points, goals, non-goals and test strategy for a repository.
- **Incremental refresh:** Uses the code commit to rewrite only the entries affected by recent changes.
- **Non-git file indexing:** Writes per-file structured summaries for folders that are not git repositories.
- **Deterministic extractors:** Python helpers extract file metadata and previews without calling an LLM.
- **Concurrency and store checks:** Refuses to run alongside another onboarding session and verifies the target store path.

## Good for

- Onboard me to this repository and summarize its modules
- Give me an overview of this writing project's files
- Refresh the Memoir onboarding snapshot after recent commits
- Record the rules and lessons from this codebase for future sessions

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/memoir-onboard` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zhangfengcdt/memoir.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/memoir-onboard &&
cp -R "$tmp/plugins/codex/skills/memoir-onboard" ~/.claude/skills/memoir-onboard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/memoir-onboard` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/memoir-onboard` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zhangfengcdt/memoir.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/memoir-onboard &&
cp -R "$tmp/plugins/codex/skills/memoir-onboard" ~/.agents/skills/memoir-onboard &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/memoir-onboard` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/memoir-onboard` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zhangfengcdt/memoir.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/memoir-onboard &&
cp -R "$tmp/plugins/codex/skills/memoir-onboard" ~/.cursor/skills/memoir-onboard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/memoir-onboard` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zhangfengcdt/memoir.git --path plugins/codex/skills/memoir-onboard
```

Or copy the folder to `~/.gemini/skills/memoir-onboard` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/memoir-onboard`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zhangfengcdt/memoir.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/memoir-onboard &&
cp -R "$tmp/plugins/codex/skills/memoir-onboard" ~/.copilot/skills/memoir-onboard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/memoir-onboard` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zhangfengcdt/memoir.git
```

Then copy `memoir/plugins/codex/skills/memoir-onboard` into your agent's skills folder as `memoir-onboard`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the memoir CLI, either on PATH or available through uvx or uv tool run, and Python 3 for its helper scripts.

### Where does Memoir onboard store the snapshot?

It writes to a Memoir store path, taken from MEMOIR_STORE or derived by a helper script, and verifies that path before writing.

### How does Memoir onboard decide between a full and incremental update?

In git repos it compares the current code commit with the stored one; in non-git folders it compares a snapshot hash of file paths, sizes and modification times.

### Does the non-git mode use an LLM?

No. The file extractors are stdlib-based and the skill states that cold and warm passes make no LLM calls.

### How do I install Memoir onboard in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/memoir-onboard to use it in all your projects, or to .claude/skills/memoir-onboard in one project.

### Does Memoir onboard run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Memoir onboard?

Codex. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Memoir onboard?

The closest alternatives to Memoir onboard are Memoir remember, Memory recall, Memoir UI, Persistent memory and Claude mem.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Memoir remember](https://ai-powered.com/skills/memoir-remember): Memoir remember is an open-source agent skill for knowledge and memory.
- [Memory recall](https://ai-powered.com/skills/memory-recall-zhangfengcdt): Memory recall is an open-source agent skill for knowledge and memory.
- [Memoir UI](https://ai-powered.com/skills/memoir-ui): Memoir UI is an open-source agent skill for knowledge and memory.
- [Persistent memory](https://ai-powered.com/skills/persistent-memory-aws-solutions): Persistent memory is an open-source agent skill for knowledge and memory.
- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Memory distill](https://ai-powered.com/skills/memory-distill): Memory distill is an open-source agent skill for knowledge and memory.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Compound memory](https://ai-powered.com/skills/compound-memory-protocol-zero-0): Compound memory is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/memoir-onboard-zhangfengcdt
