Install
openclaw skills install @terrycarter1985/md-toc-generatorGenerate and update table-of-contents (TOC) sections for Markdown files. Use when working with long Markdown documents, READMEs, or technical docs that need a navigable TOC, or when asked to add/update a table of contents in a .md file.
openclaw skills install @terrycarter1985/md-toc-generatorGenerate a table of contents from the headings in a Markdown file and insert or refresh it.
python3 scripts/generate_toc.py <path-to-file.md> [--max-depth 3] [--in-place]
--in-place: prints the TOC to stdout.--in-place: inserts the TOC right after the first heading (or updates an existing <!-- toc --> block).<!-- toc --> and <!-- /toc --> markers, the block between them is replaced.# heading.-1, -2, … suffixes.# Print TOC only
python3 scripts/generate_toc.py docs/guide.md
# Insert / refresh TOC in place
python3 scripts/generate_toc.py README.md --in-place --max-depth 4