🗂️
AI EngineeringTypeScript

Context Index

by mksglu

Context Index is an AI Engineering skill for Claude Code, published by mksglu in context-mode.

19.9K stars1.4K forkson mksglu/context-modeAdded 2026/08/14Repository updated 2026/08/13
antigravityclaudeclaude-codeclaude-code-hooksclaude-code-pluginsclaude-code-skillcodexcodex-clicontext-modecopilotcursor-pluginkiromcpmcp-servermcp-toolsopenclawopencodepi-agentskillszed-extension
Install in seconds
Install Context Index
Copy Context Index into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-index ~/.claude/skills/ctx-index

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mksglu/context-mode.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/ctx-index/SKILL.md in mksglu/context-mode
Installs to
~/.claude/skills/ctx-index
Collection
One of 11 skills cataloged from this repository
Category
AI Engineering2451 skills

What Context Index does

Context Index indexes a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading raw files.

Context Index is cataloged under AI Engineering on DirSkills. Context Index comes from a repository tagged antigravity, claude, claude-code, claude-code-hooks and claude-code-plugins.

Documentation

README

Context Mode Index

Index local project content for later search.

Instructions

  1. Prefer the ctx_index MCP tool when it is available.
  2. Ask for a path only if the user did not provide one and the current project root is ambiguous.
  3. Use path, not large inline content, so file bytes do not enter the conversation.
  4. For repository indexing, pass conservative bounds and a clear source label:
ctx_index({
  path: ".",
  source: "project:<name>",
  maxDepth: 5,
  maxFiles: 200
})
  1. If MCP tools are unavailable, fall back to the CLI:
context-mode index . --source project:<name>
  1. Report the indexed source label, file count or section count, and the matching search command:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Context Index

  • What else does mksglu publish alongside Context Index?

    Context Index is one of 11 skills that DirSkills catalogs from mksglu/context-mode, the repository it ships in. Its siblings there include Context Mode, Context Mode and Context Mode. Each one is a separate skill with its own page in this directory, installs the same way Context Index does, and is maintained by mksglu in that same repository. The rest of the collection is listed on the mksglu/context-mode page.

  • How does Context Index compare to other AI Engineering skills?

    Context Index ranks #265 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Context Index against them. Open each page to compare what they document and how they install.

More from mksglu/context-mode

Context Index is one of 11 skills cataloged on DirSkills from mksglu/context-mode.

See all 11 skills
🧠
2w ago

Context Mode

Context Mode provides mandatory routing rules for Antigravity CLI's context-mode MCP tools when exploring codebases, reading files for analysis, searching, parsing, and running data-heavy commands. Use it to route file reads, batch repository commands, index content, and retrieve answers with reduced context.
AI Engineering
19.9K1.4K
🧠
2w ago

Context Mode

Context Mode enforces mandatory routing rules that keep raw bytes out of an agent's context window. Use it when analyzing, counting, filtering, comparing, searching, parsing, or transforming data, fetching URLs, or running data-heavy commands.
AI Engineering
19.9K1.4K
🧠
2w ago

Context Mode

Context Mode routes commands and file reads that may produce large output to context-mode tools (ctx_execute, ctx_execute_file) instead of Bash or cat, keeping the agent's context window clean. Use it whenever analyzing logs, parsing data, running tests, fetching docs, or processing MCP tool output that may exceed 20 lines.
AI Engineering
19.9K1.4K
🩺
2w ago

Context Mode Doctor

Context Mode Doctor runs diagnostics on the Context Mode plugin and reports the status of runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Use it to troubleshoot Context Mode installations and verify all components are working correctly.
DevOps
19.9K1.4K
📊
2w ago

Context Mode Insight

Context Mode Insight opens the hosted analytics dashboard in your default browser so engineering teams can view per-engineer productive rate, retry waste, blocker detection, and role-narrowed views. Use it when you need to access the Context Mode analytics layer quickly.
Data
19.9K1.4K
🤖
2w ago

Context Mode Ops

Context Mode Ops orchestrates a parallel subagent army to manage issues, PRs, releases, and marketing tasks. Use it for triaging issues, reviewing PRs, releasing versions, writing LinkedIn posts, announcing releases, fixing bugs, and testing adapters.
AI Engineering
19.9K1.4K