ar9av avatar

Graph Colorize

Color-code the Obsidian graph view by tag, folder, or visibility, backing up graph.json before each change.

CCM score
72 of 100
skills.sh installs
2.8K
GitHub stars
3.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers five modes: by-tag, by-category, by-visibility, combined, and custom, inferred from the user's phrasing
  • Builds a colorGroups array from a fixed 10-color colorblind-friendly palette, with stable folder-to-color mapping
  • Rewrites only the colorGroups field in .obsidian/graph.json, leaving zoom, physics, filter, and display settings intact
  • Designed for Obsidian vaults where the user wants nodes tinted by tag or folder and warns that Obsidian overwrites graph.json on close

Install

$ npx -y skills add ar9av/obsidian-wiki --skill graph-colorize -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Graph Colorize — Color-code the Obsidian Graph View

You are rewriting $OBSIDIAN_VAULT_PATH/.obsidian/graph.json so Obsidian's graph view tints nodes by tag, folder, or visibility.

Obsidian stores graph settings in <vault>/.obsidian/graph.json. The colorGroups array is a list of {query, color} pairs; the first matching query wins per node. Queries use Obsidian's search syntax: tag:#foo, path:"concepts", file:foo, etc. Color is {"a": 1, "rgb": <packed-int>} where the int is (R << 16) | (G << 8) | B.

Before You Start

  1. Resolve config — follow the Config Resolution Protocol in llm-wiki/SKILL.md (inline @name override → walk up CWD for .env → global config → prompt setup). This gives OBSIDIAN_VAULT_PATH.
  2. Confirm $OBSIDIAN_VAULT_PATH/.obsidian/ exists. If it doesn't, the vault has never been opened in Obsidian — tell the user to open the vault once in Obsidian, then re-run.
  3. Warn the user if Obsidian is likely open: Obsidian overwrites graph.json on close. Tell them to close the vault first, or be ready to reload (Cmd/Ctrl+R) and not touch the graph settings until they reload.

Step 1: Pick a Mode

Details

Repository
github.com/ar9av/obsidian-wiki
Categories
Productivity & Notes, Design & UI/UX
First seen
May 16, 2026

More from ar9av/obsidian-wiki

All 34

Similar to Graph Colorize

More Productivity & Notes