# Knowledge base integration

> Knowledge base integration is an open-source agent skill for knowledge and memory. Guides an agent through building a retrieval-grounded product assistant with access. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/knowledge-base-integration
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** knowledge-base-integration
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-02

## About

This skill is a specialist playbook for wiring a product-facing AI agent to an authorized retrieval knowledge base. It asks the builder to write down a versioned retrieval contract first, covering corpus version, authorized data classes, the mapping from user principals to access filters, representative query fixtures, and metric thresholds chosen from the team's own evaluation set.

The workflow covers the points where retrieval-augmented agents usually fail: applying access filters before ranking or generation, tracing each answer span back to returned passage IDs and versions, and treating retrieved text as untrusted evidence rather than instructions. It also defines a fixed response for no-hit or low-confidence queries, and a regression pass that compares old and new indexes before a refreshed corpus is accepted.

The skill is written as guidance and includes no scripts. It expects an existing retrieval stack and an evaluation set, and it does not name a specific vector store, model or framework.

## When your agent uses it

> Use when implementing or evaluating a retrieval-augmented product agent that must enforce corpus ACLs, trace answers to returned passages, fail safely on no-hit, and pass retrieval, injection, and refresh regressions. Not for general repository memory or chrono-vault recall.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/knowledge-base-integration)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/knowledge-base-integration)

## Features

- **Versioned retrieval contract:** A template for recording corpus version, data classes, ACL mapping and thresholds before implementation starts.
- **Access-filtered retrieval:** Guidance to apply the caller's permission filter before ranking or generation so forbidden passages never reach the model.
- **Answer citation tracing:** Requires each answer span to map to real returned passage IDs and versions, with no fabricated citations.
- **Injection test fixtures:** Adversarial query and passage cases that check instructions inside retrieved text cannot override policy or cross boundaries.
- **Safe no-hit handling:** Defines an exact fallback response or handoff for low-confidence and no-result queries instead of guessing.
- **Refresh regression suite:** Reruns retrieval and grounding checks after re-indexing and compares against the prior corpus before accepting the new index.

## Good for

- Design access control for a customer-facing assistant that answers from internal documents
- Set up retrieval evaluation thresholds for a support bot over a product knowledge base
- Add citation tracing so each answer points to the passages it was drawn from
- Write adversarial tests for prompt injection hidden inside indexed documents
- Plan a re-indexing workflow that checks for regressions before a new corpus goes live

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/knowledge-base-integration` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/knowledge-base-integration &&
cp -R "$tmp/.agents/skills/knowledge-base-integration" ~/.claude/skills/knowledge-base-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/knowledge-base-integration` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/knowledge-base-integration` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/knowledge-base-integration &&
cp -R "$tmp/.agents/skills/knowledge-base-integration" ~/.agents/skills/knowledge-base-integration &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/knowledge-base-integration` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/knowledge-base-integration` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/knowledge-base-integration &&
cp -R "$tmp/.agents/skills/knowledge-base-integration" ~/.cursor/skills/knowledge-base-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/knowledge-base-integration` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/knowledge-base-integration
```

Or copy the folder to `~/.gemini/skills/knowledge-base-integration` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/knowledge-base-integration`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/knowledge-base-integration &&
cp -R "$tmp/.agents/skills/knowledge-base-integration" ~/.copilot/skills/knowledge-base-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/knowledge-base-integration` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/knowledge-base-integration` into your agent's skills folder as `knowledge-base-integration`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Knowledge base integration need before it can be used?

It assumes an existing or planned retrieval-augmented agent, a representative set of evaluation queries, and a defined corpus with an access-control model. It supplies the checklist and contract structure, not the data.

### When should Knowledge base integration not be used?

The SKILL.md says it is not meant for general repository memory or chrono-vault recall.

### Does Knowledge base integration include scripts or tools that run automatically?

No. The folder contains only the SKILL.md file, with no scripts and no tool permissions declared.

### Which metrics does Knowledge base integration require?

It asks the user to pick retrieval quality and answer grounding metrics with minimum thresholds from their own evaluation set rather than using fixed defaults.

### How do I install Knowledge base integration in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/knowledge-base-integration to use it in all your projects, or to .claude/skills/knowledge-base-integration in one project.

### Does Knowledge base integration run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Knowledge base integration?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Knowledge base integration?

The closest alternatives to Knowledge base integration are Kb query, Research, Foundry iq, Qdrant search quality diagnosis and Qdrant search quality.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Kb query](https://ai-powered.com/skills/kb-query): Kb query is an open-source agent skill for knowledge and memory.
- [Research](https://ai-powered.com/skills/research-hec-ovi-2): Research is an open-source agent skill for web search and scraping.
- [Foundry iq](https://ai-powered.com/skills/foundry-iq): Foundry iq is an open-source agent skill for knowledge and memory.
- [Qdrant search quality diagnosis](https://ai-powered.com/skills/qdrant-search-quality-diagnosis-qdrant): Qdrant search quality diagnosis is an open-source agent skill for knowledge and memory.
- [Qdrant search quality](https://ai-powered.com/skills/qdrant-search-quality-qdrant): Qdrant search quality is an open-source agent skill for knowledge and memory.
- [Qdrant hybrid search](https://ai-powered.com/skills/qdrant-hybrid-search): Qdrant hybrid search is an open-source agent skill for knowledge and memory.
- [Research ops edho ferdian](https://ai-powered.com/skills/research-ops-edho-ferdian): Research ops edho ferdian is an open-source agent skill for knowledge and memory.
- [Qdrant hybrid search prefetches](https://ai-powered.com/skills/qdrant-hybrid-search-prefetches): Qdrant hybrid search prefetches is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/knowledge-base-integration
