Context Navigator
Context Navigator is an index system skill for Markdown-heavy workspaces. It can create a lightweight map for a messy folder, read an existing map without wasting context, validate index structure, and keep indexes current as the workspace grows.
The core promise: make folders AI-readable without turning every task into a recursive scan.
First Gate: Explicit Use and File Changes
If the user explicitly says to use this skill and the request may create, update, move, or delete files, do not start editing immediately.
First provide a concise plan that states:
- the chosen mode: Navigate, Bootstrap, Maintain, or Validate
- the workspace scope that will be touched
- the likely files or directories to inspect
- the likely files to create or update
- the validation command or review check to run
Then wait for the user's confirmation before modifying files. If the user already confirmed the plan or says to proceed, continue. Pure read-only Navigate work does not need this extra confirmation.
Workflow
- Choose a mode: Navigate, Bootstrap, Maintain, or Validate.
- Locate the smallest relevant workspace scope.
- Prefer existing entry files before reading body documents.
- Open or inspect only enough files to understand durable structure.
- Create, update, or validate indexes only for important long-term folders.
- Report what was planned or changed, what was read, what was skipped, and what remains a gap.
Modes
| Mode |
Use when |
Primary action |
Do not use when |
| Navigate |
Indexes already exist and the user asks a question, asks where to start, or asks for decision/doc tracing |
Read indexes, then 1-3 relevant body files |
The user asked to create or repair indexes |
| Bootstrap |
The user asks to organize a Markdown workspace, create indexes, make folders AI-readable, or onboard agents into a docs-heavy workspace with no durable entry map |
Create a root map and key domain indexes |
A repository only needs ordinary source-code analysis |
| Maintain |
Existing indexes are stale because durable docs were added, moved, renamed, archived, or authority paths changed |
Update the nearest relevant index instead of rebuilding everything |
No durable docs or routes changed |
| Validate |
The user asks whether indexes follow the expected structure, or before/after Bootstrap or Maintain |
Run the bundled validator and fix schema/link issues when confirmed |
The workspace has no intended Context Navigator index system |
Trigger Thresholds
Use Bootstrap only when at least one of these is true:
- the user explicitly asks to bootstrap, organize, index, or make a Markdown workspace AI-readable
- the workspace has no durable root entry and has several long-term Markdown areas
- a folder mixes current authority, decisions, notes, reports, or archive material and future agents would not know where to start
- agents have already needed manual file listings to understand the same area
Use Maintain only when an existing index system is present and at least one of these is true:
- a durable document was added, moved, renamed, deleted, or archived
- an authority source or preferred entry file changed
- an index links to a missing path
- a child folder grew enough to need its own index
- the index schema or required sections fail validation
Do not trigger for vague phrases like "this repo is messy" unless the user also asks for docs/index organization or the workspace is clearly Markdown-heavy.
Request Types
| Scenario |
Action |
| User names one exact file |
Read that file directly |
| User asks about a topic, directory, project, or knowledge area |
Start from the nearest workspace or domain index |
| User asks why something was decided |
Start from the decision index, then read the linked decision record |
| User asks to bootstrap or organize indexes |
Read references/bootstrap-workflow.md, then create the smallest useful index system |
| User asks to maintain stale indexes |
Read references/maintenance-rules.md, then update only the nearest affected indexes |
| User asks to validate indexes |
Run scripts/validate_indexes.py from the skill folder |
| No index exists during ordinary navigation |
List only the current directory one level deep, choose the most relevant 1-3 files, and report the index gap |
| User explicitly asks for a full audit |
State that this bypasses progressive disclosure, then follow the user's instruction |
Non-Markdown and Code Repository Boundary
For code-heavy repositories, this skill is a docs navigation layer, not a replacement for source analysis.
Prefer native code entry points for implementation work:
README.md, package manifests, build config, and test config
- source entry files, route definitions, public APIs, and type definitions
- existing architecture docs or
docs/INDEX.md only when they exist and are relevant
Do not generate indexes for every source directory. Create or maintain a docs index only when the repository has durable Markdown documentation, architecture notes, decisions, specs, runbooks, or project docs that future agents need to route through.
Index Priority
Prefer the smallest index that can route the task.
| Scope |
Preferred entry |
| Whole workspace |
CONTEXT.md, README.md, AGENTS.md, or a root INDEX.md |
| Project or app |
Project README.md, then docs/INDEX.md if present |
| Domain knowledge |
Domain INDEX.md |
| Decisions |
decisions/INDEX.md or equivalent decision log |
| Skill or procedural docs |
The relevant SKILL.md, then only linked references |
If several entry points exist, pick the one that most directly matches the user's wording. Do not widen the search just because more documentation exists.
Reading Protocol
- Read the entry index and extract candidate paths, authority sources, and routing rules.
- Select 1-3 candidate body files that directly answer the task.
- Read those files in full.
- If the answer is still under-supported, continue one level along the indexes.
- Stop once the user-facing answer has enough evidence.
Bootstrap Protocol
When asked to create an index system, read references/bootstrap-workflow.md and references/index-template.md.
Default outputs:
- root
CONTEXT.md for a workspace-level map, unless a root README.md or INDEX.md is clearly the better entry point
INDEX.md for durable domains, docs folders, decision logs, or recurring note/report folders
- a final report listing created indexes, skipped folders, and remaining gaps
Do not index everything. Skip dependency folders, build outputs, generated exports, hidden internals, caches, temporary folders, and archives unless the user explicitly includes them.
Maintain Protocol
When asked to maintain indexes, read references/maintenance-rules.md.
Default behavior:
- identify the nearest existing
CONTEXT.md, INDEX.md, or established README.md
- inspect only affected paths and their immediate parent index
- update routing, authority paths, gaps, and maintenance notes for durable doc changes
- remove or mark stale links when files moved or were archived
- run
scripts/validate_indexes.py <workspace-root> when the workspace uses the schema
Never rebuild all indexes just because one route is stale.
Validation Protocol
When asked to validate or after Bootstrap/Maintain, run:
python scripts/validate_indexes.py <workspace-root>
The validator checks Context Navigator index files for required frontmatter, required sections, and broken local links. Treat failures as actionable schema issues. If fixing them would modify files and the user has not confirmed a change plan, present the plan first.
Report Format
When this skill is used for discovery, tracing, or synthesis, include a compact source note:
Read indexes: `CONTEXT.md`, `docs/INDEX.md`
Read full files: `docs/architecture.md`
Not expanded: `archive/`, unrelated app docs
Gaps: `docs/decisions/` has no `INDEX.md`
For tiny tasks, use a sentence instead of a block.
Guardrails
- Do not recursively read all Markdown files as the first move.
- Do not treat a file listing as an index unless no index exists.
- Do not build embeddings, a vector store, a database, or a custom search tool for the first pass.
- Do not open every related document merely because it is nearby.
- Do not cite "the docs" vaguely; name the indexes and full files you actually read.
- Do not convert temporary search results into authority. Authority comes from indexes or documents those indexes point to.
Creating Indexes
When asked to create or review indexes, read references/index-template.md. A durable index should explain:
- what the scope covers
- what is outside the scope
- where authority sources live
- how common tasks should route
- what not to read first
- how the index should be maintained
New or substantially rewritten indexes should use the context-navigator/v1 frontmatter schema from references/index-template.md. Existing legacy indexes can be maintained without bulk migration unless validation or user request requires schema adoption.
Reference Routing
| Need |
Read |
| Bootstrap a new index system |
references/bootstrap-workflow.md and references/index-template.md |
| Create or review an index |
references/index-template.md |
| Validate reading behavior during a task |
references/navigation-checklist.md |
| Keep an indexed workspace healthy over time |
references/maintenance-rules.md |
| Validate index schema and local links |
Run scripts/validate_indexes.py |
Adjacent Patterns
- RAG and embeddings retrieve chunks; Context Navigator decides what source path the agent should follow.
- Codebase scanners generate maps; Context Navigator teaches the agent how to use and maintain maps.
- Obsidian links connect notes; Context Navigator defines what an AI should read first.
AGENTS.md gives agent instructions; Context Navigator gives documentation navigation discipline.
- Subagents may help with large read-only audits, but this portable skill does not hide any required subagent path. If a local installation adds agents, document when to call them in the local wrapper or project instructions.
1---2name: context-navigator3description: Bootstrap, navigate, maintain, and validate lightweight index systems for Markdown-heavy workspaces through hierarchical CONTEXT.md and INDEX.md files. Use when a user asks to make a docs folder, Obsidian vault, decision log, personal knowledge base, research folder, or project workspace AI-readable; asks where to start reading without recursively scanning every Markdown file; asks to create, review, repair, or validate workspace/domain indexes; or when existing indexes are missing, stale, or inconsistent. Do not use as the primary codebase navigation tool for ordinary TypeScript/Python/etc. source analysis, single-file edits, small bug fixes, or repositories whose useful entry points are package manifests, types, tests, and source structure rather than Markdown docs. When the user explicitly says to use this skill for a change that will create or edit files, first present a concise change plan and wait for confirmation before modifying files.4---56# Context Navigator78Context Navigator is an index system skill for Markdown-heavy workspaces. It can create a lightweight map for a messy folder, read an existing map without wasting context, validate index structure, and keep indexes current as the workspace grows.910The core promise: make folders AI-readable without turning every task into a recursive scan.1112## First Gate: Explicit Use and File Changes1314If the user explicitly says to use this skill and the request may create, update, move, or delete files, do not start editing immediately.1516First provide a concise plan that states:1718- the chosen mode: Navigate, Bootstrap, Maintain, or Validate19- the workspace scope that will be touched20- the likely files or directories to inspect21- the likely files to create or update22- the validation command or review check to run2324Then wait for the user's confirmation before modifying files. If the user already confirmed the plan or says to proceed, continue. Pure read-only Navigate work does not need this extra confirmation.2526## Workflow27281. Choose a mode: Navigate, Bootstrap, Maintain, or Validate.292. Locate the smallest relevant workspace scope.303. Prefer existing entry files before reading body documents.314. Open or inspect only enough files to understand durable structure.325. Create, update, or validate indexes only for important long-term folders.336. Report what was planned or changed, what was read, what was skipped, and what remains a gap.3435## Modes3637| Mode | Use when | Primary action | Do not use when |38|---|---|---|---|39| Navigate | Indexes already exist and the user asks a question, asks where to start, or asks for decision/doc tracing | Read indexes, then 1-3 relevant body files | The user asked to create or repair indexes |40| Bootstrap | The user asks to organize a Markdown workspace, create indexes, make folders AI-readable, or onboard agents into a docs-heavy workspace with no durable entry map | Create a root map and key domain indexes | A repository only needs ordinary source-code analysis |41| Maintain | Existing indexes are stale because durable docs were added, moved, renamed, archived, or authority paths changed | Update the nearest relevant index instead of rebuilding everything | No durable docs or routes changed |42| Validate | The user asks whether indexes follow the expected structure, or before/after Bootstrap or Maintain | Run the bundled validator and fix schema/link issues when confirmed | The workspace has no intended Context Navigator index system |4344## Trigger Thresholds4546Use Bootstrap only when at least one of these is true:4748- the user explicitly asks to bootstrap, organize, index, or make a Markdown workspace AI-readable49- the workspace has no durable root entry and has several long-term Markdown areas50- a folder mixes current authority, decisions, notes, reports, or archive material and future agents would not know where to start51- agents have already needed manual file listings to understand the same area5253Use Maintain only when an existing index system is present and at least one of these is true:5455- a durable document was added, moved, renamed, deleted, or archived56- an authority source or preferred entry file changed57- an index links to a missing path58- a child folder grew enough to need its own index59- the index schema or required sections fail validation6061Do not trigger for vague phrases like "this repo is messy" unless the user also asks for docs/index organization or the workspace is clearly Markdown-heavy.6263## Request Types6465| Scenario | Action |66|---|---|67| User names one exact file | Read that file directly |68| User asks about a topic, directory, project, or knowledge area | Start from the nearest workspace or domain index |69| User asks why something was decided | Start from the decision index, then read the linked decision record |70| User asks to bootstrap or organize indexes | Read `references/bootstrap-workflow.md`, then create the smallest useful index system |71| User asks to maintain stale indexes | Read `references/maintenance-rules.md`, then update only the nearest affected indexes |72| User asks to validate indexes | Run `scripts/validate_indexes.py` from the skill folder |73| No index exists during ordinary navigation | List only the current directory one level deep, choose the most relevant 1-3 files, and report the index gap |74| User explicitly asks for a full audit | State that this bypasses progressive disclosure, then follow the user's instruction |7576## Non-Markdown and Code Repository Boundary7778For code-heavy repositories, this skill is a docs navigation layer, not a replacement for source analysis.7980Prefer native code entry points for implementation work:8182- `README.md`, package manifests, build config, and test config83- source entry files, route definitions, public APIs, and type definitions84- existing architecture docs or `docs/INDEX.md` only when they exist and are relevant8586Do not generate indexes for every source directory. Create or maintain a docs index only when the repository has durable Markdown documentation, architecture notes, decisions, specs, runbooks, or project docs that future agents need to route through.8788## Index Priority8990Prefer the smallest index that can route the task.9192| Scope | Preferred entry |93|---|---|94| Whole workspace | `CONTEXT.md`, `README.md`, `AGENTS.md`, or a root `INDEX.md` |95| Project or app | Project `README.md`, then `docs/INDEX.md` if present |96| Domain knowledge | Domain `INDEX.md` |97| Decisions | `decisions/INDEX.md` or equivalent decision log |98| Skill or procedural docs | The relevant `SKILL.md`, then only linked references |99100If several entry points exist, pick the one that most directly matches the user's wording. Do not widen the search just because more documentation exists.101102## Reading Protocol1031041. Read the entry index and extract candidate paths, authority sources, and routing rules.1052. Select 1-3 candidate body files that directly answer the task.1063. Read those files in full.1074. If the answer is still under-supported, continue one level along the indexes.1085. Stop once the user-facing answer has enough evidence.109110## Bootstrap Protocol111112When asked to create an index system, read `references/bootstrap-workflow.md` and `references/index-template.md`.113114Default outputs:115116- root `CONTEXT.md` for a workspace-level map, unless a root `README.md` or `INDEX.md` is clearly the better entry point117- `INDEX.md` for durable domains, docs folders, decision logs, or recurring note/report folders118- a final report listing created indexes, skipped folders, and remaining gaps119120Do not index everything. Skip dependency folders, build outputs, generated exports, hidden internals, caches, temporary folders, and archives unless the user explicitly includes them.121122## Maintain Protocol123124When asked to maintain indexes, read `references/maintenance-rules.md`.125126Default behavior:127128- identify the nearest existing `CONTEXT.md`, `INDEX.md`, or established `README.md`129- inspect only affected paths and their immediate parent index130- update routing, authority paths, gaps, and maintenance notes for durable doc changes131- remove or mark stale links when files moved or were archived132- run `scripts/validate_indexes.py <workspace-root>` when the workspace uses the schema133134Never rebuild all indexes just because one route is stale.135136## Validation Protocol137138When asked to validate or after Bootstrap/Maintain, run:139140```bash141python scripts/validate_indexes.py <workspace-root>142```143144The validator checks Context Navigator index files for required frontmatter, required sections, and broken local links. Treat failures as actionable schema issues. If fixing them would modify files and the user has not confirmed a change plan, present the plan first.145146## Report Format147148When this skill is used for discovery, tracing, or synthesis, include a compact source note:149150```markdown151Read indexes: `CONTEXT.md`, `docs/INDEX.md`152Read full files: `docs/architecture.md`153Not expanded: `archive/`, unrelated app docs154Gaps: `docs/decisions/` has no `INDEX.md`155```156157For tiny tasks, use a sentence instead of a block.158159## Guardrails160161- Do not recursively read all Markdown files as the first move.162- Do not treat a file listing as an index unless no index exists.163- Do not build embeddings, a vector store, a database, or a custom search tool for the first pass.164- Do not open every related document merely because it is nearby.165- Do not cite "the docs" vaguely; name the indexes and full files you actually read.166- Do not convert temporary search results into authority. Authority comes from indexes or documents those indexes point to.167168## Creating Indexes169170When asked to create or review indexes, read `references/index-template.md`. A durable index should explain:171172- what the scope covers173- what is outside the scope174- where authority sources live175- how common tasks should route176- what not to read first177- how the index should be maintained178179New or substantially rewritten indexes should use the `context-navigator/v1` frontmatter schema from `references/index-template.md`. Existing legacy indexes can be maintained without bulk migration unless validation or user request requires schema adoption.180181## Reference Routing182183| Need | Read |184|---|---|185| Bootstrap a new index system | `references/bootstrap-workflow.md` and `references/index-template.md` |186| Create or review an index | `references/index-template.md` |187| Validate reading behavior during a task | `references/navigation-checklist.md` |188| Keep an indexed workspace healthy over time | `references/maintenance-rules.md` |189| Validate index schema and local links | Run `scripts/validate_indexes.py` |190191## Adjacent Patterns192193- RAG and embeddings retrieve chunks; Context Navigator decides what source path the agent should follow.194- Codebase scanners generate maps; Context Navigator teaches the agent how to use and maintain maps.195- Obsidian links connect notes; Context Navigator defines what an AI should read first.196- `AGENTS.md` gives agent instructions; Context Navigator gives documentation navigation discipline.197- Subagents may help with large read-only audits, but this portable skill does not hide any required subagent path. If a local installation adds agents, document when to call them in the local wrapper or project instructions.