querying-knowledge-base

querying-knowledge-base is a skill for Claude Code, Codex from nuetzliches/powerbrain. It costs 28 tokens per session (2,361 once invoked), scanned A, original, Apache-2.0.

A guide for searching an internal company knowledge base containing documents, policies, and connected information.

In plain words
What is it for?
Running semantic searches, structured queries, policy checks, graph queries, and data-ingestion requests through the Powerbrain knowledge base.
Why use it?
It explains how coding agents can find relevant internal answers instead of relying on memory or manually searching unrelated files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; mentions OpenCode.

Good fit Running semantic searches, structured queries, policy checks, graph queries, and data-ingestion requests through the Powerbrain knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nuetzliches/powerbrain/querying-knowledge-base
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 nuetzliches/powerbrain --skill querying-knowledge-base
Clone the repo
git clone --depth 1 https://github.com/nuetzliches/powerbrain

Made for: Claude Code, Codex.

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 querying-knowledge-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/nuetzliches/powerbrain/querying-knowledge-base/github.svg)](https://agentmods.dev/skills/nuetzliches/powerbrain/querying-knowledge-base)
Your own site
<a href="https://agentmods.dev/skills/nuetzliches/powerbrain/querying-knowledge-base"><img src="https://agentmods.dev/badge/skills/nuetzliches/powerbrain/querying-knowledge-base/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 querying-knowledge-base

Your own site · 80×15
<a href="https://agentmods.dev/skills/nuetzliches/powerbrain/querying-knowledge-base"><img src="https://agentmods.dev/badge/skills/nuetzliches/powerbrain/querying-knowledge-base.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00028 $0.02361
Opus 5.5 $0.00011 $0.00944
Sonnet 5.5 $0.00006 $0.00472
Haiku 4.5 $0.00003 $0.00236

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

Security

Grade A, and why

querying-knowledge-base scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

After registration, all Powerbrain tools are available directly as MCP tools — no curl required. The agent can call `search_knowledge`, `graph_query`, etc. like any other tool.
skills/querying-knowledge-base/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Querying the Knowledge Base

Overview

Query the Powerbrain knowledge base via its MCP server. The server exposes a set of tools for semantic search, structured queries, policy checks, graph queries, and data ingestion. All requests use JSON-RPC 2.0 over HTTP POST (MCP Streamable HTTP transport).

Server

  • URL: http://localhost:8080/mcp
  • Transport: MCP Streamable HTTP (JSON-RPC 2.0 over HTTP POST)

Access Methods

Option A: Native MCP server (recommended)

If your agent supports MCP natively (Claude Code, OpenCode, Cursor, etc.), register the server in your agent configuration:

Claude Code (~/.claude/mcp_servers.json or project-level .mcp.json):

{
  "mcpServers": {
    "powerbrain": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

OpenCode (~/.config/opencode/config.json):

{
  "mcpServers": {
    "powerbrain": {
      "type": "http",
      "url": "http://localhost:8080/mcp"
    }
  }
}

After registration, all Powerbrain tools are available directly as MCP tools — no curl required. The agent can call search_knowledge, graph_query, etc. like any other tool.

Option B: HTTP/curl (without native MCP integration)

If the agent has no native MCP support, all tools can be called via HTTP POST.

Headers: Content-Type: application/json, Accept: application/json, text/event-stream

1. Initialize (once per logical session)
curl -s http://localhost:8080/mcp -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{
    "jsonrpc": "2.0", "id": 1, "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {"name": "agent", "version": "1.0"}
    }
  }'
2. Call a tool
curl -s http://localhost:8080/mcp -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "tools/call",
    "params": {
      "name": "search_knowledge",
      "arguments": {
        "query": "remote work policy",
        "collection": "pb_general",
        "top_k": 5,
        "agent_id": "my-agent",
        "agent_role": "analyst"
      }
    }
  }'

Read the full file on GitHub · 281 lines

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 · 281 lines · 28 tokens per session scan A f4d87f0f0912

Subscribe to this mod's changes

querying-knowledge-base is a skill published in the GitHub repository nuetzliches/powerbrain (5 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 2,361 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.