graph-colorize

仓库创建 2026年4月6日最近提交 23 天前SkillHot 收录 20 天前
▸ 精选理由

增强图谱可视化,便于按标签或文件夹区分笔记集群。

▸ 风险提示

会直接修改 .obsidian/graph.json,修改前应备份原配置以防丢失。

这个 Skill 做什么

通过重写 .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.

办公文档图谱着色Obsidian配置可视化通用
2.7k
Stars
274
Forks
35
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Ar9av/obsidian-wiki/main/.skills/graph-colorize/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Ar9av/obsidian-wiki/main/.skills/graph-colorize/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有