Skip to content

ayagmar/summarize

v0.1.2Apache-2.0

Fetch a URL or convert a local file (PDF, DOCX, HTML, and more) into Markdown with markitdown, optionally summarizing it.

summarize

Convert a URL or local document into Markdown and optionally summarize it. Privacy: fetches URLs you give it (via markitdown) and runs local tools (uvx markitdown, and pi for the optional summary). Converted content and summaries pass through your agent and model provider.

Requirements

  • Node.js >= 22.19
  • uvx (from uv) to run markitdown
  • pi CLI, only for the optional summary step

Install

Pi

# pinned (versions are listed in the changelog linked below)
pi install npm:@ayagmar/summarize@<version>

# unpinned
pi install npm:@ayagmar/summarize

# remove
pi remove npm:@ayagmar/summarize

skills CLI

npx skills add ayagmar/agents-skills --skill summarize --agent pi

Other agent ids: claude-code, codex, cursor.

Claude Code

claude plugin marketplace add ayagmar/agents-skills
claude plugin install summarize@ayagmar-skills

Codex

codex plugin marketplace add ayagmar/agents-skills
codex plugin add summarize@ayagmar-skills

Usage

Prompt example: "Convert https://example.com/report.pdf to Markdown and summarize it." The agent runs the bundled script itself.

Run from the installed skill directory:

node to-markdown.mjs <url-or-path> --tmp

See SKILL.md for the full option list.

Credits

Based on summarize from https://github.com/mitsuhiko/agent-stuff (Apache-2.0), modified by Abdeslam Yassine Agmar.

Links