Plan Mode Visualizer — Development skill for Claude Code
Claude Code skill: turn Plan-mode clarifying questions into an interactive HTML preview.
How to install Plan Mode Visualizer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Antony7e4/plan-mode-visualizer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Plan Mode Visualizer does
Claude Code skill: turn Plan-mode clarifying questions into an interactive HTML preview.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- Understand Anything — Claude Code skills that turn any codebase into an interactive knowledge graph you can explore, search, and ask 2.5k ★
- Overture Instructions — Overture - Agent Plan Visualizer 612 ★
README
Plan Mode Visualizer
一个 Claude Code skill:在 Plan 模式需要反问你澄清问题时,生成一个交互式 HTML 预览,让你在点选前**看到**备选方案(布局、配色、流程、层级),一键把选择复制回终端。
简体中文 · [English](README_en.md)
安装
一行命令安装到 Claude Code 的用户 skills 目录:
git clone https://github.com/Antony7e4/plan-mode-visualizer.git ~/.claude/skills/plan-mode-visualizer
重启 Claude Code 或开一个新会话即可生效。
它做什么
当 Claude Code 进入 **Plan 模式**(或你说「采访我」/「先问我几个问题再开始」)时,Claude 通常会抛出一串文字问题。但对于设计风格、UI 布局、组件样式等问题,光靠文字很难清晰地理解。
这个 skill 会在这些时刻介入,生成**一个独立的 HTML 文件**:
- 把每个备选方案用合适的保真度呈现——线框图(布局类)、高保真 mockup(视觉风格类)、Mermaid 流程图(流程 / 状态机类)。
- 让你点击选择,并在合适的场景提供实时预览(比如点「深色」→ 示例 UI 立刻换色)。
- 把所有选择汇总在底部常驻栏,点击「复制答案」就把格式化好的字符串写进剪贴板:
你粘贴回终端作为回答即可。Q1: A (卡片布局) Q2: B (深色主题) Q3: A (顶部导航)
只有一个 HTML 文件,用 `file://` 打开,不需要服务器、不需要构建。Tailwind 和 Mermaid 通过 CDN 加载。
触发条件(以及不触发的情况)
**同时**满足以下两条才会触发:
- 上下文条件 —— Claude Code 处于 Plan 模式,或者你明确要求进入澄清 / 采访流程。
- 内容条件 —— 至少有一个待问的问题带有明显的视觉 / 空间 / 流程 / 层级维度。会触发的例子:
- 布局类:「顶部导航 vs 侧边导航」「2×2 网格 vs 单排横向」
- 视觉风格类:「浅色 vs 深色」「圆角 vs 直角按钮」
- 流程 / 状态类:「同步处理 vs 异步队列」
- 层级结构类:「组件树形状」「数据 schema 嵌套」
**不会触发**的场景:纯技术选型(Postgres vs MySQL、超时值、库版本等),或者你已经要求快速回答。过度触发会制造噪音,这是明确的反模式。
三个实际场景(Dashboard 页面、文件上传、缓存策略)见 [`assets/example-questions.md`](assets/example-questions.md),演示了应触发和不应触发的判定过程。
在 Plan 模式里的位置
┌───────────────────────────┐
│ 你:帮我做一个 Dashboard │
│ (Plan 模式) │
└─────────────┬─────────────┘
│
▼
Claude 起草澄清问题
│
有视觉维度?── 否 ──▶ 仅在终端提问
│
是
│
▼
Skill 生成 plan-<时间戳>.html
│
▼
Claude 在终端输出路径 + 问题清单
│
▼
你打开 HTML → 点选 → 复制
│
▼
在终端粘贴「Q1: A Q2: B …」
│
▼
Claude 继续开始实施
目录结构
plan-mode-visualizer/
├── SKILL.md ← skill 定义,Claude Code 启动时加载
├── assets/
│ ├── template.html
Related Skills
Claude Setup
Interactive project setup wizard. Scans the codebase, asks clarifying questions, installs tools, and generates
Chapter To Synced Lecture
Turn a book chapter (PDF) into a lecture given by its author: HTML slides driven by narration, questions the a
Explain Diff HTML
Turn pull requests and code diffs into interactive HTML walkthroughs that explain the logical flow of a change
Paper Humanizer
Claude Code skill: turn a PDF research paper into an interactive HTML reading aid for non-native English reade
Poi Precision Map
Agent Skill: turn "find every X in region Y and pin them one by one" into a verified, point-by-point interacti
Mindmap Generator
Generate an interactive dark-mode Markmap HTML mindmap where EVERY flashcard is visible as a Front → Back node
Related Agents
Oneshot Discuss
Interactive requirements gathering with the human operator. Asks focused clarifying questions, updates a requi
User Proxy Agent
Autonomous User Surrogate & Strategic Decision Proxy. Operates in Auto Mode to answer clarifying questions and
📊 Interactive Mode Implementation - Validation Report
Date: 2025-10-04 Version: 1.2.0 Status: ✅ ALL TESTS PASSED 📝 Update (2025-10-05): HTML files consolidated to