agent-kernel: Skill for Claude Code

.agents/skills/ak-dev-new-knowledgebase-integration/SKILL.md

ak-dev-new-knowledgebase-integration is a skill for Claude Code, Codex from yaalalabs/agent-kernel. It costs 49 tokens per session (4,793 once invoked), scanned A, original, Apache-2.0.

A step-by-step guide for connecting a new storage system to Agent Kernel's knowledge-base interface.

In plain words
What is it for?
Use it when adding a backend such as a vector store, graph database, or SQL-accessible system that is not already integrated.
Why use it?
It explains the code changes, existing interfaces, and setup requirements needed to make an unsupported backend usable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is yaalalabs/agent-kernel's own configuration. It tells Claude Code and Codex how to work on agent-kernel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-kernel configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/yaalalabs/agent-kernel/develop/.agents/skills/ak-dev-new-knowledgebase-integration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yaalalabs/agent-kernel

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 ak-dev-new-knowledgebase-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration/github.svg)](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-new-knowledgebase-integration)
Your own site
<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.

agentmods 80×15 button for ak-dev-new-knowledgebase-integration

Your own site · 80×15
<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>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,793 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
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.00049 $0.04793
Opus 5.5 $0.00020 $0.01917
Sonnet 5.5 $0.00010 $0.00959
Haiku 4.5 $0.00005 $0.00479

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

Security

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` |
.agents/skills/ak-dev-new-knowledgebase-integration/SKILL.md · 386 lines

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.py and store/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}"

Read the full file on GitHub · 386 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. today Changed · +1 lines aac6c1fbd45d
  2. 1mo ago Changed · +3 lines 7c644e962670
  3. 1mo ago Changed · +196 lines c49db723a918
  4. 1mo ago Changed · +1 lines 8512244deda5
  5. 2mo ago First seen · 185 lines · 49 tokens per session scan A 0e95836b5cc6

Subscribe to this mod's changes

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.

Related

ak-dev-new-knowledgebase-integration compared with skills from other repositories

ak-dev-new-knowledgebase-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ak-dev-new-knowledgebase-integrationyaalalabs/agent-kernelSkill192yesterdayApache-2.0A49Claude Code, Codex
google-firebase-ninjafabricioctelles/jump-skillsSkill32yesterdayMITA98Claude Code, Codex
b00telasticdotventures/_b00t_Skill1512d agononeA0Claude Code
django-migration-psqlprowler-cloud/prowlerSkill15kyesterdayApache-2.0A96Claude Code
azure-postgres-tsmicrosoft/skillsSkill3.2kyesterdayMITA94Claude Code
notionArvo-AI/auroraSkill454yesterdayApache-2.0A23Claude Code
datadogArvo-AI/auroraSkill454yesterdayApache-2.0A28Claude Code