# Knowledge Layer

> Knowledge Layer Skill

- Skill: `xiaolai/knowledge-layer` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add xiaolai/knowledge-layer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaolai/knowledge-layer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaolai (https://skillmd.com/u/xiaolai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/xiaolai/knowledge-layer

---

# Knowledge Layer Skill

## Purpose
Provide a high-level deployment wrapper over Antigravity 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 `.antigravity/`:
  - `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 (`ag-refresh`, `ag-ask`, `ag-mcp`) remain valid.
- High-level aliases can be disabled with `AG_ENABLE_LAYER_ALIASES=0`.

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

