Substack Table of Contents Generator

⚡ Powered by HyperContext

Version 1.0 | Updated: February 8, 2026 | HC Standard v1.0

What This Does

Automatically generates a working table of contents for your Substack articles with proper anchor linking, sequential numbering, and professional formatting.

Key Features:

Why Use This: Substack doesn't auto-generate TOCs. Manual creation is tedious and error-prone. This skill does it perfectly in 2 minutes.

How to Use

Quick Start (3 Steps)

  1. Launch: Click a button below to open in your preferred LLM
  2. Provide: Your Substack domain, POST_ID, and article content
  3. Get: Formatted article with working TOC - ready to paste into Substack

Launch Links

With Neural Registry (Advanced)

For consistent formatting across all your TOCs:

  1. Create your Neural Registry: 5-minute setup
  2. First use: Provide your registry URL when prompted
  3. Subsequent uses: Skill references your past TOC formatting
  4. Result: Consistent style through Recursive Context Injection (RCI)
💡 Pro Tip: With Neural Registry enabled, this skill learns your formatting preferences and applies them automatically to future TOCs.

Requirements

Essential Inputs

System Requirements

Finding Your POST_ID

⚠️ Critical for TOC links to work:
  1. From URL: Visible in browser after publishing
  2. From Page Source: Look for data-post-id attribute
  3. Auto-extraction: If Code Execution available, provide article URL and skill extracts automatically

Examples

Example 1: Basic 5-Section Article

Input:

Domain: example.substack.com
POST_ID: 123456789
Content: 
## Introduction
...content...
## Main Point One
...content...
## Main Point Two
...content...
## Main Point Three
...content...
## Conclusion
...content...
                

Output:

## Table of Contents

1. [Introduction](#introduction)
2. [Main Point One](#main-point-one)
3. [Main Point Two](#main-point-two)
4. [Main Point Three](#main-point-three)
5. [Conclusion](#conclusion)

---

## 1. Introduction
...content...

---

## 2. Main Point One
...content...

[etc...]
                

Example 2: Complex Headings with Special Characters

Input Heading:

## What's Next? (Important Steps)

Converted Anchor:

#whats-next-important-steps

In TOC:

1. [What's Next? (Important Steps)](#whats-next-important-steps)

Note: Original heading text preserved exactly; anchor properly sanitized for URLs.

Example 3: With Neural Registry (RCI)

Context: User has created 5 previous Substack TOCs with this skill

What Changes:

  • Skill references past TOC formatting patterns
  • Maintains consistent spacing preferences
  • Applies any custom voice to instructional text
  • Saves this TOC as 6th artifact for future reference

Result:

All TOCs have consistent formatting. Quality compounds through RCI.

Integration Guide

First Time Use (No Neural Registry)

  1. Click launch link above
  2. LLM asks: "Load Neural Registry?" → Choose "no" for now
  3. Provide domain, POST_ID, article content
  4. Copy generated output
  5. Paste into Substack editor
  6. Publish article
  7. TOC links work!

With Neural Registry (Recommended)

  1. Setup (once): Create registry at skills.masterymade.com/setup
  2. First use: Provide registry URL when skill asks
  3. Generate TOC: Skill creates formatted article
  4. Save artifact: Add output to your registry
  5. Next time: Skill references this TOC for formatting consistency
  6. Compound effect: Quality improves with each use

Team Use

Scenario: Multiple team members write for same Substack

  1. Create shared Neural Registry (team's formatting standards)
  2. All team members reference same registry URL
  3. Result: Consistent TOC formatting across all authors
  4. Benefit: Professional cohesive brand experience

Automation Setup (Advanced)

For power users who create TOCs frequently:

  1. Set up n8n workflow (guide: automation docs)
  2. Workflow: Receives article → Generates TOC → Saves to registry → Returns formatted output
  3. Result: Say "Deploy this" and entire process automated
  4. Time: 30 seconds vs. 3 minutes manual

Troubleshooting

TOC Links Don't Work

Most Common Issue: POST_ID doesn't match published article

Solution:

  1. Publish your article first
  2. Copy POST_ID from published URL
  3. Re-run skill with correct POST_ID
  4. Update article with new TOC

Python Auto-Extraction Failed

Cause: Code Execution not available or network issue

Solution: Skill automatically falls back to manual input. Just provide POST_ID manually.

Can't Find POST_ID

Step-by-step:

  1. Publish article to draft or live
  2. Open article in browser
  3. Right-click → "View Page Source"
  4. Search for "post_id" or "data-post-id"
  5. Copy the alphanumeric value

Or: Provide full article URL to skill and let Python extract it

Neural Registry Won't Load

Checklist:

Quick test: Open registry URL in browser. Should see HTML page with your artifacts listed.

Formatting Looks Wrong in Substack

Check:

Fix: Switch to markdown mode in Substack editor before pasting

Skill Won't Execute

Possible causes:

Technical Details

How Anchor Links Work

Substack uses anchor format:

https://yourdomain.substack.com/p/POST_ID#anchor-slug

Example:

Kebab-Case Conversion Rules

  1. Convert to lowercase
  2. Replace spaces with hyphens
  3. Remove special characters (keep: a-z, 0-9, hyphens)
  4. Remove consecutive hyphens
  5. Trim leading/trailing hyphens

HC Standard Compliance

This skill follows HyperContext Standard v1.0:

Output Format

All artifacts include HC-compliant YAML frontmatter:

Purpose: Makes artifacts referenceable by future skills through Neural Registry