# Cbm Onboard

> Register a Git repository with codebase-memory-mcp, create a managed .cbmignore baseline, install a non-clobbering post-commit reindex hook, and run the initial index. Use when asked to index, onboard, register, or keep a repository current in Codebase Memory.

- **Type:** Skill
- **Install:** `agentstack add skill-connorgriffin-skills-cbm-onboard`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ConnorGriffin](https://agentstack.voostack.com/s/connorgriffin)
- **Installs:** 0
- **Category:** [Web & Browser](https://agentstack.voostack.com/c/web-and-browser)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [ConnorGriffin](https://github.com/ConnorGriffin)
- **Source:** https://github.com/ConnorGriffin/skills/tree/main/skills/cbm-onboard

## Install

```sh
agentstack add skill-connorgriffin-skills-cbm-onboard
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Onboard a repository to Codebase Memory

Use the bundled script to make one maintained checkout one Codebase Memory
project. 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.
- Resolve the installed `cbm-onboard` skill directory.

## Workflow

1. Resolve the target Git repository. Default to the current repository.
2. Run:

   ```sh
   /scripts/cbm-onboard.sh 
   ```

   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` hook without
   deleting an existing shell hook. It refuses symlink targets. A non-shell
   foreign hook is left unchanged with a warning because composing it would be
   unsafe.

3. Verify the project through the available Codebase Memory MCP interface with
   `index_status` or `list_projects`.
4. Report node and edge counts when available.
5. Tell the user that `.cbmignore` is tracked and should be committed. The Git
   hook is clone-local, so rerun onboarding after a fresh clone.

The initial index uses full mode. Post-commit indexing uses fast mode in a
detached process. Re-running onboarding is idempotent.

Repositories dominated by YAML, prose, or shell may produce a thin graph; say
so rather than refusing to index them.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ConnorGriffin](https://github.com/ConnorGriffin)
- **Source:** [ConnorGriffin/skills](https://github.com/ConnorGriffin/skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-connorgriffin-skills-cbm-onboard
- Seller: https://agentstack.voostack.com/s/connorgriffin
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
