# Doc Add Simple Hash

> Doc Add Simple Hash is an Agent Skill for documents published in the didi/mpx repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

markdown文档编辑时，为标题添加简单的哈希锚点，当用户提到添加简单哈希锚点时强制调用。

- Skill name: `doc-add-simple-hash`
- Category: [Documents](https://www.openparable.com/skill/documents/1)
- Source: https://github.com/didi/mpx/blob/HEAD/.agents/skills/doc-add-simple-hash/SKILL.md
- Repository: didi/mpx (3,908 GitHub stars when collected)

## SKILL.md

# 为文档标题添加简单哈希锚点

当前markdown文档系统支持 {#simple-hash} 的语法来让中文标题的哈希锚点变为简单的英文哈希锚点，例如：

```markdown
# 文档标题 {#simple-hash}
```

会生成哈希锚点 `#simple-hash`，而不是默认的 `#文档标题`。

需要扫描用户当前文档中的中文标题，根据其中文内容语义通过上述语法生成简单的英文哈希锚点。

## 特别注意

- 哈希锚点只能包含小写字母、数字和短横线（-），不能包含空格或其他特殊字符。
- 哈希锚点不能以短横线开头或结尾。
- 哈希锚点不能与文档中其他标题的哈希锚点重复。

---

Source: https://www.openparable.com/skill/documents/doc-add-simple-hash (OpenParable). Cite the canonical URL above.
