markdown-toc-generator
FreeRuns bundled scriptsNot checkedInsert or refresh a table of contents for Markdown headings. Use when a long doc needs an up-to-date TOC under a marker comment.
by hmahmadcs415 installs in other catalogsAbout this skill
Markdown TOC Generator
Purpose / Overview
Builds a nested TOC from #–###### headings.
When to Use
- README or design doc grew long
- User asks to "update the TOC"
Usage / Instructions
- Take the Markdown path from the user.
- Run
python3 scripts/make_toc.py <path>. - Show the TOC; write back only if the user confirms.
Examples
python3 scripts/make_toc.py ./README.md
Requirements / Dependencies
python3 (stdlib).
Limitations / Caveats
Skips fenced code blocks when detecting headings (best-effort).
Security / Permissions
Reads (and optionally writes) only the path provided. No network.
Description
Insert or refresh a table of contents for Markdown headings.
License or terms
Business
Use case
For users and teams who want a concise assistant for: Insert or refresh a table of contents for Markdown headings.
Risks and mitigations
References
- CommonMark specification: https://commonmark.org/
Ethical considerations
Illegal use of this skill is not allowed. The publisher will not be accountable for outcomes arising from unlawful use under country or international law. Prohibited examples include breaking into accounts without authorization, deploying ransomware, and trafficking in stolen personal data. Misuse against third-party systems without authorization is illegal.
Install markdown-toc-generator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the markdown-toc-generator skill do?
Insert or refresh a table of contents for Markdown headings. Use when a long doc needs an up-to-date TOC under a marker comment.
How do I install the markdown-toc-generator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the markdown-toc-generator skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic