mori-graph

mori-graph is a skill for Claude Code, Codex from Unique-Divine/jiyuu. It costs 161 tokens per session (1,168 once invoked), scanned A, original, MIT.

A local code graph and code memory tool that maps functions, documents, and service calls across repositories. It answers structural questions such as who calls a function or how a change may affect other code, including links between GraphQL clients and servers.

In plain words
What is it for?
Use it to explore call relationships, trace changes across repositories, connect API operations to implementations, and retain indexed code context between sessions.
Why use it?
It reduces the need to read many files just to discover how code is connected. The graph provides leads for investigation, while important claims still need confirmation in the source.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to explore call relationships, trace changes across repositories, connect API operations to implementations, and retain indexed code context between sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unique-divine/jiyuu/mori-graph
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.

Any agent
npx skills add Unique-Divine/jiyuu --skill mori-graph
Clone the repo
git clone --depth 1 https://github.com/Unique-Divine/jiyuu

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 mori-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/unique-divine/jiyuu/mori-graph/github.svg)](https://agentmods.dev/skills/unique-divine/jiyuu/mori-graph)
Your own site
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/mori-graph"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/mori-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mori-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/mori-graph"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/mori-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00161 $0.01168
Opus 5.5 $0.00064 $0.00467
Sonnet 5.5 $0.00032 $0.00234
Haiku 4.5 $0.00016 $0.00117

Measured 4d ago against content hash dbc7f084f8d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mori-graph 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 4d 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.

ai-skills/mori-graph/SKILL.md · 92 lines

How it starts

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

Mori Graph

Mori indexes repositories into a local graph (SQLite) and answers structural questions through MCP tools: who calls a function, what a change affects, which document section explains a symbol, and how services in different repos call each other. It parses with Tree-sitter, resolves calls with typed, LSP-style resolution where the language allows, and keeps the graph between sessions as code memory. A graph query costs far fewer tokens than reading files, but it's a lead, not proof: confirm material claims in source.

Mori lives in mori/ of https://github.com/Unique-Divine/jiyuu and ships as mori/v* releases. It carries GraphQL cross-repo linking (a GraphQL client operation links to the gqlgen resolver that answers it). The MCP server key is mori-graph, so the tools are mcp__mori-graph__search_graph and so on. Use the mori executable from the published archive. Mori 0.13.1 uses codebase-memory-mcp for rollback. Read setup.md to install, register, and index; graphql.md for API questions across repos; tool-source.md to work on Mori itself.

Start of a Task

  1. list_projects: pick the project whose root_path contains the working directory and pass its name as project, never a folder name.
  2. index_status for that project. A stale or missing index answers wrong; reindex first (see setup.md).
  3. Choose an evidence tier (below), then query.

Which Tool

Question Call
Who calls X? trace_path(direction="inbound")
What does X call? trace_path(direction="outbound")
Find a symbol search_graph(name_pattern=".*Name.*"), then get_code_snippet
Find the lexicon term that documents a symbol query_graph on MENTIONS from Section to the symbol. See Graph Links.
Exact text search_code
Calls between services or repos query_graph with Cypher on HTTP_CALLS, GRAPHQL_CALLS, CROSS_*
Effect of local changes detect_changes()
Dead code search_graph(max_degree=0, exclude_entry_points=true)
Repo overview get_architecture

Read the full file on GitHub · 92 lines

Files

What ships with it

4 files 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. 4d ago Changed · +1 lines dbc7f084f8d9
  2. 8d ago First seen · 91 lines · 161 tokens per session scan A c6fba60e7abd

Subscribe to this mod's changes

mori-graph is a skill published in the GitHub repository Unique-Divine/jiyuu (7 stars, last pushed today), licensed MIT. It adds 161 tokens to every session and 1,168 once invoked, about $0.0006 per session on Opus 5.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-11-22.

Related

mori-graph compared with skills from other repositories

mori-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mori-graphUnique-Divine/jiyuuSkill7todayMITA161Claude Code, Codex
goericrisco/rsc-harnessSkill6824d agoMITA86Claude Code, Codex
memory-indexdimetron/pi-goSkill2326d agoMITA0Claude Code, Codex
memory-minedimetron/pi-goSkill2326d agoMITA35Claude Code
memory-statusdimetron/pi-goSkill2326d agoMITA27Claude Code
functions-developmentCrowdStrike/foundry-skillsSkill389d agoMITA195Claude Code
structpagesjackielii/structpagesSkill2420d agoBSD-3-ClauseA154Claude Code