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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我写这份 README,并让每个段落保持在同一行,这样能正常换行。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把每个段落保持为一行,让阅读器可以按屏幕宽度换行。列表、标题、代码块和表格则保留其正常格式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Markdown: no artificial line wraps
Instructions
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.
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.
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.Rationale — GitHub and most Markdown renderers wrap to the viewport. Fixed-width breaks in source only help in raw terminals; they harm
git diffand 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.
.tscomment 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
评论
- …
同一仓库的更多技能
adr-review
48k教你的智能体以新鲜的视角审阅架构决策记录,然后重写,让新读者也能清楚理解其中的决定。
ast-visitor-pattern
48k教你的智能体一种代码模式,用于处理在多个位置被使用的联合类型,使新增的变体能被编译器捕获。
multiline-commit-messages
48k向你的智能体展示一种在 shell 中安全编写多行 git 提交信息的方法,使信息不会出现乱码。
product-direction
48k帮你的智能体依据项目已书面记录的产品方向来评判功能请求,给出有理由的结论,并记录每一次否决。