graph-colorize

Generate colorGroups from vault metadata and merge them into Obsidian's graph.json.

3.2k|320|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Ar9av/obsidian-wiki --skill graph-colorize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graph-colorize
Source: https://github.com/Ar9av/obsidian-wiki/tree/main/.skills/graph-colorize
Command: npx skills add https://github.com/Ar9av/obsidian-wiki --skill graph-colorize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill rewrites Obsidian's graph.json colorGroups so the graph view tints nodes by tag, folder, or visibility, helping you visually distinguish vault structure at a glance while preserving existing settings.

Core Features & Use Cases

  • Color by tag: generate color groups from the top tags used in your vault and apply distinct colors.
  • Color by category/folder: color nodes by top-level folders (concepts, entities, skills, references, synthesis, projects, journal) to reflect your vault's organization.
  • Safe merging & backups: backs up the current graph.json and merges the new colorGroups without clobbering other graph settings, ensuring you can revert if needed.
  • Use Case: you want the graph to clearly differentiate concepts by tag and folder for quick navigation during knowledge-building sessions.

Quick Start

Run the colorize operation to generate colorGroups from your vault and update .obsidian/graph.json.

Frequently Asked Questions about graph-colorize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I color the Obsidian graph view by tags and folders?

You can color the Obsidian graph by generating a colorGroups array from vault metadata and merging it into graph.json. This skill supports by-tag, by-category, by-visibility, combined, or custom mapping modes to tint nodes based on your vault structure.

Does modifying graph.json color groups overwrite my existing graph view settings?

No, modifying graph.json color groups does not overwrite existing settings. The process preserves non-colorGroup fields during the merge, ensuring your current graph configurations remain intact while only updating the color assignments.

How many distinct colors are used when colorizing the Obsidian graph?

The Obsidian graph colorization uses a palette of ten distinct colors. These colors are automatically assigned to differentiate top tags or top-level folders like concepts, entities, and projects within your vault's graph view.

What is the safest way to update graph.json color groups without losing data?

The safest way to update graph.json color groups is by creating a backup before writing. This skill automatically backs up the current graph.json file prior to merging the new colorGroups array, allowing you to revert if needed.

Can I use custom color mappings for the Obsidian graph view?

Yes, you can use custom color mappings for the Obsidian graph view. The skill supports by-tag, by-category, by-visibility, combined, and custom mapping modes to generate the colorGroups array from your specific vault metadata.

Do I need a valid graph.json file before colorizing the Obsidian vault graph?

Yes, you need a valid graph.json file ready in your vault before colorizing. The skill requires an existing .obsidian/graph.json file to read, back up, and merge the newly generated colorGroups array into successfully.