ck-index

ck-index is a skill for Claude Code, Codex from Fredrik-C/ContextKing. It costs 39 tokens per session (422 once invoked), scanned A, original, no licence file.

A source-map index for a code repository, recording where files and code elements are located.

In plain words
What is it for?
Use it to build or refresh the Context King index manually. Normal file searches can build it automatically the first time.
Why use it?
It helps keep repository search results accurate after switching branches or when the index needs a complete rebuild.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fredrik-c/contextking/ck-index
Any agent
npx skills add Fredrik-C/ContextKing --skill ck-index
Clone the repo
git clone --depth 1 https://github.com/Fredrik-C/ContextKing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ck-index

README.md
[![agentmods](https://agentmods.dev/badge/skills/fredrik-c/contextking/ck-index.svg)](https://agentmods.dev/skills/fredrik-c/contextking/ck-index)
Your own site
<a href="https://agentmods.dev/skills/fredrik-c/contextking/ck-index"><img src="https://agentmods.dev/badge/skills/fredrik-c/contextking/ck-index.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 422 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00422
Opus 5 $0.00019 $0.00211
Sonnet 5 $0.00008 $0.00084
Haiku 4.5 $0.00004 $0.00042

Measured 6d ago against content hash 6022fad2a336, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ck-index scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ck-index/SKILL.md · 52 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 52 lines · 39 tokens per session scan A 6022fad2a336

Subscribe to this mod's changes

ck-index is a skill published in the GitHub repository Fredrik-C/ContextKing (22 stars, last pushed 5d ago), with no licence file. It adds 39 tokens to every session and 422 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

codex-memory-trim

Manage Codex's native global memory (/.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global (add a custom global rule/preference). Use when the user asks to 精简/清理/整理/压缩 Codex 记忆, 去重, 简化冗长记忆, 添加/写入/修改全局记忆 or a…

Yu-Xiao-Sheng/codex-memory-trim · 108 tokens

ai-history

Search and browse AI coding assistant chat history across providers (Claude Code, Codex CLI, Cursor). Find past conversations, inject historical context into the current session, and search across all chat records. Powered by the ai-history CLI tool.

jiantao88/ai-history · 52 tokens

ai-history

Search and browse AI coding assistant chat history across providers (Claude Code, Codex CLI, Cursor). Find past conversations, inject historical context into the current session, and search across all chat records. Use when asked to find past conversations, load context from previous sessions, or search chat history.

jiantao88/ai-history · 64 tokens

research-wiki

Persistent research knowledge base that accumulates papers, ideas, experiments, claims, and their relationships across the entire research lifecycle. Inspired by Karpathy's LLM Wiki pattern. Use when user says "知识库", "research wiki", "add paper", "wiki query", "查知识库", or wants to build/query a persistent field map.

wanshuiyin/Auto-claude-code-research-in-sleep · 73 tokens

mnemon

Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.

mnemon-dev/mnemon · 25 tokens

mnemon

Persistent memory for MiniMax Code. Recall durable context, store important facts and decisions, and link related memories with the mnemon CLI.

mnemon-dev/mnemon · 30 tokens