Skip to main content

knowledge-layer

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Exposes `refresh_filesystem` and `ask_filesystem` for building and querying the knowledge graph.

来源信息

仓库
study8677/repobrain
最近来源活动
2026年10月8日 08:01
检测到的 SKILL.md 语言
英语
星标
1,356
Forks
265

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
knowledge-layer
description
High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Exposes `refresh_filesystem` and `ask_filesystem` for building and querying the knowledge graph.
# 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=".", full=False)` - `ask_filesystem(question, workspace=".")` Refresh automatically chooses a first complete build, matching interrupted-task resume, committed-diff update, or no-op. `full=True` always starts a new complete build. The workspace defaults to the current directory and must be a clean Git worktree. Ask stays read-only and only suggests `rb-refresh` when knowledge is stale. Both refresh surfaces report failures without replacing usable knowledge. ## 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.
在 GitHub 查看