codemeridian-context

A repository-context helper for projects indexed by CodeMeridian, a codebase analysis and relationship graph. It finds the smallest relevant set of code context before work begins.

In plain words
What is it for?
Use it before implementing features, refactoring, deleting code, debugging, reviewing impact, changing public APIs, or planning tests.
Why use it?
It reduces the need to read many unrelated files and helps reveal how a change may affect the rest of the codebase. It also checks whether the graph is current before relying on exact relationships.

Skill for Claude CodeCodex

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/driftya/code-meridian/codemeridian-context
Any agent
npx skills add Driftya/code-meridian --skill codemeridian-context
Clone the repo
git clone --depth 1 https://github.com/Driftya/code-meridian

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,349 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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 $0.00029 $0.01349
Opus 5 $0.00015 $0.00674
Sonnet 5 $0.00006 $0.00270
Haiku 4.5 $0.00003 $0.00135

Measured 2d ago against content hash daa5f1ad2d9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codemeridian-context 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 2d 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.

docs/agent-capabilities/skills/codemeridian-context/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CodeMeridian Context Skill

Use this skill when working in a repository indexed by CodeMeridian.

The goal is to gather the smallest useful context pack before reading many files or making code changes.

projectContext can be found in meridian.json in field project.

When To Use

Use this skill before:

  • implementing a non-trivial change
  • planning or starting a feature from a request or docs/features/*.md
  • refactoring code
  • deleting code
  • changing public APIs
  • debugging unfamiliar behavior
  • reviewing impact
  • planning tests
  • modifying architecture-sensitive code

If the task touches HTML, CSS, SCSS, selectors, style imports, or CSS variables, pair this skill with codemeridian-frontend so the context routing stays frontend-aware.

Workflow

1. Check Graph Freshness

When exact file targets, symbol names, or relationships matter, check whether the graph is fresh.

Prefer:

  • check_graph_freshness
  • find_graph_drift

If the graph is stale, incomplete, or uncertain, say so before relying on exact results.

Session Evidence

During an implementation session, always record provider-neutral session evidence under .meridian/sessions/*.jsonl so codemeridian evaluate-session can measure whether CodeMeridian helped.

Write one compact JSON object per line. Omit fields that do not apply.

Use this event shape:

{"timestamp":"<ISO-8601 UTC time>","provider":"<codex|copilot|claude|continue|other>","project":"MyApp","kind":"<graph-call|codemeridian-tool|suggestion|tool-result|command|manual-fallback|test-run|stale-warning>","toolName":"<CodeMeridian MCP tool name when applicable>","command":"<shell command when applicable>","targetConfidence":"<exact|file-only|heuristic|stale, comma-separated if needed>","staleWarning":<true|false>,"contextPackStatus":"<full|degraded|failed when recording build_minimal_context results>","changeKind":"<direct-edit|extract|move|rename|split when lineage applies>","derivedFromFiles":["<repo-relative suggested source file>"],"derivedFromSymbols":["<source symbol when known>"],"plannedFolders":["<repo-relative target folder>"],"plannedNamespaces":["<target namespace>"],"files":["<repo-relative file path>"],"tests":["<repo-relative test file path>"]}

Read the full file on GitHub · 163 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 163 lines · 29 tokens per session scan A daa5f1ad2d9d

Subscribe to this mod's changes

codemeridian-context is a skill published in the GitHub repository Driftya/code-meridian (4 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 1,349 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

graph

Whole-codebase structural map of the codanna index as one self-contained HTML disc. Wedges per top-level module, concentric rings with hubs at the centre, hover or click a symbol to light its edge web, search, hide or highlight modules, brush a date range on the ribbon timeline (symbols dated by git blame), heatmap of…

bartolli/codanna · 131 tokens

x-ray

Deep codebase exploration using semantic search and relationship mapping. Use when you need to understand the current codebase.

bartolli/codanna · 25 tokens

use-ivygrep

Gather focused local repository context with ivygrep before implementing, debugging, reviewing, or explaining code. Use for coding tasks involving unfamiliar paths, branch changes, stack traces, architectural relationships, callers, dependents, tests, configuration, or documentation. Prefer one bounded context pack…

bvolpato/ivygrep · 65 tokens

memtrace-first

Route code discovery, debugging, flow tracing, how-code-works questions, and pre-edit rationale checks in indexed source-code repos to Memtrace graph plus Cortex decision tools. Use first before searching/reading code, and before editing, refactoring, deleting, or re-picking an approach that may have a recorded…

syncable-dev/memtrace-public · 115 tokens

memtrace-style-fingerprint

Pull the codebase's empirical style norm from Memtrace and match it when writing or editing source code in an indexed repo. Use when choosing between competing idioms (ternary vs if-else, arrow vs function declaration, const vs let, await vs .then, early-return vs nested-return), matching naming case, or when the user…

syncable-dev/memtrace-public · 111 tokens

memtrace-decision-memory

Use Cortex decision memory through the normal Memtrace MCP tools. Trigger for free-text questions about what was decided, chosen, rejected, banned, or established as a convention; for why a symbol exists or which contracts constrain it; for whether a known decision held, drifted, or was violated; and for the…

syncable-dev/memtrace-public · 137 tokens