astra-kb

astra-kb is a skill for Claude Code, Codex from alrcatraz/astra-knowledge-base-mcp. It costs 26 tokens per session (2,416 once invoked), scanned B, original, MIT.

A knowledge-base guide for storing, importing, searching, and managing information with the Astra Knowledge Base server. It documents ways to split documents into pieces, create searchable representations, and search by words or meaning.

In plain words
What is it for?
Use it to add and search text, import PDF, DOCX, PPTX, or HTML files, re-split stored content, inspect knowledge-base statistics, and move data between instances.
Why use it?
It helps an agent choose an appropriate search method and manage imported knowledge instead of treating every search the same way. RAG, or retrieval-augmented generation, means finding relevant stored information before producing an answer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add and search text, import PDF, DOCX, PPTX, or HTML files, re-split stored content, inspect knowledge-base statistics, and move data between instances.

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

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 astra-kb

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alrcatraz/astra-knowledge-base-mcp/astra-kb"><img src="https://agentmods.dev/badge/skills/alrcatraz/astra-knowledge-base-mcp/astra-kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,416 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00026 $0.02416
Opus 5.5 $0.00010 $0.00966
Sonnet 5.5 $0.00005 $0.00483
Haiku 4.5 $0.00003 $0.00242

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

Security

Grade B, and why

astra-kb scanned grade B 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 19d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

secret 在 sudo 上下文创建 → 属主 root → 运行用户 `$(cat)` 静默失败(空)→ DSN 无密码。
skills/astra-kb/SKILL.md · 162 lines

How it starts

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

Astra Knowledge Base — Agent Guide

This skill teaches Hermes how to use the Astra Knowledge Base MCP server for storing, searching, and managing knowledge.

For architecture decisions (RAG vs GraphRAG vs SAG, chunking strategies, embedding infrastructure, PostgreSQL vector index selection), see the project's architecture guide.


Tools Overview

Tool Purpose
kb_add Add text content (auto-chunked + embedded + SAG extracted)
kb_search Search across KBs (hybrid/fts/vector/sag_fast/sag_precise)
kb_import_file Import PDF/DOCX/PPTX/HTML via MarkItDown
kb_extract Manual SAG extraction (auto-extract runs on kb_add anyway)
kb_rechunk Re-chunk existing content with a new strategy
kb_stats Get KB statistics
kb_search_by_tags Search by tag overlap
kb_export / kb_import_jsonl Cross-instance data migration

Search Strategy Selection

Strategy When to use
hybrid (default) General purpose — combines FTS + vector
fts Exact keyword match, code, config, proper names
vector Semantic similarity, paraphrased queries
sag_fast Direct event-vector query (fast, SAG-aware)
sag_precise Multi-hop / entity-driven retrieval (slower but richer)

Rule of thumb: use hybrid first. If results are too broad, try sag_precise. If you need exact string match, use fts.


KB Naming Convention

Knowledge bases are organised by domain, not by source type:

Domain KB name Content
Operations / SRE sre_operations Postmortems, root cause analysis
Agent config agent_config MCP config, ports, tool quirks
Reference reference Format tables, quick reference
Networking networking Research reports, config notes
Service management service_management Health check logs
Linux administration linux_admin System admin, commands

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 19d ago Changed · +8 lines c24cc8bdb444
  2. 23d ago First seen · 154 lines · 26 tokens per session scan B becd8a489c5b

Subscribe to this mod's changes

astra-kb is a skill published in the GitHub repository alrcatraz/astra-knowledge-base-mcp (2 stars, last pushed 20d ago), licensed MIT. It adds 26 tokens to every session and 2,416 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.