graph-colorize
增强图谱可视化,便于按标签或文件夹区分笔记集群。
会直接修改 .obsidian/graph.json,修改前应备份原配置以防丢失。
通过重写 .obsidian/graph.json 为 Obsidian 图谱视图着色分组节点。
把 Obsidian 的图谱节点按标签、文件夹或可见性着色,让图谱一眼看出分组和层级关系。使用场景是想把笔记按主题或类别高亮、提高可视化辨识度时。实现时会生成并合并 colorGroups 到 .obsidian/graph.json,先做备份且不覆盖其他图谱设置,比较安全。
▸ 展开 SKILL.md 英文原文
Color-code the Obsidian graph view by rewriting `.obsidian/graph.json` colorGroups. Use this skill when the user says "color my graph", "color code obsidian", "colorize the graph", "color the graph by tag", "color by category", "highlight visibility in graph", "make the graph colorful", "distinguish tags in graph", or wants nodes in Obsidian's graph view tinted by tag, folder, or visibility. Generates a `colorGroups` array from the vault's actual tags/categories and merges it into the existing graph.json without clobbering other graph settings. Always backs up first.
帮我安装这个 skill:https://raw.githubusercontent.com/Ar9av/obsidian-wiki/main/.skills/graph-colorize/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/Ar9av/obsidian-wiki/main/.skills/graph-colorize/SKILL.md"# 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` → `~/.obsidian-wik