---
name: Knowledge Layer
slug: knowledge-layer
category: AI Engineering
description: Knowledge Layer provides a high-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Use it to build and query a repository knowledge graph via refresh_filesystem and ask_filesystem.
github: "https://github.com/study8677/repobrain/tree/main/engine/repobrain_engine/skills/knowledge-layer"
language: Python
stars: 1314
forks: 265
install: "npx degit https://github.com/study8677/repobrain/tree/main/engine/repobrain_engine/skills/knowledge-layer ~/.claude/skills/knowledge-layer"
installs_to: ~/.claude/skills/knowledge-layer
source_path: engine/repobrain_engine/skills/knowledge-layer/SKILL.md
collection_size: 6
category_size: 2451
collection_url: "https://dirskills.com/collections/study8677/repobrain"
added: 2026-08-20T07:54:50.924Z
last_synced: 2026-08-20T07:54:50.924Z
canonical_url: "https://dirskills.com/skills/knowledge-layer"
---

# Knowledge Layer

Knowledge Layer provides a high-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Use it to build and query a repository knowledge graph via refresh_filesystem and ask_filesystem.

**Install:**

```bash
npx degit https://github.com/study8677/repobrain/tree/main/engine/repobrain_engine/skills/knowledge-layer ~/.claude/skills/knowledge-layer
```

## README

# Knowledge Layer Skill

## Purpose
Provide a high-level deployment wrapper over RepoBrain core, with graph-first
knowledge injection and all-file support (code, docs, data, media metadata).

## Inputs
- `refresh_filesystem(workspace=".", quick=False)`
- `ask_filesystem(question, workspace=".")`

## Outputs
- Refresh writes graph-first artifacts under `.repobrain/`:
  - `knowledge_graph.json`
  - `knowledge_graph.md`
  - `knowledge_graph.mmd`
  - `document_index.md`
  - `data_overview.md`
  - `media_manifest.md`
  - plus existing `conventions.md` and `structure.md`
- Ask returns a grounded answer with source paths.

## Boundaries
- Skill is a wrapper layer only; no standalone runtime.
- Core Hub/Agent/Pipeline architecture remains the source of truth.

## Compatibility
- Existing commands (`rb-refresh`, `rb-ask`, `rb-mcp`) remain valid.
- High-level aliases can be disabled with `RB_ENABLE_LAYER_ALIASES=0`.

## Degrade Strategy
- If graph artifacts are unavailable, ask falls back to `structure.md` and
  `conventions.md` context.
