# setup-codemap-cli

Configures the Codemap CLI utility to inspect project file trees and module dependencies. Helpful when giving an AI agent clear architectural context across Git branches.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1200 installs · ★ 1787
- Author: NeoLabHQ
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/setup-codemap-cli/SKILL.md
- Updated: 2026-08-26
- HTML: https://affpapa.org/en/nevibecode/skills/setup-codemap-cli

## What it does

The skill verifies whether `codemap` is installed via `codemap -help` and runs the appropriate Homebrew or Scoop installation if it is missing. Once the binary is present, it tests the CLI with `codemap .` before editing any project files.

It prompts you to pick one of three storage levels: shared project config in `CLAUDE.md`, local untracked rules in `CLAUDE.local.md`, or global user settings under `~/.claude/`. The workflow writes navigation instructions into the markdown file, explains flags like `--diff` or `--deps`, and adds `.codemap/` to `.gitignore`.

For automated context, the assistant registers hooks inside `settings.json`. The default `session-start` hook inspects branch changes and `git status` immediately when a session begins. Without Homebrew or Scoop available in your terminal, automatic binary installation will fail.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-codemap-cli -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/setup-codemap-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/setup-codemap-cli/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-codemap-cli -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/setup-codemap-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-codemap-cli -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/setup-codemap-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install NeoLabHQ/context-engineering-kit setup-codemap-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/setup-codemap-cli/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-codemap-cli -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/NeoLabHQ/context-engineering-kit --path skills/setup-codemap-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/setup-codemap-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-codemap-cli -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/setup-codemap-cli/SKILL.md

## When to use it
- install Codemap CLI across macOS, Linux, or Windows
- inject codebase navigation rules into `CLAUDE.md`
- configure lifecycle hooks to track Git status and diffs on session start
- inspect file importers and dependency flows during edits

## Example prompts
- Set up Codemap CLI for this repository
- Install Codemap CLI and add hooks to my global ~/.claude/settings.json
- Run setup-codemap-cli using local untracked settings in CLAUDE.local.md

## Similar
- [gitnexus-cli](https://affpapa.org/en/nevibecode/skills/gitnexus-cli.md) — skill · 870 installs
- [acquire-codebase-knowledge](https://affpapa.org/en/nevibecode/skills/acquire-codebase-knowledge.md) — skill · 2200 installs
- [cyrus-setup-github](https://affpapa.org/en/nevibecode/skills/cyrus-setup-github.md) — skill · 1000 installs
- [cyrus-setup-gitlab](https://affpapa.org/en/nevibecode/skills/cyrus-setup-gitlab.md) — skill · 785 installs
- [auto-repo-setup](https://affpapa.org/en/nevibecode/skills/auto-repo-setup.md) — skill · 469 installs
- [sentry-setup-releases](https://affpapa.org/en/nevibecode/skills/sentry-setup-releases.md) — skill · 1500 installs

From the same set: [neolabhq/context-engineering-kit](https://affpapa.org/en/nevibecode/by/neolabhq/context-engineering-kit.md) — 55 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
