# Kb Query

> Use when answering from AgentKB Markdown without full-vault scans.

- Skill: `cyz26/kb-query` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyz26/kb-query`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyz26/kb-query/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: cYz26 (https://skillmd.com/u/cyz26)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/cyz26/kb-query

---


# KB Query

Use when answering a user question from an AgentKB Markdown knowledge base.

AgentKB keeps Markdown as the canonical storage format. Load the smallest sufficient context first, and make every write reviewable with Git diff.

## Context Order

1. Read the project `context-pack.md`.
2. Read `_system/indexes/home.md` and `_system/indexes/knowledge-index.md` only if the context pack is insufficient.
3. Read the few canonical notes needed for the answer.
4. Read raw sources only for provenance or conflict resolution.

## Trust Priority

1. `AGENTS.md`
2. Accepted ADRs and decisions
3. `current-state.md`
4. `context-pack.md`
5. Canonical notes
6. Memory snippets
7. Logs, inbox, and drafts

Do not read `personal/` or `archive/` unless the user explicitly asks about them.

## Procedure

1. Answer with source-grounded synthesis.
2. Call out conflicts, low confidence, and stale context.
3. Decide whether the answer has long-term value.
4. If it does, propose or make a concise write-back to knowledge, playbook, decision, candidate, or context-pack.
5. Review the Git diff for any write-back.

