Agent skill

Knowledge Layer

by study8677 in study8677/repobrain

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support.

MITAuto-check passedKnowledge Management

Install Knowledge Layer

skills CLI
$ npx skills add study8677/repobrain --skill knowledge-layer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install study8677/repobrain knowledge-layer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/study8677/repobrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/engine/repobrain_engine/skills/knowledge-layer .claude/skills/knowledge-layer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
knowledge-layer
GitHub stars
1.3k
Token cost
~324 tokens
SKILL.md length
103 words
Files
3
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support.

  • Tasks that involve Knowledge graphs
  • SKILL.md covers Purpose, Inputs, Outputs and Boundaries, plus 2 more sections
  • Runs Python scripts from its folder

What it does

Knowledge Layer is an agent skill from study8677/repobrain. High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Exposes refreshfilesystem and askfilesystem for building and querying the knowledge graph.

Its SKILL.md is about 320 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `__init__.py` and `tools.py`).

It sits in Knowledge Management, covering Knowledge graphs. It works with Model Context Protocol. The repository describes itself as: 🧠 RepoBrain (formerly Antigravity) — Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more. The licence is MIT.

When your agent uses it

  • Tasks that involve Knowledge graphs

Example prompts

  • “/knowledge-layer”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ed8a5d0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Knowledge Layer loads about 324 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 103 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~324

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from study8677/repobrain at commit ed8a5d0, republished under its MIT licence (© study8677). 103 words, ~324 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-layer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
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=".", 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.

© study8677, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in engine/repobrain_engine/skills/knowledge-layer of study8677/repobrain.

  • SKILL.md
  • __init__.py
  • tools.py

Open the folder on GitHubat commit ed8a5d0

Compare with similar skills

Knowledge Layer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Knowledge Layer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Layer this skillstudy8677/repobrain1.3k—~324Automated safety check: PassMIT
Gitnexus Guideaws-samples/sample-kolya-br-proxy10610 repos~867Automated safety check: PassMIT-0
Sage Wikixoai/sage-wiki620—~2.4kAutomated safety check: PassMIT
Remnic Entitiesjoshuaswarren/remnic217—~612Automated safety check: PassMIT
Memex Best Practicesiamtouchskyer/memex142—~2.9kAutomated safety check: PassMIT
Askagenticnotetaking/arscontexta3.5k1 repos~5.7kAutomated safety check: PassMIT

Similar skills

  • Gitnexus Guide

    aws-samples/sample-kolya-br-proxy

    Official

    A skill your agent uses when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference.

    106 GitHub starsUsed in 10 repos~867 tokens
    Knowledge ManagementAuto-check passed
  • Sage Wiki

    xoai/sage-wiki

    Reference skill for sage-wiki — local-first knowledge graph with MCP server, REST API, compiled wiki, and Obsidian-compatible output.

    620 GitHub stars~2.4k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Remnic Entities

    joshuaswarren/remnic

    Browse entities in the Remnic knowledge graph and surface their facts and relationships.

    217 GitHub stars~612 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Memex Best Practices

    iamtouchskyer/memex

    Zettelkasten best practices for building a high-quality knowledge graph.

    142 GitHub stars~2.9k tokensUpdated 29 days ago
    Knowledge ManagementAuto-check passed
  • Ask

    agenticnotetaking/arscontexta

    Query the bundled research knowledge graph for methodology guidance.

    3.5k GitHub starsUsed in 1 repo~5.7k tokens
    Knowledge ManagementAuto-check passed
  • Infranodus

    infranodus/skills

    Text network analysis and knowledge graphs via the InfraNodus MCP server: analyze text structure, find content gaps, generate research questions and ideas, compare texts, optimize content for…

    119 GitHub stars~3.5k tokensUpdated 17 days ago
    Knowledge ManagementAuto-check passed

More from study8677/repobrain

  • Agent Repo Init

    study8677/repobrain

    One-click initialization of a multi-agent repository from the RepoBrain template.

    1.3k GitHub starsUsed in 1 repo~404 tokens
    Auto-check: notes
  • Graph Retrieval

    study8677/repobrain

    Exposes graph-based retrieval as a tool capability via querygraph.

    1.3k GitHub stars~255 tokensUpdated 28 days ago
    Auto-check passed
  • Agent Repo Init

    study8677/repobrain

    Bootstraps a new multi-agent repository from the RepoBrain template via initagentrepo.

    1.3k GitHub stars~288 tokensUpdated 28 days ago
    Auto-check: notes
  • Research

    study8677/repobrain

    Performs deep research on a topic via deepresearch. An agent skill from study8677/repobrain.

    1.3k GitHub stars~128 tokensUpdated 28 days ago
    Auto-check passed

Questions about Knowledge Layer

What does Knowledge Layer do?

High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support. Knowledge Layer is an agent skill from study8677/repobrain. High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support.

When should I use Knowledge Layer?

Knowledge Layer fits situations like: tasks that involve Knowledge graphs.

How do I install Knowledge Layer in Claude Code?

Run `npx skills add study8677/repobrain --skill knowledge-layer -a claude-code`. Or copy the skill folder (engine/repobrain_engine/skills/knowledge-layer in study8677/repobrain) into .claude/skills/knowledge-layer in your project. Claude Code loads it when a task matches its description.

How do I install Knowledge Layer in Codex?

Run `npx skills add study8677/repobrain --skill knowledge-layer -a codex`. Or copy the skill folder (engine/repobrain_engine/skills/knowledge-layer in study8677/repobrain) into .agents/skills/knowledge-layer in your project. Codex loads it when a task matches its description.

Can I use Knowledge Layer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add study8677/repobrain --skill knowledge-layer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/knowledge-layer, .gemini/skills/knowledge-layer, .github/skills/knowledge-layer and .opencode/skills/knowledge-layer in your project.

What does Knowledge Layer need to run?

Going by SKILL.md and its folder, Knowledge Layer needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Knowledge Layer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Knowledge Layer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Knowledge Layer use?

Knowledge Layer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Knowledge Layer use?

About 324 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Knowledge Layer?

Skills that share tags, products or a category with Knowledge Layer: Gitnexus Guide (aws-samples/sample-kolya-br-proxy, 106 stars), Sage Wiki (xoai/sage-wiki, 620 stars), Remnic Entities (joshuaswarren/remnic, 217 stars) and Memex Best Practices (iamtouchskyer/memex, 142 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Layer?

study8677 (a GitHub user) maintains it in study8677/repobrain, which has 1,325 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 9, 2026.

Source: study8677/repobrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.