跳到正文
FunCoding

summarize

Summarize a document, meeting transcript, or email — pick a style that matches what the content actually is, and fold long input forward in sections instead of losing the back half. Use when the user pastes or points at a transcript, email, PDF, or long document and asks for a summary, action items, or key decisions.

Star
1,580
许可证
MIT
最近提交
2026年10月13日

hub/skills/summarize/SKILL.md

在 GitHub 上查看

Summarize

A summary that drops the back half of a long document is worse than no summary — it looks complete and isn't. Everything here exists to stop that: pick the right style for what the content is, and never lose earlier material when the input is too long to read in one pass.

Procedure

  1. Identify what you're summarizing before you pick a style. Read the first portion and classify it:

    • Transcript — speaker labels, timestamps, back-and-forth dialogue.
    • Email — From:/To:/Subject: headers, a greeting/sign-off, one author's voice.
    • Document / PDF / business content — reports, decks, specs; prose without dialogue structure. When it's genuinely ambiguous, say which you picked and why in one clause rather than silently guessing — the style below changes with it.
  2. Get the full text. For an indexed document, index_document it first if it isn't already (list_indexed_documents to check), then either call summarize_document(file_path, summary_type) or dump_document first if you need the raw extracted text. For pasted text or a plain text file, read_file is enough.

    summary_type accepts only brief, detailed, or bullets — anything else comes back as an error, not a summary. The named styles below are how you shape the output: pick the closest of those three, then write to the style the user actually asked for. For "what were the action items", that means detailed (so nothing is dropped) and then writing the list yourself from the text.

  3. Decide if it fits in one pass. If the content is short enough for you to read and reason over directly, write the summary yourself using the style instructions below — don't reach for the section-by-section tool path for a two-page memo. For anything long, use summarize_document (which already sections and folds internally) or the manual fold-forward procedure below when the tool isn't available for the content you have.

  4. Write to the style, not a generic summary. Match the length and structure rules exactly — a "brief" that runs to eight sentences failed the request even if every sentence is accurate.

Styles

Transcripts and emails — conversational, outcome-focused:

Only brief, detailed and bullets are real summary_type values; the rest name a shape you write yourself.

StyleWhat to produce
brief / executive2–3 sentences on the key outcomes and decisions.
detailedFull paragraph coverage of every major topic and outcome.
participantsSimple list of who was involved, with role/title if known.
action_itemsSimple list of what was assigned, and to whom if stated.
key_decisionsSimple list of concrete decisions and outcomes — not discussion.
topics_discussedSimple list of the subjects covered.

Documents, PDFs, and business content — numbers before narrative:

StyleWhat to produce
briefAt most 3 sentences, no bullets, only the 2–3 essential takeaways. No filler ("Overall", "In summary").
detailed250+ words. Extract every number, percentage, dollar amount, date, and metric. Name competitors, partners, customers, technologies. Full paragraphs, no bullets.
bulletsAt most 3 bullets total, each under 20 words, one idea per bullet.
executiveAt most 5 sentences. Priority order: (1) quantitative metrics, (2) financial data, (3) strategic outcomes, (4) competitive differentiators. Always keep the specific numbers. Board-ready tone, no bullets.

The rule underneath the table: for business documents, a metric always outranks the marketing language around it. "Revenue grew 40% YoY to $12M" is the sentence that survives a brief; "the company is scaling rapidly" is not.

Folding a long document forward (map-reduce)

summarize_document already does this internally when it's available — call it and you're done. Reach for the manual version only when you're working from pasted text or a file too large to read in one pass and the tool isn't an option:

  1. Split the text into ordered chunks, breaking on paragraph boundaries where possible rather than mid-sentence.
  2. Summarize the first chunk normally, in the target style.
  3. For every chunk after that, summarize it against the running summary: given the summary so far and the new chunk, output only the facts in the new chunk that are not already captured — no restating, no rephrasing what came before, no transition filler like "Additionally". This is the whole point of folding forward instead of summarizing each chunk in isolation: isolated per-chunk summaries repeat themselves and drift from the style once concatenated; folding keeps one coherent summary that only grows by what's actually new.
  4. Append each chunk's new-facts output to the running summary in order. The final running summary is the answer — do not re-summarize it again at the end, that just re-introduces the drift step 3 was avoiding.

Fork this

Swap the document table's priority order for a different domain (legal: obligations and deadlines before financial terms; incident review: root cause and impact before remediation steps) and the same fold-forward procedure carries a completely different kind of long input.

相似的 Skill

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills181k近 7 天新增 1,119 个 star

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills181k近 7 天新增 1,119 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills181k近 7 天新增 1,119 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills181k近 7 天新增 1,119 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills181k近 7 天新增 1,119 个 star

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills181k近 7 天新增 1,119 个 star