cbm-onboardlisted
Install: claude install-skill ConnorGriffin/skills
# Onboard a repository to Codebase Memory
Use the bundled scripts for either a long-lived maintained checkout or a
short-lived checkout with an explicit onboard/teardown lifecycle. Never index a
directory containing several repositories.
## Requirements
- Install `codebase-memory-mcp` and make its executable available on `PATH`, or
set `CODEBASE_MEMORY_BIN` to the executable path.
- Ephemeral onboarding and teardown require Codebase Memory MCP v0.10.8 or
newer. Maintained-checkout onboarding keeps its existing compatibility.
- Resolve the installed `cbm-onboard` skill directory.
## Workflow
1. Resolve the target Git repository. Default to the current repository.
2. For a long-lived maintained checkout, run:
```sh
<cbm-onboard-skill-directory>/scripts/cbm-onboard.sh <repo-path>
```
The script resolves linked worktrees to the maintained checkout, reconciles
a marked baseline inside `.cbmignore`, preserves custom exclusions, and adds
a managed reindex block to Git's configured `post-commit`, `post-merge`, and
`post-checkout` hooks without deleting an existing shell hook. The
`post-checkout` block carries a `[ "$3" = "1" ] || exit 0` guard so it only
fires on branch checkouts, not per-file checkouts. A symlinked hook is
followed to the file it resolves to, which is what a dotfiles-managed hooks
directory needs, and the write lands in whatever repo owns that file. A
symlink with no regular-file target is refused, and a `.cbmignore` sy