本文へ移動
cccskills
無料GitHub で公開

markdown-toc

Extract a Markdown heading tree with line numbers before editing or integrating notes. Use when you need to inspect a long Markdown file quickly and choose the best insertion point instead of editing blind.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md1.5 KB
  • agents/openai.yaml289 B
  • scripts/extract_toc.py2.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Markdown TOC

Use this skill when

Use this skill before editing a long Markdown file, especially when you need to:

  • inspect the heading structure quickly;
  • choose the best section for new content;
  • avoid creating redundant sections; or
  • review nearby lines before patching a note.

Quick start

Resolve {baseDir} to this skill’s actual directory, then run the bundled script. It reports ATX (#) headings, excluding fenced code; Setext headings and full Markdown parsing are outside its scope:

python3 "{baseDir}/scripts/extract_toc.py" /absolute/path/to/file.md

In this repository, common targets include:

python3 "{baseDir}/scripts/extract_toc.py" Notes/Gourmet.md
python3 "{baseDir}/scripts/extract_toc.py" "Notes/AI-Agent-Product&PE.md"

Workflow

  1. Run the TOC script on the candidate file.
  2. Read the returned heading tree and line numbers.
  3. Open the most likely section neighborhood with sed -n '<start>,<end>p' or nl -ba.
  4. Insert into an existing section when possible.
  5. Create a new section only when the file truly lacks a clean landing spot.

Output format

The script prints a compact tree like this:

TOC
--------------------------------------------------
# Title (line 1)
  ## Section (line 20)
    ### Subsection (line 42)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Track and synthesize current AI hotspots into a bilingual HTML daily report. Use when the user says "AI热点", asks for AI日报/AI日报 HTML/AI hot topics, or wants the best recent AI products, papers, viewpoints, and cognition-shifting items from AI/news aggregators.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

Fetch and extract full text from arxiv paper HTML pages. Invoke when user asks to read an arxiv paper, analyze a paper's content, or when given an arxiv ID/URL.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

ask-echo

無料

使用火山引擎 Ask-Echo 融合信息搜索 API 进行 web 搜索、web 搜索总结版和图片搜索。

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.

日本語の概要は準備中です。原文の説明を表示しています。

huangruiteng/CS-Notes4,0022026年10月12日 更新

huangruiteng のスキルをすべて見る

このスキルの問題を報告する