360 Secure SkillHub
360 安全技能中心

md-syntax

该 Skill 给出 Markdown 写作与编辑规则,涵盖代码块语言标注、标题层级、空行、避免表情符号和粗体标题等要求,并附正反示例,帮助保持文档结构一致。

jimweller
热度 0.00
最近更新 2026-10-19 03:43:35
分类:效率依赖:纯提示词应用场景:校对润色 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add jimweller/clanker-skills/md-syntax
Metadata
name
md-syntax
description
Markdown authoring guidelines for formatting, code blocks, and structure. Use when writing or editing markdown files.

Markdown Authoring Guidelines

Follow these rules when creating or editing markdown files.

Rules

  • Always specify language on code blocks - Use bash, yaml, json, text, hcl, go, etc. Never use bare ```
  • No AI slop - Never use emojis, glyphs or emdashes
  • Use headings, not bold for section titles - Use proper heading levels (##, ###, etc.) not **Bold** on its own line
  • One H1 per file - Only one # Title at the top
  • First line should be H1 - Start files with # Title
  • Write to the formatter contract - A PostToolUse hook reformats markdown after every write. See /md-lint for what it rewrites and which lint rules it cannot fix
  • Blank lines between styles - Put single blank line between different markdown types

Examples

Blank lines between styles

Put a single blank line between markdown types/styles. Do not put multiple blank lines between markdown styles.

CORRECT

## Heading

paragraph

- list item one
- list item two

> block quote

INCORRECT

## Heading


paragraph
- list item one
- list item two
> block quote

Headings not bold

CORRECT

### Heading

paragraph

INCORRECT

**heading incorrect bold**

paragraph

Code Blocks

Always specify language.

CORRECT with language

```bash
#!/bin/bash
```

INCORRECT without language

```
#!/bin/bash
```

Trailing New Line

End the file with a single newline after the last line of content. A fenced example can't show this, because the fence hides the final byte. Check it with tail -c 1 file.md | xxd, which must print 0a.