Doc Add Simple Hash
Documentsdoc-add-simple-hashDoc 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文档编辑时,为标题添加简单的哈希锚点,当用户提到添加简单哈希锚点时强制调用。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/didi/mpx/blob/HEAD/.agents/skills/doc-add-simple-hash/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/doc-add-simple-hash, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
为文档标题添加简单哈希锚点
当前markdown文档系统支持 {#simple-hash} 的语法来让中文标题的哈希锚点变为简单的英文哈希锚点,例如:
# 文档标题 {#simple-hash}
会生成哈希锚点 #simple-hash,而不是默认的 #文档标题。
需要扫描用户当前文档中的中文标题,根据其中文内容语义通过上述语法生成简单的英文哈希锚点。
特别注意
- 哈希锚点只能包含小写字母、数字和短横线(-),不能包含空格或其他特殊字符。
- 哈希锚点不能以短横线开头或结尾。
- 哈希锚点不能与文档中其他标题的哈希锚点重复。