doc-toc

Generates hierarchical tables of contents from long-form document content.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/Lucien-1127/strata-skill --skill doc-toc-lucien-1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doc-toc
Source: https://github.com/Lucien-1127/strata-skill/tree/main/doc-toc
Command: npx skills add https://github.com/Lucien-1127/strata-skill --skill doc-toc-lucien-1127

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long documents without a navigable structure are hard to scan and reference. This Skill automatically analyzes pasted content and produces a hierarchical table of contents, saving the manual effort of outlining headings by hand. ## Core Features & Use Cases - Automatic Heading Detection: Analyzes document content and builds a TOC based on heading levels found in the text. - Hierarchical Indentation: Represents document structure with nested indentation reflecting heading depth. - Flexible Output Formats: Outputs the TOC as a Markdown list or as a Mermaid diagram, suitable for document headers or Obsidian indexes. - Use Case: Paste a long meeting note or research draft and ask for a TOC to place at the top of the file or use as an Obsidian index. ## Quick Start Paste your long document and say "幫我產生目錄" (generate a table of contents for me) to receive a hierarchical TOC.

Frequently Asked Questions about doc-toc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a table of contents for a long document?▼

Paste the document content and ask for a TOC. The Skill analyzes heading levels in the text and produces an indented hierarchical outline you can place at the top of the document.

What output formats does a document TOC generator support?▼

This Skill outputs the table of contents as a Markdown list with indentation showing hierarchy, or as a Mermaid diagram for visual structure representation.

Can I use a generated TOC as an Obsidian index note?▼

Yes. The hierarchical Markdown list output works directly as an Obsidian index or map of content note, organizing links and sections by heading level.

Does TOC generation require specific document formatting?▼

The Skill relies on recognizable heading structures in the pasted content. Documents with clear title and section headings produce the most accurate hierarchical outlines.

What are the limitations of automatic TOC generation?▼

Accuracy depends on the source text having discernible heading levels. Flat or unstructured text may produce shallow outlines, and the Skill does not insert anchor links into the original document.