Borrowing it
Nothing to install: this file belongs to yaalalabs/agent-kernel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yaalalabs/agent-kernel/develop/.agents/skills/ak-dev-new-knowledgebase-integration/SKILL.mdgit clone --depth 1 https://github.com/yaalalabs/agent-kernelWrote 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.
[](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration)<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration/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.
<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 24 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.04793 |
| Opus 5.5 | $0.00020 | $0.01917 |
| Sonnet 5.5 | $0.00010 | $0.00959 |
| Haiku 4.5 | $0.00005 | $0.00479 |
Grade A, and why
ak-dev-new-knowledgebase-integration 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 today.
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.
| `fetch` | `fetch(ids)` | `fetch_kb` | How it starts
The opening of the file, as written. The whole thing — 386 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding a New Knowledge Base Integration
Use this skill to add a new knowledge base backend under ak-py/src/agentkernel/knowledgebase/.
This applies when you are integrating any durable source not already covered by:
ChromaManager(semantic vector search)Neo4jManager(graph relationships)StarburstManager(read-only SQL via Trino)OKFManager(Open Knowledge Format markdown bundles, over a local directory or S3)
If the new source is documents addressed by path, do not start from scratch: compose a
DocumentStore instead (step 4a).
Prerequisites
- Understand architecture and contribution patterns from
.agents/skills/ak-dev-architecture/SKILL.md - Understand existing knowledge base APIs:
ak-py/src/agentkernel/knowledgebase/base.py(the ABC, the capability gates,schema())ak-py/src/agentkernel/knowledgebase/model.py(KnowledgeCapabilities, record typing)ak-py/src/agentkernel/knowledgebase/errors.py(the error hierarchy)ak-py/src/agentkernel/knowledgebase/knowledgebuilder.py(tool gating)ak-py/src/agentkernel/knowledgebase/document.pyandstore/base.py(document-shaped backends)ak-py/src/agentkernel/knowledgebase/okf/manager.py(the reference document backend)
- Have provider credentials and a local/dev test instance for the target backend
Step-by-Step
1. Create Backend Module
Create a new file:
ak-py/src/agentkernel/knowledgebase/<backend>.py
Use lowercase file names (for example qdrant.py, milvus.py, elasticsearch.py).
2. Subclass KnowledgeBase
Implement a concrete class that extends KnowledgeBase:
from collections.abc import Iterable, Mapping
from typing import Any
from .base import KnowledgeBase, Record
from .model import KnowledgeCapabilities
class MyBackendManager(KnowledgeBase):
def __init__(self, name: str = "", description: str | None = None, **kwargs):
# Declare only what this backend actually supports: an undeclared operation
# raises KnowledgeCapabilityError rather than returning an empty result.
super().__init__(
capabilities=KnowledgeCapabilities(
kinds=["vector"],
search=True,
search_mode="semantic",
writable=True,
),
name=name,
)
self.name = name
self.description = description or "my backend"
self._client = None
self.connect(**kwargs)
@property
def backend_name(self) -> str:
return self.name if self.name else "mybackend"
def connect(self, **kwargs) -> None:
# Initialize backend client and verify connectivity.
self._client = ...
def write(self, records: Iterable[Record], **kwargs) -> None:
for record in records:
text = str(record.get("text", "")).strip()
metadata = dict(record.get("metadata", {}))
if not text:
continue
# Persist text + metadata using backend-native API.
self._client.store(text=text, metadata=metadata)
def search(self, query: str, limit: int = 3, **kwargs) -> list[Mapping[str, Any]]:
rows = self._client.search(query=query, limit=limit)
return [{"text": row["text"], "metadata": row.get("metadata", {})} for row in rows]
def get_description(self) -> str:
return f"{self.backend_name}: {self.description}"
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.
- today Changed · +1 lines aac6c1fbd45d
- 1mo ago Changed · +3 lines 7c644e962670
- 1mo ago Changed · +196 lines c49db723a918
- 1mo ago Changed · +1 lines 8512244deda5
- 2mo ago First seen · 185 lines · 49 tokens per session scan A 0e95836b5cc6
ak-dev-new-knowledgebase-integration is a skill published in the GitHub repository yaalalabs/agent-kernel (192 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 4,793 once invoked, about $0.0002 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-30.
ak-dev-new-knowledgebase-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ak-dev-new-knowledgebase-integrationyaalalabs/agent-kernel | Skill | 192 | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |
| google-firebase-ninjafabricioctelles/jump-skills | Skill | 32 | yesterday | MIT | A | 98 | Claude Code, Codex |
| b00telasticdotventures/_b00t_ | Skill | 15 | 12d ago | none | A | 0 | Claude Code |
| django-migration-psqlprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 96 | Claude Code |
| azure-postgres-tsmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 94 | Claude Code |
| notionArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 23 | Claude Code |
| datadogArvo-AI/aurora | Skill | 454 | yesterday | Apache-2.0 | A | 28 | Claude Code |