Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Emasoft/ghe-marketplace/plugin install marketplace-utilsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/emasoft/ghe-marketplace/markdown-toc)<a href="https://agentmods.dev/skills/emasoft/ghe-marketplace/markdown-toc"><img src="https://agentmods.dev/badge/skills/emasoft/ghe-marketplace/markdown-toc/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/emasoft/ghe-marketplace/markdown-toc"><img src="https://agentmods.dev/badge/skills/emasoft/ghe-marketplace/markdown-toc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.01469 |
| Opus 5.5 | $0.00022 | $0.00588 |
| Sonnet 5.5 | $0.00011 | $0.00294 |
| Haiku 4.5 | $0.00005 | $0.00147 |
Grade A, and why
markdown-toc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Markdown Table of Contents Generator
A universal TOC generator that works with any markdown file. Supports batch processing, configurable header levels, and smart insertion.
Quick Start
# Single file
python "${CLAUDE_PLUGIN_ROOT}/scripts/generate_toc.py" README.md
# Preview without changes
python "${CLAUDE_PLUGIN_ROOT}/scripts/generate_toc.py" --dry-run README.md
# All markdown files in docs/
python "${CLAUDE_PLUGIN_ROOT}/scripts/generate_toc.py" docs/*.md
# Recursive processing
python "${CLAUDE_PLUGIN_ROOT}/scripts/generate_toc.py" --recursive .
Note: You can also copy the script to your project and run it locally.
Options
| Option | Default | Description |
|---|---|---|
--dry-run |
false | Preview TOC without modifying files |
--min-level N |
2 | Minimum header level (1-6) |
--max-level N |
3 | Maximum header level (1-6) |
--title TEXT |
"Table of Contents" | Custom TOC title |
--no-title |
false | Omit TOC title |
--recursive, -r |
false | Process .md files recursively |
--insert MODE |
auto | Insertion mode: auto, top, marker |
--marker TEXT |
<!-- TOC --> |
Custom marker for marker mode |
Insertion Modes
Auto Mode (default)
Smart detection in this order:
- Replace existing
## Table of Contentssection - Insert after first
---separator (common README pattern) - Insert after YAML frontmatter
- Insert after first header
- Insert at top of file
python scripts/generate_toc.py README.md
Top Mode
Insert at top of file, respecting YAML frontmatter:
python scripts/generate_toc.py --insert top README.md
Marker Mode
Insert/replace between marker pairs:
python scripts/generate_toc.py --insert marker README.md
In your markdown file:
<!-- TOC -->
(TOC will be inserted/updated here)
<!-- /TOC -->
Custom markers:
python scripts/generate_toc.py --insert marker --marker "<!-- INDEX -->" README.md
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 264 lines · 54 tokens per session scan A 892bf1937daf
markdown-toc is a skill published in the GitHub repository Emasoft/ghe-marketplace (4 stars, last pushed 12mo ago), licensed MIT. It adds 54 tokens to every session and 1,469 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
markdown-toc compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| markdown-tocEmasoft/ghe-marketplace | Skill | 4 | 12mo ago | MIT | A | 54 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 333k | 7d ago | MIT | A | 21 | Claude Code |