Skip to content
Back to skills

Generate Markdown Tables Of Contents Before Publishing Docs Or Readme Updates

ASecurity

Runs DocToc to insert or refresh navigable tables of contents inside Markdown files after headings already exist. Use it when an agent is preparing README or docs updates and needs reliable intra-document navigation, not when it is generating the documentation itself.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgoc#nodedockergitsecuritydocumentation

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill generate-markdown-tables-of-contents-before-publishing-docs-or-readme-updates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Markdown Tables Of Contents Before Publishing Docs Or Readme Updates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate Markdown Tables Of Contents Before Publishing Docs Or Readme Updates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-generate-markdown-tables-of-contents-before-publis/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-generate-markdown-tables-of-contents-before-publis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Generate Markdown tables of contents before publishing docs or README updates"
slug: "generate-markdown-tables-of-contents-before-publishing-docs-or-readme-updates"
description: "Runs DocToc to insert or refresh navigable tables of contents inside Markdown files after headings already exist. Use it when an agent is preparing README or docs updates and needs reliable intra-document navigation, not when it is generating the documentation itself."
github_stars: 4432
verification: "security_reviewed"
source: "https://github.com/thlorenz/doctoc"
author: "Thorsten Lorenz"
category: "Content Writing & SEO"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "thlorenz/doctoc"
  github_stars: 4432
  npm_package: "doctoc"
  npm_weekly_downloads: 1025939
---

# Generate Markdown tables of contents before publishing docs or README updates

Runs DocToc to insert or refresh navigable tables of contents inside Markdown files after headings already exist. Use it when an agent is preparing README or docs updates and needs reliable intra-document navigation, not when it is generating the documentation itself.

## Prerequisites

Node.js, npm, command line

## Installation

Use the upstream install or setup path that matches your environment:
- npm install -g doctoc

Requirements and caveats from upstream:
- # DocToc [![Node.js CI](https://github.com/thlorenz/doctoc/actions/workflows/node.js.yml/badge.svg)](https://github.com/thlorenz/doctoc/actions/workflows/node.js.yml)
- [Docker image](#docker-image)
- ### Docker image

Basic usage or getting-started notes:
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Usage](#usage)
- [Example](#example)

- Source: https://github.com/thlorenz/doctoc
- Extracted from upstream docs: https://raw.githubusercontent.com/thlorenz/doctoc/HEAD/README.md

## Documentation

- https://github.com/thlorenz/doctoc#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/generate-markdown-tables-of-contents-before-publishing-docs-or-readme-updates/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.