Visualize
它能做什么
生成一份简短摘要和一个设计好的页面,用于讲解项目、实体设置、时间线、比较或其他任何主题。它适用于需要一眼看懂复杂事物的人。
适用场景
- ✓当你想通过视觉地图了解某个代码库或系统如何运作的时候。
- ✓当你想要一份按比例绘制的实体设置计划及其成本的时候。
- ✓当你想要一份比较、时间线或数据集的清晰视觉图的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Visualize/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这个项目的结构可视化,并为每条事实标注它来自哪个文件。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会根据主题选择合适的呈现方式,例如系统地图、实体规划或概念页面。页面上的每条事实都会注明来源,无论是文件、链接、引语还是一般知识;未经确认的内容会被标记出来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Visualize
Contents: Ideal State · Intent Routing · Data & Config · Split of work · Gotchas · Examples
Points at a project, repo, directory or ISA and leaves the principal understanding how it works: a concise ASCII map in the console and a designed HTML explanation saved next to the code. The purpose is that nothing runs in production that nobody understands.
Points at a physical plan (a gear setup, a rig, a room, a purchase list) and leaves the principal seeing it: a to-scale top-down drawing with the cost split, the full order and the open decisions, every fact quoted from the plan document.
Anything else (an idea, a comparison, a dataset, a timeline, a process) becomes one hand-built concept page with a short console summary. The skill never declines.
Ideal State
- Whatever is named gets visualized through the route that fits it (system map, physical plan or concept page), never declined and never squeezed into the wrong route.
- Every fact on a page says where it came from (a
fileorfile:line, a verbatim plan quote, a URL,computed, the principal's words orgeneral knowledge), and anything unconfirmed is labelled as such rather than stated. - The console summary alone tells the principal what the thing is and the one thing worth acting on, and the page holds the full picture, looked at in a real renderer before delivery.
- The subject is only read: the page (and a plan's model under USER) are the only writes, and no secret value lands on any page.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Visualize | "visualize" on code, "how does X work", "map this system", "explain this architecture" | Intents/Visualize.md |
| Plan | "visualize" on a physical thing: "visualize my drum/studio/desk plan", "lay out my setup", "draw my rig", "show me my order" | Intents/Plan.md |
| Concept | "visualize" on anything that is neither code nor a physical plan: an idea, a scientific question, a comparison, a dataset, a timeline, a process | Intents/Concept.md |
| File | Read when |
|---|---|
Setup.md |
first-time setup: the optional PREFERENCES.md keys and where saved plans live |
Data & Config
User customizations live at <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Visualize/ (configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude). When it exists, its PREFERENCES.md, configurations and resources override the defaults here, and plan models live under its Plans/; when absent, the defaults stand. PREFERENCES.md keys: ## Concept pages → Ground: (the page ground Concept uses; default is whatever suits the subject). Setup: Setup.md.
Split of work
The model reads the target and writes one typed system-model JSON. Tools/Visualize.ts owns everything after that: it refuses models whose citations do not resolve, prints the ASCII, lays out the SVG, and writes the page. The model never hand-writes ASCII art or HTML, which keeps every map consistent and the grounding check in code.
bun ~/.claude/skills/Visualize/Tools/Visualize.ts --schemaprints the model shape with an example.- Physical plans use
Tools/VisualizePlan.tswith the same flags and the same split: the model writes a plan-model JSON (--schemashows it), and the tool checks every{ file, quote }against the plan document before drawing the page. - Concept pages are the exception: the model hand-builds the page, because a fresh composition per subject is what makes them good.
Tools/Bake.tsowns the mechanical parts:--checkparses every inline script before any screenshot, and a bake writes a script-free copy for hosts that block scripts. - Every browser check serves the page over a local HTTP server, because the Interceptor test profile cannot read
file://.
Flags shared by both renderers (--check validates without writing):
| User says | Flag | Effect |
|---|---|---|
| (default) | — | Console output + page in the --root directory |
| "just show me", "console only", "no HTML" | --no-html |
Console output only |
| "put it in Downloads", "save it to X" | --out-dir <dir> |
Page lands in that directory instead |
| "wider", "narrow terminal" | --width <n> |
Console width (default 100) |
Gotchas
- "Visualize" on a physical plan is still this skill. A request to visualize a drum-kit order was once built as a hand-written one-off page because the description only named code. The Plan route and renderer exist
常见问题
它会拒绝某个主题吗?
不会。无论指定什么主题,它都会选择一种呈现方式。
它会更改它所可视化的对象吗?
不会。被可视化的对象只会被读取,从不被更改。
控制台摘要给我什么?
对该事物的简短解释,以及唯一值得采取行动的一点。
详情
作者的原始描述
Visualizes anything at all and never declines — a codebase, a physical setup, a timeline, a process, finances, a comparison, a concept, a URL, a dataset — as a short console summary plus a designed HTML page, every fact labelled with where it came from (a file quote, a URL, the principal's words, or general knowledge). USE WHEN visualize, visualize this, visualize my <anything>, visualize <project>, show me this visually, draw it, map it, lay it out, how does X work, explain this architecture, map this system, system map, architecture map, what are the moving parts, draw my setup, show me my p
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10472
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …