← ClaudeAtlas

cbm-onboardlisted

Register maintained or ephemeral Git checkouts with codebase-memory-mcp, keep long-lived indexes current through non-clobbering Git hooks, and tear down ephemeral indexes by exact deterministic identity. Use when asked to index, onboard, register, remove, or keep a repository current in Codebase Memory, or to resolve which Codebase Memory project belongs to a checkout and make it ready.
ConnorGriffin/skills · ★ 20 · AI & Automation · score 66
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