Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

graph-colorize

Skill by Ar9av

Configures Obsidian graph view colors by tag, folder, or visibility tag by rewriting the colorGroups setting in a vault's graph.json. Intended for Obsidian users who want a color-coded graph.

  • Score 84
  • 3.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install graph-colorize

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Ar9av/obsidian-wiki /tmp/obsidian-wiki && mkdir -p ~/.claude/skills && cp -r /tmp/obsidian-wiki/.skills/graph-colorize ~/.claude/skills/graph-colorize

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install graph-colorize in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Graph Colorize is an agent skill that sets node colors in the Obsidian graph view. It edits the colorGroups array in the vault's .obsidian/graph.json file. It supports five modes: by-tag, by-category (vault top-level folders), by-visibility (visibility/pii, internal, public), combined (visibility then tag), and custom mappings given by the user. Each color uses a fixed 10-color palette, and the first matching query wins for each node.

Before writing, the skill backs up the existing graph.json with a timestamped name. It replaces only colorGroups and leaves other graph settings such as zoom, physics, filters and display unchanged. It then logs the change to log.md. The skill is for users of Obsidian vaults who want their graph view color-coded, and it makes no changes to page content or frontmatter.

Written from the project's SKILL.md and checked against it.

What it can do

  • By-tag modeColors the top 10 tags by usage, skipping visibility/* tags.
  • By-category modeColors the seven fixed vault folders that contain Markdown files.
  • By-visibility modeColors visibility/pii, visibility/internal and visibility/public pages.
  • Combined modeApplies visibility colors first, then tag colors, so visibility wins on conflict.
  • Custom modeApplies user-supplied query and hex color mappings, converting hex to packed integers.
  • Backup and mergeBacks up graph.json before writing and rewrites only the colorGroups field.
  • Undo and clearRestores from the latest backup, or clears all color groups on request.

What you need

  • An Obsidian vault with a .obsidian folder (vault opened once in Obsidian)
  • OBSIDIAN_VAULT_PATH set through the llm-wiki config resolution protocol

Try asking

  • Color my Obsidian graph by tag
  • Color my graph by folder, keeping my other graph settings
  • Color my graph by visibility tags so pii and internal pages stand out

Good to know

  • Obsidian overwrites graph.json on close, which can erase the changes, so Obsidian should be closed or reloaded after the edit.
  • The vault's .obsidian folder must already exist; the skill does not create it.
  • By-tag mode caps at 10 colors, so remaining tags share an other color.
  • In by-visibility mode, pages with no visibility tag keep Obsidian's default color.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .skills/graph-colorize/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to graph-colorize

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

graph-colorize: common questions

Does this change my notes or frontmatter?

No. The source says it is a pure config edit to .obsidian/graph.json, with no page content or frontmatter writes.

What happens if Obsidian is open while I run it?

The source warns that Obsidian overwrites graph.json on close, so the colors can be lost. It advises closing Obsidian first or reloading right after the change.

Can I undo a graph colorization?

Yes. The source says to restore from the latest graph.json.backup file, and to note the restore in log.md.

How do I install graph-colorize?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is graph-colorize free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is graph-colorize safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to graph-colorize?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

graph-colorize Install

Add to stack

Loading.