ck index — Source Map Index Management

SkillFiles & storage

Build or update the Context King source-map index. Rarely needed explicitly — ck find-files auto-builds on first use. Useful after branch switches or to force a full rebuild.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ck index — Source Map Index Management skill

What this skill tells your AI

The instructions your AI receives, as published by fredrik-c/contextking in skills/ck-index/SKILL.md and read by ahel’s review.

Under normal usage the index is built automatically on the first call to ck find-files. Use this skill explicitly when you need precise control over the index state.

When to use explicitly

  • After git checkout <branch> in the same worktree, to refresh the index without waiting for the next ck find-files call.
  • After a large merge or rebase that changed many files.
  • To force a full rebuild (--force) if the index appears incorrect.
  • To check whether the index is current without triggering a search.

Commands

Mac / Linux:

# Check status
.claude/skills/ck/ck index --status

# Incremental update (only changed folders re-embedded)
.claude/skills/ck/ck index

# Full rebuild
.claude/skills/ck/ck index --force

Windows (PowerShell):

.claude\skills\ck\ck.cmd index [--status] [--force]

Options

OptionDescription
--statusPrint fresh, stale, or missing and exit
--forceDelete existing index and rebuild from scratch
--repo <path>Repo root (defaults to git rev-parse --show-toplevel)

Index properties

  • Stored at <worktree-root>/.ck-index/index.db (gitignored).
  • Each linked worktree has its own index; no action needed when switching between worktrees.
  • Incremental update only re-embeds folders where any tracked file's git object hash changed.
  • Index is per-worktree; git checkout in the same worktree makes it stale.

Signals

GitHub stars
22
Forks
3
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
ck-index
Source
github.com/fredrik-c/contextking