Agent Skills: Large File Table of Contents Overview Generation

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.

UncategorizedID: Harryoung/efka/large-file-toc

Repository

HarryoungLicense: Apache-2.0
9117

Install this agent skill to your local

pnpm dlx add-skill https://github.com/Harryoung/efka/tree/HEAD/skills/large-file-toc

Skill Files

Browse the full folder contents for large-file-toc.

Download Skill

Loading file tree…

skills/large-file-toc/SKILL.md

Skill Metadata

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

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

README Update Format

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