首页龙虾技能列表 › Nm Leyline Markdown Formatting

\ud83e\udd9e Nm Leyline Markdown Formatting

v1.0.0

>- Canonical markdown formatting conventions for diff-friendly documentation. Consult this skill when generating, editing, or reviewing markdown prose. Defin...

0· 39·1 当前·1 累计
by @athola·MIT-0
下载技能包 项目主页
License
MIT-0
最后更新
2026/4/13
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This is an instruction-only markdown-formatting skill whose requested resources and instructions are consistent with its stated purpose (no installs, no credentials, no unexpected behaviors).
评估建议
This skill is an instruction-only style guide for producing diff-friendly Markdown and appears internally consistent. Before installing, confirm the documented conventions match your team's style (line length, reference-link preference, blank-line rules). Because it's an agent-invocable skill, the agent may apply these rules automatically when triggered by 'markdown' or 'formatting' — if you want manual control, keep it user-invocable only. No credentials or network access are required by the sk...
详细分析 ▾
用途与能力
The name/description match the content: both files solely define markdown formatting and wrapping rules. There are no unrelated env vars, binaries, or install steps requested.
指令范围
SKILL.md and modules/wrapping-rules.md only describe line-wrapping and structural rules for Markdown. The instructions do not reference reading files, environment variables, network endpoints, or system state outside their formatting scope.
安装机制
No install spec and no code files are present — this is instruction-only, so nothing is downloaded or written to disk by the skill itself.
凭证需求
The skill requires no environment variables, credentials, or config paths. Requested permissions are minimal and proportional to a formatting helper.
持久化与权限
always is false and the skill does not request persistent presence or modify other skills; autonomous invocation is permitted (platform default) but not combined with other concerning factors.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/4/13

- Initial release defining canonical markdown formatting conventions. - Covers hybrid 80-character line wrapping, heading styles, list spacing, and link conventions. - Specifies content types to wrap or not wrap in markdown. - Provides structural rules for blank lines, headings, and lists. - Recommends reference-style links when URLs cause lines to exceed 80 characters.

● 无害

安装命令 点击复制

官方npx clawhub@latest install nm-leyline-markdown-formatting
镜像加速npx clawhub@latest install nm-leyline-markdown-formatting --registry https://cn.clawhub-mirror.com

技能文档

Night Market Skill — ported from claude-night-market/leyline. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

# Markdown Formatting Conventions

When To Use

  • Writing or editing any markdown documentation
  • Reviewing prose for line-wrapping compliance
  • Generating markdown from plugins (scribe, sanctum, etc.)

When NOT To Use

  • Editing code blocks, tables, or frontmatter (these have
their own formatting rules)
  • Quick scratch notes that will not be committed

These conventions apply to all markdown documentation generated or modified by any plugin. The goal: produce prose that creates clean, reviewable git diffs and reads well on mobile devices.

Quick Reference

When writing or editing markdown prose:

  • Wrap prose at 80 chars using hybrid wrapping (prefer
sentence/clause boundaries over arbitrary word breaks)
  • Blank line before and after every heading
  • ATX headings only (# Heading, never setext underlines)
  • Blank line before every list
  • Reference-style links when inline links push lines
beyond 80 chars

What to Wrap

Wrap these content types at 80 characters:

  • Paragraphs (flowing prose text)
  • Blockquote text (the content after >)
  • List item descriptions (text after - or 1. )
  • Descriptions in definition lists

What NOT to Wrap

Never wrap or reflow these content types:

  • Tables: pipe-delimited rows stay on one line
  • Code blocks: fenced ( ` ) or indented content
  • Headings: lines starting with #
  • Frontmatter: YAML/TOML between --- or +++
  • HTML blocks: raw HTML elements
  • Link definitions: [id]: url reference lines
  • Image references: !alt on their own line
  • Single-line list items: short bullets that fit on one line

Wrapping Algorithm (Summary)

For each prose paragraph:

  • If a sentence fits within 80 chars, keep it on one line
  • If a sentence exceeds 80 chars, break at the nearest
sentence boundary (. ! ? ) before column 80
  • If no sentence boundary, break at the nearest clause
boundary (, ; : ) before column 80
  • If no clause boundary, break before a conjunction
(and but or ) before column 80
  • If none of the above, break at the last word boundary
before column 80
  • Never break inside backtick spans, link text, or URLs

See modules/wrapping-rules.md for the full algorithm with examples.

Structural Rules

Blank Lines Around Headings

WRONG:
Some text.

Heading

More text.

RIGHT: Some text.

Heading

More text.

Exception: the first line of a file may be a heading without a preceding blank line.

ATX Headings Only

WRONG:
Heading
=======

WRONG: Subheading ----------

RIGHT: # Heading

RIGHT:

Subheading

Blank Line Before Lists

WRONG:
Some introductory text:
  • Item one
  • Item two

RIGHT: Some introductory text:

  • Item one
  • Item two

Reference-Style Links for Long URLs

When an inline link pushes a line beyond 80 characters, use reference-style syntax:

WRONG (line too long):
See the formatting guide for details.

RIGHT: See the [formatting guide][fmt-guide] for details.

[fmt-guide]: https://google.github.io/styleguide/docguide/style.html

Place link definitions at the end of the current section or at the end of the document. When the same URL appears multiple times, use a single shared reference definition.

Short inline links that keep the line under 80 chars are fine:

OK:
See the guide for details.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务