Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Markdown.Summarize

БесплатноБез исполняемых скриптовНе проверен

Summarize markdown content into bullet points while preserving header structure

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Interface Specification

Inputs

Parameter Type Required Description
<INPUT> file path or text Yes Markdown file or text chunk to summarize
<NUM_WORDS> integer No* Target output word count
<FRACTION> float (0-1) No* Alternative to <NUM_WORDS>: fraction of original size
<MAX_HEADER_LEV> integer No Max header level to preserve (default: preserve all levels)
<TAG> string No <INPUT_REF> of the output file name (default: derived from <INPUT>)
  • Exactly one of <NUM_WORDS> or <FRACTION> must be specified.

Outputs

Item Format Description
Console output Text Header structure preview + summary + statistics
Output file Markdown markdown.summarize.<TAG>.md in the current dir (overwrites if exists)
Word count Integer Original and target word counts printed to console
  • Say in the output file how it was generated, with this comment at the top:
    <!-- Generated by `.claude/skills/markdown.summarize/SKILL.md` -->
    

Workflow

Parse Input

  • Read the file at <INPUT>
  • Extract headers using markdown syntax (#, ##, ###, etc.)

Determine Header Strategy

Case A: Input has header structure

  • Extract all headers and print the structure to console

Case B: Input is plain text (no headers)

  • Skip header extraction. Summarize directly

Apply Header Level Filter

If <MAX_HEADER_LEV> not specified:

  • Preserve all header levels from the original

If <MAX_HEADER_LEV> specified:

  • Keep only headers with level <= <MAX_HEADER_LEV>
  • Summarize each deeper section into chunks (see "Group Into Chunks")
    • Each collapsed section becomes a chunk titled after its header text (shortened if needed)
      • A single chunk has no title (see "Group Into Chunks")
    • Headers nested inside a collapsed section become sub-bullets

For every header kept (header fidelity):

  • Copy the header line verbatim: same # level, text, numbering, and order
    • Do not rename, reword, re-case, renumber, or add numbers to it
    • Keep gaps and duplicates in the source numbering
  • Do not add, merge, split, or reorder headers. Only headers deeper than <MAX_HEADER_LEV> are removed
  • Header fidelity wins over the header rules of markdown.rules.md and text.rules.md (e.g., starting at level 1, capitalizing major words, numbering in order)

Calculate Target Length

  • Count the original word count as <ORIG_NUM_WORDS>
  • If <FRACTION> is given: <TARGET_WORDS> = <ORIG_NUM_WORDS> x <FRACTION>
  • If <NUM_WORDS> is given: <TARGET_WORDS> = <NUM_WORDS>

Summarize Content

  • Convert to chunks of nested bullets. See "Group Into Chunks" and "Compress Content" below
  • Follow .claude/skills/markdown.rules.md and .claude/skills/text.rules.md
    • If they conflict with the chunk format, the chunk format wins (e.g., the ## chunk titles in "Example 2" of text.rules.md)
  • Constraints:
    • Convert all mathematical formulas to LaTeX
    • Wrap text at 85 columns
    • Hit <TARGET_WORDS> within 10% tolerance
    • Preserve key concepts and important details

Group Into Chunks

  • Split the content under each preserved header into chunks of related content
    • If the input has no headers, split the whole text into chunks
  • Add chunk titles only when a section has two or more chunks (i.e., topics)
    • A section with a single chunk has no title line: put its bullets directly under the header, after one blank line
    • Do not split a single topic only to justify a title
  • In a section with two or more chunks, start each chunk with a title line * <TITLE>, with no leading spaces
    • Put the bullets directly under the title, with no blank line in between
    • Separate chunks with one blank line
    • Do not write bullets outside a chunk
  • A chunk:
    • Covers one topic or idea
    • Has typically 2-5 first-level bullets
    • Follows the order of the source
  • Start a new chunk when the topic changes
    • E.g., from a definition, to why it matters, to its uses, to an example
  • Rules for <TITLE> (same as slide titles in slides.rules.md):
    • Short noun phrase, 2-6 words, in sentence case
    • Names the topic or the claim, not its role
      • Bad: * Overview, * Details, * Point 2
      • Good: * Culture > strategy
    • Use > to express priority or comparison
    • Use : <qualifier> for a variant of an earlier chunk's topic
      • E.g., * Core values: EOS Worldwide example
    • No numbering, no trailing punctuation, ASCII only
    • Unique within its section
  • Use # only for headers in the source, with their source numbers
    • * chunk titles are never numbered

Compress Content

  • Keep:
    • Definitions and claims
    • Enumerations (e.g., the list of values)
    • Cause-effect relations (e.g., culture wins in the long term)
    • The few concrete examples that clarify a claim
  • Drop:
    • Qu
Полный SKILL.md на GitHub

Установить Markdown.Summarize в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

example.md

FAQ

Что делает скилл Markdown.Summarize?

Summarize markdown content into bullet points while preserving header structure

Как установить скилл Markdown.Summarize?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Markdown.Summarize запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Markdown.Summarize с