Skip to content
Back to skills

Large File Toc

ASecurity

Generate table of contents overview for large files. When onboarded Markdown file exceeds threshold (default 30KB), extract heading structure to create navigation file. Trigger condition: Markdown file size >= 30KB.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 9, 2026
toolsbash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill large-file-toc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Large File Toc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Large File Toc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-large-file-toc/badge)](https://www.skillsdirectory.com/skills/majiayu000-large-file-toc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: large-file-toc
description: Generate table of contents overview for large files. When onboarded Markdown file exceeds threshold (default 30KB), extract heading structure to create navigation file. Trigger condition: Markdown file size >= 30KB.
---

# Large File Table of Contents Overview Generation

Generate table of contents overview for large Markdown files for quick user navigation.

## Applicable Conditions

- Markdown file size >= 30KB
- Automatically triggered at onboarding stage 5 (write and update)

## Quick Workflow

1. **Extract headings**: Use Grep to search `^#+\s+.*$`
2. **Generate overview**: Create `contents_overview/{filename}_overview.md`
3. **Update README**: Record overview file path

## Grep Extract Headings

```bash
grep -n '^#' knowledge_base/path/to/file.md
```

Output example:
```
10:# Chapter 1 Introduction
150:## 1.1 Background
180:## 1.2 Objectives
400:# Chapter 2 Methodology
```

## Table of Contents Overview Format

See [TOC_TEMPLATE.md](TOC_TEMPLATE.md)

## README Update Format

```markdown
- [filename.md](path/to/file.md) (XXX KB) - Brief description [Table of Contents](contents_overview/filename_overview.md)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.