Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
neolabhq avatar

Setup Codemap Cli

  • 849 installs
  • 1.3k repo stars
  • Updated July 26, 2026
  • neolabhq/context-engineering-kit

setup-codemap-cli is a context-engineering-kit skill that configures Codemap CLI so coding agents can visualize, navigate, and reason over large codebases via project-level or personal CLAUDE.md and hook settings.

About

setup-codemap-cli from neolabhq context-engineering-kit guides installation and configuration of Codemap CLI for intelligent codebase visualization and navigation inside agent workflows. The skill first determines whether configuration lives at project level shared via git—updating ./CLAUDE.md and ./.claude/settings.json—or as personal preferences in ./CLAUDE.local.md untracked locally. Developers reach for setup-codemap-cli when agents struggle to orient in monorepos or large services and need Codemap-driven maps plus hook integration so Claude Code can reason over structure instead of blind file grepping. Optional argument hints capture OS type and configuration preferences, producing agent-ready Codemap wiring rather than manual trial-and-error CLI setup.

  • Determines and applies one of three configuration scopes: project-level shared, project-level personal, or user-level gl
  • Automatically checks for existing Codemap installation via command line
  • Loads and incorporates official Codemap documentation for accurate capability awareness
  • Updates the correct CLAUDE.md or settings files based on chosen persistence level
  • Ensures local preference files are added to .gitignore when using personal project config

Setup Codemap Cli by the numbers

  • 849 all-time installs (skills.sh)
  • +49 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #1,230 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/neolabhq/context-engineering-kit --skill setup-codemap-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs849
repo stars1.3k
Security audit0 / 3 scanners passed
Last updatedJuly 26, 2026
Repositoryneolabhq/context-engineering-kit

How do you set up Codemap CLI for coding agents?

Configure Codemap CLI so their coding agent can intelligently visualize, navigate, and reason over large codebases.

Who is it for?

Developers wiring Codemap CLI into Claude Code or similar agents to visualize and navigate large multi-package repositories.

Skip if: Small single-file projects that do not need codebase mapping or teams not using Claude Code hook and CLAUDE.md conventions.

When should I use this skill?

A developer asks to set up Codemap CLI, enable codebase visualization for agents, or configure CLAUDE.md hooks for navigation.

What you get

Codemap CLI installation, CLAUDE.md navigation rules, and .claude/settings.json hook configuration for codebase maps.

  • Codemap CLI config
  • CLAUDE.md navigation rules
  • .claude/settings.json hooks

Files

SKILL.mdMarkdownGitHub ↗

User Input:

$ARGUMENTS

Guide for setup Codemap CLI

1. Determine setup context

Ask the user where they want to store the configuration:

Options:

1. Project level (shared via git) - Configuration tracked in version control, shared with team

  • CLAUDE.md updates go to: ./CLAUDE.md
  • Hook settings go to: ./.claude/settings.json

2. Project level (personal preferences) - Configuration stays local, not tracked in git

  • CLAUDE.md updates go to: ./CLAUDE.local.md
  • Hook settings go to: ./.claude/settings.local.json
  • Verify these files are listed in .gitignore, add them if not

3. User level (global) - Configuration applies to all projects for this user

  • CLAUDE.md updates go to: ~/.claude/CLAUDE.md
  • Hook settings go to: ~/.claude/settings.json

Store the user's choice and use the appropriate paths in subsequent steps.

2. Check if Codemap is already installed

Check whether codemap is installed by running codemap -help.

If not installed, proceed with setup.

3. Load Codemap documentation

Read the following documentation to understand Codemap's capabilities:

  • Load <https://raw.githubusercontent.com/JordanCoin/codemap/refs/heads/main/README.md> to understand what Codemap is and its capabilities

4. Guide user through installation

macOS/Linux (Homebrew)

brew tap JordanCoin/tap && brew install codemap

Windows (Scoop)

scoop bucket add codemap https://github.com/JordanCoin/scoop-codemap
scoop install codemap

5. Verify installation

After installation, verify codemap works:

codemap .

6. Update CLAUDE.md file

Use the path determined in step 1. Once Codemap is successfully installed, update the appropriate CLAUDE.md file with the following content:

## Use Codemap CLI for Codebase Navigation

Codemap CLI is available for intelligent codebase visualization and navigation.

**Required Usage** - You MUST use `codemap --diff --ref master` to research changes different from default branch, and `git diff` + `git status` to research current working state.

### Quick Start

codemap . # Project tree codemap --only swift . # Just Swift files codemap --exclude .xcassets,Fonts,.png . # Hide assets codemap --depth 2 . # Limit depth codemap --diff # What changed vs main codemap --deps . # Dependency flow


### Options

| Flag | Description |
|------|-------------|
| `--depth, -d <n>` | Limit tree depth (0 = unlimited) |
| `--only <exts>` | Only show files with these extensions |
| `--exclude <patterns>` | Exclude files matching patterns |
| `--diff` | Show files changed vs main branch |
| `--ref <branch>` | Branch to compare against (with --diff) |
| `--deps` | Dependency flow mode |
| `--importers <file>` | Check who imports a file |
| `--skyline` | City skyline visualization |
| `--json` | Output JSON |

**Smart pattern matching** - no quotes needed:
- `.png` - any `.png` file
- `Fonts` - any `/Fonts/` directory
- `*Test*` - glob pattern

### Diff Mode

See what you're working on:

codemap --diff codemap --diff --ref develop

if the default branch is not main, but instead master (or something else) update content accordingly:

  • use codemap --diff --ref master instead of regular codemap --diff

7. Update .gitignore file

Update .gitignore file to include .codemap/ directory:

.codemap/

8. Test Codemap

Run a quick test to verify everything works:

codemap .
codemap --diff

9. Add hooks to settings file

  • Use the settings path determined in step 1. Create the settings file if it doesn't exist and add the following content:
    {
        "hooks": {
            "session-start": "codemap hook session-start && echo 'git diff:' && git diff --stat && echo 'git status:' && git status"
        }
    }

if default branch is not main, but instead master (or something else) update content accordingly:

  • use codemap hook session-start --ref=master instead of regular codemap hook session-start
  • For rest of commands also add --ref=master flag.
  • Ask user whether he want to add any other hooks and provide list of options with descriptions. Add hooks that he asks for.

Available Hooks

CommandTriggerDescription
codemap hook session-startSessionStartFull tree, hubs, branch diff, last session context
codemap hook pre-editPreToolUse (Edit\Write)
codemap hook post-editPostToolUse (Edit\Write)
codemap hook prompt-submitUserPromptSubmitHub context for mentioned files + session progress
codemap hook pre-compactPreCompactSaves hub state to .codemap/hubs.txt
codemap hook session-stopSessionEndEdit timeline with line counts and stats

Example of file with full hooks configuration

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook session-start"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook pre-edit"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook post-edit"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook prompt-submit"
          }
        ]
      }
    ],
    "PreCompact": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook pre-compact"
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "codemap hook session-stop"
          }
        ]
      }
    ]
  }
}

Related skills

How it compares

Use setup-codemap-cli when agents need structural codebase maps; plain ripgrep skills suffice for small repos without visualization tooling.

FAQ

Where does setup-codemap-cli store configuration?

setup-codemap-cli stores shared settings in ./CLAUDE.md and ./.claude/settings.json for git-tracked projects, or ./CLAUDE.local.md for personal preferences that stay out of version control.

What problem does Codemap CLI solve for agents?

Codemap CLI gives coding agents intelligent codebase visualization and navigation so they can reason over large repositories instead of relying on blind file search alone.

Is Setup Codemap Cli safe to install?

skills.sh reports 0 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.