ck-get-keyword-map

star 21

Build a seed-to-related keyword map from indexed results. Use when file-first retrieval is weak/noisy and you need fallback folder scoping with ck find-files.

Fredrik-C By Fredrik-C schedule Updated 6/6/2026

name: ck-get-keyword-map description: Build a seed-to-related keyword map from indexed results. Use when file-first retrieval is weak/noisy and you need fallback folder scoping with ck find-files.

ck get-keyword-map — Query Precision Helper

Use this for the fallback scope path, not as the default first step. Default discovery is ck find-files; run ck get-keyword-map when you need to pivot to ck find-files.

Syntax

.claude/skills/ck/ck get-keyword-map --query "<multi-keyword description>" [--must "<provider>"] [--top <n>] [--per-keyword <n>]

Options

Option Default Description
--query <text> required Multi-keyword description of the area you need
--must <text> off Required provider/concept focus (repeatable)
--top <n> 12 Number of top semantic folders analyzed
--per-keyword <n> 50 Related terms returned per seed keyword (adaptive: may return fewer when quality drops)
--repo <path> auto Repo root
--verbose off Prints index build/refresh progress

Query Wording (Important)

  • Use lexical query terms that likely exist in indexed code metadata: path/folder words, file-name words, type names, and method/member words.
  • Avoid natural-language questions; this command works best with concrete code-like tokens.
  • Use 3-7 high-signal terms (domain + workflow + operation/symbol).

Good:

  • adyen terminal card-present refund
  • inventory reservation allocate async

Weak:

  • where is refund logic
  • how does this feature work

Output shape

  • matched-query-keywords: query terms that were found in top folders
  • unmatched-query-keywords: query terms not found in top folders
  • global-keyword-hints: top hints from the current result scope
  • keyword-map: per-seed related terms (seed: t1, t2, ...)

Usage pattern

  1. Run ck find-files --query "..." --task "..." first
  2. If file-first results are weak/noisy, run ck get-keyword-map --query "..."
  3. Then run ck find-files --query "..." --task "..." using precision terms from step 2
  4. Folders from find-files are source of truth for fallback exploration
Install via CLI
npx skills add https://github.com/Fredrik-C/ContextKing --skill ck-get-keyword-map
Repository Details
star Stars 21
call_split Forks 3
navigation Branch main
article Path SKILL.md
More from Creator