kagi-summarizer
Skill18 starsChanged 10 months agoMITView on GitHub
Summarize any URL or text using Kagi's Universal Summarizer API. Supports multiple engines (including the enterprise-grade Muriel model), bullet-point takeaways, and output translation to 28 languages. Use when you need a high-quality summary of an article, paper, video transcript, or any document.
- Reads credentials
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kagi-enrichSkill
- kagi-fastgptSkill
- kagi-searchSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Create an account at https://kagi.com/signup
- Distinctive: line 19
Add funds at: https://kagi.com/settings/billing_api
- Very specific: line 20
Add to your shell profile (~/.profile or ~/.zprofile):
- Distinctive: line 97
If no language is specified, the output language follows the document's own language.
- Distinctive: line 140
Use kagi-summarizer: when you have a URL or document and need a concise summary without reading it yourself
- Very specific: line 142
Use
--engine muriel: when quality matters most (longer documents, academic papers, technical reports) - Very specific: line 143
Use
--lang: when you need the summary in a language different from the source - Distinctive: line 144
Use kagi-fastgpt: instead when you have a question that requires synthesizing information from multiple sources via live web search
- Distinctive: line 145
Use kagi-search: instead when you need raw search results to scan or compare
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kagi Universal Summarizer
Summarize any URL or block of text using Kagi's Universal Summarizer API. Handles articles, papers, PDFs, video transcripts, forum threads, and more. Supports multiple summarization engines and can translate output to 28 languages.
This skill uses a Go binary for fast startup and zero runtime dependencies. The binary can be downloaded pre-built or compiled from source.
Setup
Requires a Kagi account with API access enabled. Uses the same KAGI_API_KEY as all other kagi-* skills.
- Create an account at https://kagi.com/signup
- Navigate to Settings → Advanced → API portal: https://kagi.com/settings/api
- Generate an API Token
- Add funds at: https://kagi.com/settings/billing_api
- Add to your shell profile (
~/.profileor~/.zprofile):export KAGI_API_KEY="your-api-key-here" - Install the binary — see Installation below
Pricing
Token-based, billed per 1,000 tokens processed. Cached requests are free.
| Plan | Price per 1k tokens |
| Standard (Cecil / Agnes) | $0.030 |
| Kagi Ultimate subscribers | $0.025 (automatically applied) |
| Muriel (enterprise-grade) | higher — check API pricing page |
Usage
# Summarize a URL
{baseDir}/kagi-summarizer.sh https://example.com/article
# Summarize raw text
{baseDir}/kagi-summarizer.sh --text "Paste your article text here..."
# Pipe text from stdin
cat paper.txt | {baseDir}/kagi-summarizer
echo "Long text..." | {baseDir}/kagi-summarizer.sh --type takeaway
# Choose engine
{baseDir}/kagi-summarizer.sh https://arxiv.org/abs/1706.03762 --engine muriel
# Get bullet-point takeaways instead of prose
{baseDir}/kagi-summarizer.sh https://example.com/article --type takeaway
# Translate summary to another language
{baseDir}/kagi-summarizer.sh https://example.com/article --lang DE
{baseDir}/kagi-summarizer.sh https://example.com/article --lang JA
# JSON output
{baseDir}/kagi-summarizer.sh https://example.com/article --json
# Show balance only when needed
{baseDir}/kagi-summarizer.sh https://example.com/article --show-balance
{baseDir}/kagi-summarizer.sh balance
# Combined options
{baseDir}/kagi-summarizer.sh https://arxiv.org/abs/1706.03762 --engine muriel --type takeaway --lang EN --jsonOptions
| Flag | Description |
--text <text> | Summarize raw text instead of a URL |
--engine <name> | Summarization engine (see below, default: cecil) |
--type <type> | Output type: summary (prose) or takeaway (bullets) |
--lang <code> | Translate output to a language code (e.g. EN, DE, FR, JA) |
--json | Emit JSON output |
--no-cache | Bypass cached responses |
--show-balance | Print API balance to stderr for this call |
--timeout <sec> | HTTP timeout in seconds (default: 120) |
Engines
| Engine | Description |
cecil | Friendly, descriptive, fast summary (default) |
agnes | Formal, technical, analytical summary |
muriel | Best-in-class, enterprise-grade model — highest quality, slower |
Language Codes
Common codes: EN English · DE German · FR French · ES Spanish · IT Italian · PT Portuguese · JA Japanese · KO Korean · ZH Chinese (simplified) · ZH-HANT Chinese (traditional) · RU Russian · AR Arabic
Full list: BG CS DA DE EL EN ES ET FI FR HU ID IT JA KO LT LV NB NL PL PT RO RU SK SL SV TR UK ZH ZH-HANT
If no language is specified, the output language follows the document's own language.
Output
Default (text)
Prints the summary to stdout. Token usage is printed to stderr. API balance is shown only with --show-balance:
The paper "Attention Is All You Need" introduces the Transformer architecture,
a novel approach to sequence transduction tasks that relies entirely on
attention mechanisms, dispensing with recurrence and convolutions...
[tokens: 1243]You can check balance separately:
{baseDir}/kagi-summarizer.sh balance
{baseDir}/kagi-summarizer.sh balance --jsonJSON (--json)
{
"input": "https://arxiv.org/abs/1706.03762",
"output": "The paper introduces the Transformer...",
"tokens": 1243,
"engine": "muriel",
"type": "takeaway",
"meta": {
"id": "abc123",
"node": "us-east",
"ms": 4821,
"api_balance": 9.98
}
}When to Use
- Use kagi-summarizer when you have a URL or document and need a concise summary without reading it yourself
- Use
--type takeawayfor structured bullet points — ideal for research papers, long articles, or meeting notes - Use
--engine murielwhen quality matters most (longer documents, academic papers, technical reports) - Use
--langwhen you need the summary in a language different from the source - Use kagi-fastgpt instead when you have a question that requires synthesizing information from multiple sources via live web search
- Use kagi-search instead when you need raw search results to scan or compare
Installation
Option A — Download pre-built binary (no Go required)
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
case "$ARCH" in
x86_64) ARCH="amd64" ;;
aarch64|arm64) ARCH="arm64" ;;
esac
TAG=$(curl -fsSL "https://api.github.com/repos/joelazar/kagi-skills/releases/latest" | grep '"tag_name"' | cut -d'"' -f4)
BINARY="kagi-summarizer_${TAG}_${OS}_${ARCH}"
mkdir -p {baseDir}/.bin
curl -fsSL "https://github.com/joelazar/kagi-skills/releases/download/${TAG}/${BINARY}" \
-o {baseDir}/.bin/kagi-summarizer
chmod +x {baseDir}/.bin/kagi-summarizer
# Verify checksum (recommended)
curl -fsSL "https://github.com/joelazar/kagi-skills/releases/download/${TAG}/checksums.txt" | \
grep "${BINARY}" | sha256sum --checkPre-built binaries are available for Linux and macOS (amd64 + arm64) and Windows (amd64).
Option B — Build from source (requires Go 1.26+)
cd {baseDir} && go build -o .bin/kagi-summarizer .Alternatively, just run {baseDir}/kagi-summarizer.sh directly — the wrapper auto-builds on first run if Go is available.
The binary has no external dependencies — only the Go standard library.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

