enhanced-markdown
Guide LLMs to output markdown that fully utilizes Markdown Viewer extension rendering capabilities including Mermaid, Vega-Lite, Infographic, DOT diagrams…
Skill by Dwsy
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dwsy-enhanced-markdown
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/enhanced-markdown
What's inside
- Skill name
enhanced-markdown- Description
- Guide LLMs to output markdown that fully utilizes Markdown Viewer extension rendering capabilities including Mermaid, Vega-Lite, Infographic, DOT diagrams, and HTML styling for maximum human readability.
- License
- MIT
- Instructions
- 512 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 512 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Enhanced Markdown Output Skill
让大模型输出充分利用 Markdown Viewer 扩展渲染能力的内容。
## 核心原则
> **人类可读性优先** —— 选择让读者理解最快的呈现方式,而非最炫技的方式。
---
## 渲染能力速查
| 能力 | 语法标记 | 最佳场景 | 复杂度 |
|------|---------|---------|--------|
| **Mermaid** | `mermaid` | 流程、架构、时序、类图 | ★☆☆ |
| **Vega-Lite** | `vega-lite` | 数据可视化、统计图表 | ★★☆ |
| **Canvas** | `canvas` | 思维导图、知识图谱 | ★★☆ |
| **DOT** | `dot` | 复杂关系、依赖树、状态机 | ★★☆ |
| **Infographic** | `infographic` | 统计图表、进度展示 | ★☆☆ |
| **LaTeX** | `$...$` / `$$...$$` | 数学公式、方程 | ★☆☆ |
| **合并表格** | HTML `colspan/rowspan` | 复杂报表、跨行跨列 | ★☆☆ |
| **内联 HTML** | `<tag>` | 样式增强、彩色标签 | ★☆☆ |
> 不确定具体语法?去 `~/dev/ai/markdown-viewer-extension/docs/features/` 查对应文档。
---
## 路由决策树
```
内容类型判断
│
├─► 有数据要展示?
│ ├─ 时间序列/对比 → Vega-Lite 图表
│ ├─ 占比/分布 → Infographic 饼图/柱状图
│ └─ 简单统计 → 表格
│
├─► 有流程/步骤?
│ ├─ 线性流程 (A→B→C) → Mermaid flowchart LR
│ ├─ 复杂分支 (多条件判断) → Mermaid flowchart TD
│ ├─ 系统交互 → Mermaid sequenceDiagram
│ └─ 代码执行流程 → 代码块 + 注释
│
├─► 有架构/组件关系?
│ ├─ 简单层级 → Mermaid graph TD
│ ├─ 复杂拓扑 → DOT graph
│ ├─ 云服务架构 → drawio (如需要精确图标)
│ └─ 概念关联 → Canvas 思维导图
│
├─► 有数学/算法?
│ ├─ 行内公式 → `$E=mc^2$`
│ ├─ 方程组 → `$$...$$` 块
│ └─ 算法步骤 → 编号列表 + 关键行 LaTeX
│
└─► 纯文本内容?
├─ 重点突出 → HTML `<mark>`, `<span style="color:">`
├─ 状态标签 → HTML `<span style="background:">badge</span>`
└─ 结构清晰 → 标准 Markdown 层级
```
---
## 渐进式文档策略(全栈开发版)
根据文档用途和读者角色选择复杂度层级:
| 层级 | 目标读者 | 文档形式 | 图表密度 | 示例场景 |
|------|---------|---------|---------|---------|
| **L1-草稿** | 自己/AI | 速记要点 | 0% | 需求梳理、BUG记录 |
| **L2-讨论** | 团队成员 | 结构化描述 | 20% | PRD评审、技术方案讨论 |
| **L3-交付** | 跨团队协作 | 完整文档+关键图 | 40% | API文档、部署指南 |
| **L4-存档** | 未来维护者 | 全面可视化 | 60%+ | 架构文档、运维手册 |
### 渐进判定标准
```
问题 → 回答 → 决策
是否需要快速迭代?
├─ 是 → L1-草稿(纯文本速记)
└─ 否 → 继续
是否需要多人讨论?
├─ 是 → L2-讨论(结构化+Mermaid流程)
└─ 否 → 继续
是否需要长期维护?
├─ 是 → L4-存档(完整图表+版本记录)
└─ 否 → L3-交付(关键路径可视化)
```
---
## 编程场景模板路由
### 路由总览
```
开发阶段 → 文档类型 → 推荐渲染方式
需求分析
├─ 用户故事 → 文本 + 验收清单
├─ 业务流程 → Mermaid flowchart
└─ 数据流图 → Mermaid sequenceDiagram
架构设计
├─ 系统架构 → Mermaid graph TB / drawio
├─ 模块关系 → DOT digraph
├─ ERD设计 → Mermaid erDiagram
└─ 技术选型 → 对比表格 + Infographic卡片
编码实现
├─ API设计 → Mermaid sequenceDiagram
├─ 状态机 → Mermaid stateDiagram
├─ 类图 → Mermaid classDiagram
└─ 错误处理 → Mermaid flowchart(异常分支标注红)
测试部署
├─ 测试策略 → DOT图(覆盖路径)From Dwsy/agent, MIT.
More from Dwsy/agent
- 0.604score
grok-pi-herdr-orchestration
Dwsy
使用 Herdr 和 shell 脚本创建、驱动、监控和停止 grok-pi 子代理,适合只读代码探索、仓库研究、资料整理和需要可见终端进度的长任务;当用户提到 grok-pi、Herdr、Grok 子代理、研究代理、后台代理或要求定期检查子代理进度时使用。
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-best-practices
Dwsy
Best practices for writing and maintaining high-quality role memories.
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
gaokao-question-research
Dwsy
系统研究高考数学真题,基于题目结构、设问梯度、评分逻辑和历年变化反推可验证的命题意图,并转化为学生可训练的“看到什么→想到什么→为什么”方法。用于单题深度拆解、同专题跨年研究、同年跨卷比较、易错点分析和高质量变式设计。
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-recall
Dwsy
Recall prior role memory when cross-session context materially affects the current task.
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-organize
Dwsy
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
SkillBFreshness: B★ 24Claude Code +9 - 0.593score
memory-retro
Dwsy
Save insights from completed tasks to role memory.
SkillBFreshness: B★ 24Claude Code +9 - 0.592score
gapp-generative-bridge
Dwsy
Operate Glimpse-APPs with progressive context — app list in system, domain detail via tools on demand.
SkillBFreshness: B★ 24Claude Code +9 - 0.557score
web-browser
Dwsy
Allows to interact with web pages by performing actions such as clicking buttons, filling out forms, and navigating links.
SkillCFreshness: C★ 24Claude Code +9 - 0.557score
ui-transition-motion
Dwsy
Use when user asks to design, choose, explain, or implement UI transitions, motion patterns, easing/timing choices, state-change animations, shared-element…
SkillCFreshness: C★ 24Claude Code +9 - 0.554score
pi-log-analyzer
Dwsy
Pi Agent 日志分析工具,用于分析 .log/ 目录下的结构化 JSONL 日志。支持按时间/角色/模块/模型多维分析,识别警告模式,生成可视化报告。当用户提到"分析日志"、"查看日志"、"日志统计"、"log分析"、"最近活动"、"模型使用"、"会话分析"时使用此技能。
SkillCFreshness: C★ 24Claude Code +9 - 0.554score
refactoring-guide
Dwsy
重构指南 - 66种重构技术的中文参考手册。当用户需要重构代码、优化代码结构、消除代码异味(code smells)、改善代码可读性时使用。触发词:重构、refactor、代码优化、代码异味、code smell、提取函数、内联、搬移函数、简化条件、整理继承。基于 Refactoring.Guru 的权威内容。
SkillCFreshness: C★ 24Claude Code +9 - 0.554score
design-patterns-guide
Dwsy
设计模式指南 - 22种经典设计模式的中文参考手册。当用户需要选择合适的设计模式、改善代码架构、解决对象创建/组合/通信问题时使用。触发词:设计模式、design pattern、工厂模式、单例、观察者、策略模式、适配器、代理、装饰器、架构设计。基于 Refactoring.Guru 的权威内容。
SkillCFreshness: C★ 24Claude Code +9
Signals
- Stars
- 24
- Forks
- 3
- Open issues
- 42
- Last commit (this folder)
- Feb 10, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Dwsy/agent
- Website
- dwsy.github.io/agent/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Dwsy
- 0.604score
grok-pi-herdr-orchestration
Dwsy
使用 Herdr 和 shell 脚本创建、驱动、监控和停止 grok-pi 子代理,适合只读代码探索、仓库研究、资料整理和需要可见终端进度的长任务;当用户提到 grok-pi、Herdr、Grok 子代理、研究代理、后台代理或要求定期检查子代理进度时使用。
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
gaokao-question-research
Dwsy
系统研究高考数学真题,基于题目结构、设问梯度、评分逻辑和历年变化反推可验证的命题意图,并转化为学生可训练的“看到什么→想到什么→为什么”方法。用于单题深度拆解、同专题跨年研究、同年跨卷比较、易错点分析和高质量变式设计。
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-organize
Dwsy
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-recall
Dwsy
Recall prior role memory when cross-session context materially affects the current task.
SkillBFreshness: B★ 24Claude Code +9 - 0.596score
memory-best-practices
Dwsy
Best practices for writing and maintaining high-quality role memories.
SkillBFreshness: B★ 24Claude Code +9 - 0.593score
memory-retro
Dwsy
Save insights from completed tasks to role memory.
SkillBFreshness: B★ 24Claude Code +9
Cite this page
enhanced-markdown skill. Agent Mart. https://agentmart.dev/skills/dwsy-enhanced-markdown (last updated 2026-10-24)