prompt分享写md文档时候多用图表

风吹耳朵有点冷 2026-06-24 16:17 1

agent写md文档的时候不太主动用图表,会导致整个叙事不适合人看,特别是复杂流程和进度的时候,加上这个会好很多大伙试试,有用记得给个心心。


## Visual Documentation First

**Show, don't just tell. Use Diagram-as-Code to reduce cognitive load.**

- **Diagrams over text:** If explaining a flow, architecture, or dependency takes more than 3 paragraphs, draw a diagram instead.
- **Choose the right tool:**
- `mermaid` (Default): Flowcharts, sequences, simple state machines.
- `d2`: High-level system architecture, modern network topologies.
- `plantuml`: Strict UML, C4 models.
- `dot`: Dense dependency trees, code-level call graphs.
- **Progressive disclosure:** Start macro, then go micro. If a diagram becomes a massive "spiderweb", split it into one high-level map + targeted sub-diagrams.
- **Anchor to reality:** Always map abstract concepts in your diagrams to actual code artifacts (e.g., mention `src/router.ts` or `users` table directly in/around the diagram).

最新回复 (8)
  • cyapriva 06-24 16:19
    1

    然后可以接入GPT-2进行图标绘制吗?

  • 风吹耳朵有点冷 楼主 06-24 16:23
    2

    GPT-2进行图标绘制



    这个我只用过在文本模型里写md文档用的,我不清楚生图模型也。而且生图+文本一起用来写md文档有点小材大用了,除非你写专门的报告之类的

  • Eeevan 06-24 16:24
    3

    可以掺html进去试试,我coding让agent写给人看的的md都用md+html结合,重点一下就突出了。可以写个skill出来。



    接着:内嵌HTML代替纯Markdown:让大模型回复不再又臭又长(提示词3.0) - 开发调优 - LINUX DO
    首先最近使用的案例展示:
    ^-^ 展开查看图片
    目前最新案例使用的提示词:
    ^-^ 提示词4.0(xml格式)
    根据我最近的体验情况,效果最好我认为是Claude系列模型,主动性很强,GPT5.5比5.4的主动性强了一点,风格也好很多,但还是不推荐。国模相对其实表现都还可以。
    如果要用G…
  • 风吹耳朵有点冷 楼主 06-24 16:33
    4

    我平常的习惯是再vscode 看md文档,html的话文本符号太多了若纯可视化,为何不如直接html

  • Eeevan 06-24 16:35
    5

    因为只需要关键部分用HTML啊,HTML字多,全用写的太慢,token还多。VSCode可以渲染MD掺HTML的,不行加个插件。

  • sabbbber 06-24 16:40
    6

    把佬的那段话发给gpt了,他说他记住了(太智能了,我真服了)

  • 风吹耳朵有点冷 楼主 06-24 16:43
    7

    你让他直接分析个业务流程写到一个md文档里面看看。 我用的是glm-5.2和 DeepSeek V4 Flash 效果都不错

  • maincai 06-24 16:52
    8

    纯文字的我用md,有图表的就让他用html^-^

* 帖子来源Linux.do
返回