kagi-search
Skill1 starsChanged 5 days agoBSD-3-ClauseView on GitHub
Mandatory and exclusive protocol for all web search and page enrichment. Applies whenever the user mentions internet search, asks to 'google' something (including the Russian verb 'погуглить'), 'find online', 'search the web', or any equivalent. The agent MUST use Kagi MCP tools for any external information lookup; no other search mechanism is permitted. Governs kagi_search_fetch, kagi_fastgpt, kagi_extract, and kagi_summarizer with examples and efficiency guidance. Always active.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- joelazar/kagi-skillstheir own version, first seen Feb 21, 2026
- hffmnnj/kagi-skilltheir own version, first seen Dec 22, 2025
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- joelazar/kagi-skills★ 18same name
- hffmnnj/kagi-skill★ 6same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-designSkill
- bootstrapSkill
- dash-protocolSkill
- discuss-firstSkill
- entity-protocolSkill
- existence-bibleSkill
- frontmatter-protocolSkill
- mandatory-toolsSkill
- markdown-protocolSkill
- ondemandSkill
- preflight-checklistSkill
- python-langSkill
- read-for-commentsSkill
- serena-protocolSkill
- subagents-protocolSkill
- todo-protocolSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 14 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When this skill is active, you MUST use Kagi tools for any web search, news retrieval, page extraction, or summarization.
- Distinctive: line 14
No other search mechanism is permitted.
- Distinctive: line 24
Use your training data or general knowledge as a substitute for a live web search.
- Very specific: line 25
Use any CLI tool to perform a web search (for example curl, wget, lynx, w3m, python requests, or grep over downloaded pages).
- Distinctive: line 26
Use any non-Kagi search API or service.
- Distinctive: line 29
If the answer matters, search for it with Kagi.
- Distinctive: line 49
All web search, news retrieval, page extraction, and summarization MUST go through the tools listed below.
- Distinctive: line 54
Use the Routing Index below to extract only the section you need.
- Very specific: line 93
Prefer a low limit (3–5) to save tokens.
- Very specific: line 94
Only increase limit when the first page is insufficient.
- Very specific: line 121
Use this when the user asks a direct question such as "What is X?", "How does Y work?", or "Compare A and B.".
- Very specific: line 122
Always set web_search: true unless you are asking a purely internal question.
- Distinctive: line 132
Search snippets are insufficient and you need detailed procedures or code examples.
- Very specific: line 145
Start with the narrowest query and lowest limit.
- Very specific: line 146
Use include_domains to restrict to authoritative sources.
- Very specific: line 147
Use time_relative for time-sensitive topics.
- Distinctive: line 148
Do not call multiple tools in parallel unless the queries are independent.
- Distinctive: line 154
If a subagent needs web data, the main agent MUST perform the Kagi call and pass distilled results in the subagent prompt.
- Distinctive: line 159
Check Need: If the information is not already in context, memory, or conversation, you MUST use Kagi, unless the task is a raw-fetch case …
- Distinctive: line 161
Example Lookup: If you need an example payload, use the Lazy-Load Protocol in Section 3.
- Distinctive: line 162
Execute: Call the selected Kagi tool with the minimum necessary parameters.
- Distinctive: line 168
If you use training data, a raw CLI search tool, or any non-Kagi mechanism when a Kagi tool is appropriate, halt immediately, discard the …
≈ “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
SKILL: Kagi Search & Enrichment Protocol
This skill governs every use of the kagimcp MCP tools.
When this skill is active, you MUST use Kagi tools for any web search, news retrieval, page extraction, or summarization.
No other search mechanism is permitted.
Any user request phrased as "погугли", "поищи в интернете", "search the web", "google it", "find online", or any similar phrase MUST be handled through this skill and therefore through Kagi tools.
1. Absolute Search Rule (HARD RULE)
Whenever the current task requires information that is not already present in the project context, Serena memory, or the current conversation, you MUST use a Kagi tool to obtain it.
You MUST NOT:
- Use your training data or general knowledge as a substitute for a live web search.
- Use any CLI tool to perform a web search (for example
curl,wget,lynx,w3m,python requests, orgrepover downloaded pages). - Use any non-Kagi search API or service.
- Guess, assume, or hallucinate facts that could be verified with a Kagi search.
If the answer matters, search for it with Kagi.
The only exception is the raw-fetch case described in Section 1.1.
1.1 When Raw Fetch is Permitted
You MAY use a raw CLI fetch tool (for example curl or wget) ONLY when the explicit goal is to obtain the exact bytes returned by a specific URL, with no transformation, summarization, or search.
Permitted cases include:
- Downloading a source file, binary, archive, or asset exactly as the server serves it.
- Fetching an RFC, standard, or specification to save it to Serena memory or disk unchanged.
- Retrieving a raw config, schema, or data file for direct storage or checksum verification.
In all other cases — discovery, reading, summarizing, searching, comparing, or answering questions about web content — you MUST use Kagi tools. Kagi tools are strongly preferred because they minimize token usage.
2. MCP Group Declaration
This task requires the kagimcp MCP skill group.
All web search, news retrieval, page extraction, and summarization MUST go through the tools listed below.
3. Lazy-Load Protocol (CRITICAL)
You MUST NOT read references/kagi-tool-examples.md in its entirety.
Use the Routing Index below to extract only the section you need.
Extraction Execution:
- Match your task to a "Trigger / Situation" in the Routing Index below.
- Copy the corresponding
[ref: ...]tag. - Extract ONLY the relevant section per the canonical loader mechanics in
frontmatter-protocol[ref: #lazy-load-routing](bounded extraction — never a blindrg -A Nwindow; the exact command lives there, not here). - Apply the extracted example strictly.
Routing Index
| Trigger / Situation | Target Section | Anchor |
Writing or adapting a kagi_search_fetch call. | Search examples | [ref: #kagi-search-fetch-examples] |
Writing or adapting a kagi_fastgpt call. | FastGPT examples | [ref: #kagi-fastgpt-examples] |
Writing or adapting a kagi_extract call. | Extract examples | [ref: #kagi-extract-examples] |
Writing or adapting a kagi_summarizer call. | Summarizer examples | [ref: #kagi-summarizer-examples] |
4. Tool Selection Guide
| Tool | Best for | When to use |
kagi_search_fetch | General web/news/video/image/podcast search. | Default first choice for almost any search. Use for discovery, finding documentation, news, tutorials, and source verification. |
kagi_fastgpt | AI-generated answers with citations. | When the user asks a direct question and a synthesized, cited answer is more valuable than a list of links. |
kagi_extract | Full-page Markdown extraction. | When you already have a URL and need the complete page content, not a summary. |
kagi_summarizer | Condensed page summary. | When you have a long page and only need the key takeaways or a short paragraph. |
5. kagi_search_fetch
This is the workhorse tool.
Use it for:
- Finding documentation, libraries, or APIs.
- News search (
workflow: "news"). - Video, podcast, or image search (
workflow: "videos","podcasts","images"). - Domain-restricted searches (
include_domains,exclude_domains). - Time-bounded searches (
after,before,time_relative). - Fetching full inline content for top results (
extract_count).
Prefer a low limit (3–5) to save tokens.
Only increase limit when the first page is insufficient.
Example patterns
Find official docs only:
{
"query": "Temporal workflow versioning",
"include_domains": ["docs.temporal.io"],
"limit": 3
}Recent news:
{
"query": "OpenAI",
"workflow": "news",
"time_relative": "week",
"limit": 5
}6. kagi_fastgpt
Use this when the user asks a direct question such as "What is X?", "How does Y work?", or "Compare A and B.".
Always set web_search: true unless you are asking a purely internal question.
The output is a synthesized answer with numbered citations and source URLs. Summarize the answer for the user; do not dump raw output unless requested.
7. kagi_extract
Use this when:
- You have a specific documentation page and need the full text.
- Search snippets are insufficient and you need detailed procedures or code examples.
- You need to quote exact passages from a page.
8. kagi_summarizer
Use this when:
- The page is long and you only need the gist.
- You want bullet points for quick scanning (
summary_type: "takeaway"). - You want a concise paragraph (
summary_type: "summary").
9. Efficiency Rules
- Start with the narrowest query and lowest
limit. - Use
include_domainsto restrict to authoritative sources. - Use
time_relativefor time-sensitive topics. - Do not call multiple tools in parallel unless the queries are independent.
- Distill web results before passing them to subagents or users.
10. Interaction with Subagents
Subagents do NOT have access to kagimcp tools.
If a subagent needs web data, the main agent MUST perform the Kagi call and pass distilled results in the subagent prompt.
11. Master Execution Workflow
- Analyze Task: Determine whether the user needs search, a synthesized answer, full-page content, or a summary.
- Check Need: If the information is not already in context, memory, or conversation, you MUST use Kagi, unless the task is a raw-fetch case under Section 1.1.
- Tool Selection: Choose the tool from Section 4.
- Example Lookup: If you need an example payload, use the Lazy-Load Protocol in Section 3.
- Execute: Call the selected Kagi tool with the minimum necessary parameters.
- Distill: Summarize or extract the relevant facts for the user or subagent.
- Verify: Confirm you did not use training data, a raw CLI tool, or any non-Kagi search mechanism.
12. Violation Protocol
If you use training data, a raw CLI search tool, or any non-Kagi mechanism when a Kagi tool is appropriate, halt immediately, discard the offending output, perform the required Kagi search, and continue from the Kagi results.
Raw CLI fetches are allowed only under the narrow exception in Section 1.1; any other raw fetch is a violation.
Repeated violations MUST be recorded in Serena memory under bugs/<entity>/kagi-search-bypass or notes/agent/kagi-search-bypass.
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.

