kb-research

kb-research is a skill for Claude Code from MODSetter/SurfSense. It costs 17 tokens per session (292 once invoked), scanned A, original, Apache-2.0.

A structured method for finding and combining information from your own stored knowledge base.

In plain words
What is it for?
Researching a topic using saved materials and producing a synthesized answer.
Why use it?
It helps when relevant notes or documents are spread across your knowledge base and need to be brought together accurately.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Researching a topic using saved materials and producing a synthesized answer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/modsetter/surfsense/kb-research
About the project

SurfSense is an open-source desktop application that uses an AI agent to research, transform, and edit documents while keeping their index on the user's machine. It is intended for people working with documents they cannot upload, with a choice of local or remote models and no account required.

MODSetter/SurfSense · 16,518 stars · on GitHub · surfsense.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MODSetter/SurfSense --skill kb-research
Clone the repo
git clone --depth 1 https://github.com/MODSetter/SurfSense

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-research

README.md
[![agentmods](https://agentmods.dev/badge/skills/modsetter/surfsense/kb-research/github.svg)](https://agentmods.dev/skills/modsetter/surfsense/kb-research)
Your own site
<a href="https://agentmods.dev/skills/modsetter/surfsense/kb-research"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/kb-research/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-research

Your own site · 80×15
<a href="https://agentmods.dev/skills/modsetter/surfsense/kb-research"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/kb-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 292 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00292
Opus 5.5 $0.00007 $0.00117
Sonnet 5.5 $0.00003 $0.00058
Haiku 4.5 $0.00002 $0.00029

Measured 1mo ago against content hash 67c4affeb191, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

surfsense_backend/app/agents/chat/multi_agent_chat/main_agent/skills/builtin/kb-research/SKILL.md · 24 lines

What it actually says

Knowledge-base research

When to use this skill

  • The user asks "find/look up/research" something specifically inside their knowledge base.
  • The user references documents, notes, repos, or connector data they expect to exist already.
  • A multi-document synthesis is required (e.g., "summarize what we've discussed about X across all my notes").

Plan

  1. Decompose the user's question into 2-4 specific, citation-worthy sub-questions.
  2. For each sub-question, run one targeted KB search (focused on terms the user would have written, not synonyms). Open the most relevant 2-3 documents fully via read_file if their excerpts are too short.
  3. Use grep to find supporting passages in long files instead of re-reading them end to end.
  4. Cite every claim with the [n] label shown on the passage you used (search results and read_file output both carry them); never write a chunk id, URL, or title yourself.

What good output looks like

  • Short paragraphs with inline citations.
  • Quoted phrases when wording matters.
  • An explicit "Not found in your knowledge base" callout when a sub-question has no support — never fabricate.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 24 lines · 17 tokens per session scan A 67c4affeb191

Subscribe to this mod's changes

kb-research is a skill published in the GitHub repository MODSetter/SurfSense (16,518 stars, last pushed yesterday), licensed Apache-2.0. It adds 17 tokens to every session and 292 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

memori-mcp-usage

Use when an MCP-connected agent should use Memori tools for targeted recall, summaries, post-compaction briefs, durable memory augmentation, quota checks, signup, feedback, preferences, prior context, or cross-session continuity.

MemoriLabs/Memori · 50 tokens

memori

You have access to Memori, agent-native memory infrastructure: an LLM-agnostic layer that structures memory from not just natural language, but also from agent trace that comes from execution.

MemoriLabs/Memori · 0 tokens

memori

Ambient Memori long-term memory for Claude Code via local Bash. MUST TRIGGER on essentially every non-trivial user turn: run recall before drafting any substantive response, whether or not the user mentioned memory, a prior session, or past work. The default is to check memory first; do not wait to be asked. Always…

MemoriLabs/Memori · 194 tokens

memori

Agent-native memory for OpenClaw that structures memory from agent trace, execution history, decisions, tool calls, and conversations into durable long-term memory primitives.

MemoriLabs/Memori · 34 tokens

langchain-orchestration

Comprehensive guide for building production-grade LLM applications using LangChain's chains, agents, memory systems, RAG patterns, and advanced orchestration.

manutej/luxor-claude-marketplace · 35 tokens

first-reader

Beta readers for any draft, run by simulating how a real reader experiences it, moment by moment. A skim gate, a no-lookahead timed read producing an attention transcript with quit points, a recall test of what a reader remembers the next day, and a trust ledger of the implied author. Use when the user asks for a beta…

Shubhamsaboo/awesome-llm-apps · 174 tokens