Markdown toc

From huangruiteng/CS-Notes · View interactive version

Markdown toc is an AI agent skill from the GitHub repository huangruiteng/CS-Notes. python3 main.py /path/to/markdown/file.md

How to use this skill

Skill file

Markdown TOC Skill

功能

提取 Markdown 文件的目录层级结构

使用方法

命令行模式

cd /path/to/markdown-toc
python3 main.py /path/to/markdown/file.md

OpenClaw Skill 模式

{
  "command": "extract",
  "args": {
    "file_path": "/path/to/markdown/file.md"
  }
}

输出示例

目录结构:
--------------------------------------------------
# AI-Applied-Algorithms (line 1)
  ## RAG (line 7)
    ### Intro (line 9)
      #### 为什么需要 (line 11)

适用场景

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.