roam

roam is a skill for Claude Code from Cranot/roam-code. It costs 86 tokens per session (2,460 once invoked), scanned A, original, Apache-2.0.

Instructions for exploring a codebase with roam-code, a command-line tool that builds a searchable map of files, symbols, dependencies, and call relationships.

In plain words
What is it for?
Use it to map a project, find symbols, inspect files or modules, trace dependencies, plan changes, debug failures, and identify affected tests.
Why use it?
It helps developers understand unfamiliar code and estimate what a change may affect without relying only on repeated text searches.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the roam-code plugin — 9 skills, 1 MCP server shipped together

Good fit Use it to map a project, find symbols, inspect files or modules, trace dependencies, plan changes, debug failures, and identify affected tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cranot/roam-code/roam
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 Cranot/roam-code --skill roam
Clone the repo
git clone --depth 1 https://github.com/Cranot/roam-code

Made for: Claude Code.

Or install roam-code, the plugin that ships this one along with the rest of its 9 skills, 1 MCP server.

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 roam

README.md
[![agentmods](https://agentmods.dev/badge/skills/cranot/roam-code/roam/github.svg)](https://agentmods.dev/skills/cranot/roam-code/roam)
Your own site
<a href="https://agentmods.dev/skills/cranot/roam-code/roam"><img src="https://agentmods.dev/badge/skills/cranot/roam-code/roam/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 roam

Your own site · 80×15
<a href="https://agentmods.dev/skills/cranot/roam-code/roam"><img src="https://agentmods.dev/badge/skills/cranot/roam-code/roam.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,460 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00086 $0.02460
Opus 5.5 $0.00034 $0.00984
Sonnet 5.5 $0.00017 $0.00492
Haiku 4.5 $0.00009 $0.00246

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

Security

Grade A, and why

roam 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 1mo 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/roam/SKILL.md · 276 lines

How it starts

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

Roam — Codebase Comprehension Skill

Repository: https://github.com/Cranot/roam-code

Roam pre-indexes codebases into a semantic graph (symbols, dependencies, call graphs, architecture layers, git history) stored in a local SQLite DB. Query it via CLI instead of repeatedly grepping files and guessing structure.

Setup

Ensure roam-code is installed and the project is indexed:

pip install roam-code   # or: pipx install roam-code
cd <project-root>
roam init               # indexes codebase, creates .roam/index.db

After git pull or major changes, run roam index to refresh (incremental, near-instant if few files changed). After large refactors: roam index --force.

Command Decision Table

Use this table to pick the right command for the situation:

Situation Command
First time in a repo roam understand then roam tour
Need a compact codebase overview roam map or roam minimap
Find a symbol by name roam search <pattern>
Need files to read for a symbol roam context <symbol>
Inspect a file's structure roam file <path>
Inspect a directory roam module <path>
Before modifying a symbol roam preflight <symbol>
What breaks if I change X? roam impact <symbol>
Blast radius of uncommitted changes roam diff
Debugging a failure roam diagnose <symbol>
Which tests cover a symbol? roam affected-tests <symbol>
Check codebase health roam health
Find hotspots (churn x complexity) roam weather
Detect dead/unused code roam dead
PR risk assessment roam pr-risk
Find dependency paths roam trace <source> <target>
Who calls/imports this? roam uses <symbol> (alias: roam refs)
Find every reference to X (replaces multi-shape grep) roam refs <symbol>
Algorithm anti-patterns roam algo
Side effects of a function roam effects <symbol>
Safe to delete? roam safe-delete <symbol>
Simulate a refactor `roam simulate move

Read the full file on GitHub · 276 lines

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. 1mo ago Changed ccc01fb57f0b
  2. 3mo ago First seen · 276 lines · 86 tokens per session scan A a78d680a0947

Subscribe to this mod's changes

roam is a skill published in the GitHub repository Cranot/roam-code (517 stars, last pushed today), licensed Apache-2.0. It adds 86 tokens to every session and 2,460 once invoked, about $0.0003 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-08-30.

Related

roam compared with skills from other repositories

roam next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
roamCranot/roam-codeSkill517todayApache-2.0A86Claude Code
agentmapraymondchins/agentmapSkill501mo agoMITA64Claude Code
dekko-verifyaahlijia/dekkoSkill611d agoMITA151Claude Code
dekko-sanityaahlijia/dekkoSkill611d agoMITA87Claude Code
dekko-doctoraahlijia/dekkoSkill611d agoMITA77Claude Code
dekko-refactoraahlijia/dekkoSkill611d agoMITA125Claude Code
dekko-debugaahlijia/dekkoSkill611d agoMITA120Claude Code