graph-colorize

Rewrite Obsidian graph.json colorGroups to color nodes by tag, category, or visibility.

Updated Apr 27, 2014
One-click install
npx skills add https://github.com/Nirajkashyap/nirajkashyap.github.io --skill graph-colorize-nirajkashyap
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: graph-colorize
Source: https://github.com/Nirajkashyap/nirajkashyap.github.io/tree/main/.agents/skills/graph-colorize
Command: npx skills add https://github.com/Nirajkashyap/nirajkashyap.github.io --skill graph-colorize-nirajkashyap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Color-code the Obsidian graph view by rewriting the vault's .obsidian/graph.json colorGroups. The skill generates a colorGroups array from the vault's actual tags/categories and merges it into the existing graph.json without clobbering other graph settings. It always backs up first.

Core Features & Use Cases

  • Builds a colorGroups palette from vault tags (top 10) or folders and applies it to graph.json without overwriting other settings.
  • Automatically backs up the existing graph.json before applying changes and preserves user preferences.
  • Supports multiple modes (by-tag, by-category, by-visibility, combined, custom) for flexible graph coloring.
  • Uses a defined color palette to ensure colorblind-friendly distinctions across tags, folders, and visibility cues.

Quick Start

Run graph-colorize to generate colorGroups from vault tags and apply them to .obsidian/graph.json, then reload Obsidian.

Frequently Asked Questions about graph-colorize

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

FAQPage Schema
How do I color-code my Obsidian graph view by tags?▼

Color-coding an Obsidian graph view by tags is done by rewriting the vault's graph.json colorGroups. This skill generates a palette from your top 10 vault tags and merges it into the existing graph.json without overwriting your other graph settings.

Can I color Obsidian graph nodes by folder instead of tags?▼

Yes, you can color Obsidian graph nodes by folder. The skill supports multiple coloring modes including by-tag, by-category, by-visibility, combined, and custom, allowing you to build a colorGroups palette from your vault's folders.

Does coloring the Obsidian graph view overwrite my existing graph settings?▼

Coloring the Obsidian graph view does not overwrite existing settings. The skill performs a read-backup-write sequence, automatically backing up your graph.json first and merging the new colorGroups while preserving your user preferences.

Are the Obsidian graph tag colors colorblind-friendly?▼

The Obsidian graph tag colors are colorblind-friendly. The skill uses a defined color palette to ensure colorblind-friendly distinctions are maintained across all tags, folders, and visibility cues.

How do I apply generated color groups to the Obsidian graph.json file?▼

To apply generated color groups to graph.json, run the skill to generate the palette from your vault tags or folders and write it to .obsidian/graph.json. You then need to reload Obsidian to see the updated graph visualization.

What is the best way to back up Obsidian graph settings before changing colors?▼

The best way to back up Obsidian graph settings before changing colors is using a skill that automatically performs a read-backup-write sequence. This ensures your original graph.json file is recoverable and user preferences are preserved.