跳到正文
Skillpedia
写作48k · #6310

markdown-no-artificial-line-wraps

它能做什么

这个技能告诉你的智能体,编写 Markdown 文件时不要按固定宽度手动添加换行。适合编写文档、笔记或拉取请求描述、并希望源文本整洁的人。

适用场景

  • ✓当你的智能体创建或编辑 README 或设计笔记等 Markdown 文件的时候。
  • ✓当你希望用 Markdown 撰写一份可读性好的拉取请求描述的时候。
  • ✓当你想避免纳入版本控制的 Markdown 文件出现杂乱的文本改动的时候。

技能链接

https://github.com/prisma/orm/blob/main/skills-contrib/markdown-no-artificial-line-wraps/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/prisma/orm/blob/main/skills-contrib/markdown-no-artificial-line-wraps/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我写这份 README,并让每个段落保持在同一行,这样能正常换行。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把每个段落保持为一行,让阅读器可以按屏幕宽度换行。列表、标题、代码块和表格则保留其正常格式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Markdown: no artificial line wraps

Instructions

  1. Prose paragraphs — Keep each paragraph as one line (or join wrapped lines into one) so the renderer can wrap in the viewer. Do not break lines mid-sentence to stay under ~80 characters.

  2. When hard newlines are correct

    • Lists: one line per list item is fine; keep item text on one line unless the item is genuinely multiple paragraphs.
    • Headings: single line.
    • Fenced code blocks: preserve author intent; do not reflow code to 80 cols.
    • Tables, block quotes, HTML: follow normal Markdown rules; table rows may be long.
    • Poetry / intentional line breaks: keep explicit breaks where semantics require them.
  3. Links and emphasis — Prefer not splitting a paragraph so that a [text](url) link is alone on a continuation line in a way that obscures reading; the whole paragraph can be one line.

  4. Rationale — GitHub and most Markdown renderers wrap to the viewport. Fixed-width breaks in source only help in raw terminals; they harm git diff and merge conflict resolution.

Don’t

  • Reformat existing Markdown by hard-wrapping every paragraph to 80 columns unless the user explicitly asks for that style in that file.
  • Apply this rule to non-Markdown formats (e.g. .ts comment blocks) unless the user asks for Markdown-style prose there.
常见问题

为什么不按 80 个字符换行?

该技能说明,屏幕本身会自动换行,固定的换行会让文件改动更难阅读。

它会修改代码块吗?

不会。该技能说明,代码块应保持作者编写的原样。

它会重新格式化已有文件吗?

除非你在该文件中明确要求这种格式,否则不会。

详情

作者的原始描述

Writes and edits Markdown without inserting manual hard line breaks at a fixed column (e.g. 72 or 80). GitHub, docs sites, and editors soft-wrap prose; artificial breaks make diffs noisy and reflow awkward. Use when creating or editing .md files, PR bodies, ADRs, READMEs, rulecards, or any Markdown where the user cares about readable source and clean diffs — or when the user asks to avoid "hard wrapping" or "80-column" line breaks in prose.

repo: prisma/orm

热度

GitHub 星标
48k
排名
#6310
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能