> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://summarize.martino.im/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://summarize.martino.im/_mcp/server.

# Agent Skill

The repo includes a built-in agent skill at [`.agent/skills/summarize/SKILL.md`](https://github.com/martinopiaggi/summarize/blob/main/.agent/skills/summarize/SKILL.md) for AI agent integration.

## What It Does

Allows an AI agent to invoke the summarizer CLI as a tool. The agent can:

* Summarize videos from URLs
* Extract specific styles (wisdom, fact-check, tutorial)
* Chain multiple styles for comprehensive analysis
* Read the generated summary and present it to the user

## File Locations (Relative to Project Root)

| File             | Location                    |
| ---------------- | --------------------------- |
| Config           | `./summarizer.yaml`         |
| API keys         | `./.env`                    |
| Prompt templates | `./summarizer/prompts.json` |
| Output summaries | `./summaries/<filename>.md` |

## Key Rules for Agents

* **Never fetch or scrape URLs directly** — Pass the URL to the CLI and let it handle downloading, transcription, and summarization internally.
* **Always read the output file** from `summaries/` rather than expecting stdout.
* **Use `--no-config`** only when every parameter is passed explicitly.
* **Do not use `--no-save` on Windows** — Unicode output crashes stdout.