AI SKILL

Substack Table of Contents Generator

Professional navigation for long-form newsletters

📋 What This Does

Automatically creates a professional, numbered table of contents for Substack newsletter articles with working internal anchor links. Perfect for long-form content that needs clear navigation.

Key Features:

🚀 How to Use

Simply say to your AI assistant:

What You'll Need

Required Information:

  1. Post ID - The numerical ID from your published Substack URL
    Example: 176830635 from https://yourname.substack.com/p/article-title-176830635
  2. Article Content - Your full article with section headings
  3. Substack Domain - Your full domain (e.g., username.substack.com)

💡 How It Works

Substack automatically generates anchor links for every heading using the format:

https://domain.substack.com/i/POST_ID/heading-in-kebab-case

Example Transformation

Before:

Hey Reader,

Intro paragraph here.

### Email triage and response

Content...

### Client presentations

Content...

After:

Hey Reader,

Intro paragraph here.

---

**Table of Contents:**

1. [Email triage and response](https://domain.com/i/176830635/email-triage-and-response)
2. [Client presentations](https://domain.com/i/176830635/client-presentations)

---

### 1. Email triage and response

Content...

---

### 2. Client presentations

Content...

⚙️ For LLM Integration

Add this skill to your AI assistant's system prompt:

<skill>
  <name>substack-toc</name>
  <description>Creates numbered table of contents for Substack articles with working internal anchor links</description>
  <url>https://skills.masterymade.com/substack-toc.html</url>
</skill>

The AI will automatically fetch and execute this skill when triggered by relevant user requests.

Supported Platforms

📊 Technical Details

Anchor Link Generation

Substack converts heading text to anchor slugs using these rules:

Examples:

  • "Email Triage and Response" → email-triage-and-response
  • "Run Your Own Audit" → run-your-own-audit
  • "What These Patterns Reveal" → what-these-patterns-reveal

Best Practices

⚠️ Important: TOC links only work after publishing. You must get the POST_ID from your published article URL before generating the TOC.

📦 Skill Metadata

Version:
1.0.0
Author:
MasteryMade
License:
MIT
Dependencies:
None
Platform:
Cross-platform (any LLM with web_fetch)
Skill Type:
Content formatting & navigation

🐛 Troubleshooting

Links Don't Work After Publishing

TOC Numbers Don't Match Section Numbers

Wrong Anchors Generated