Kb Query

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

cYz26 Updated

File contents

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.

cYz26/cy-codex-skills/tree/main/plugins/agent-kb/skills/kb-query commit 3e40852094

Frequently asked questions

npx skillmds@latest add cyz26/kb-query