AGENT SKILL

kb

Knowledge base curation and management protocol

License 许可
MIT
所属仓库
timainge/picobot
最近更新
2026-04-07
Stars
★ 1
Forks
0

01 前言 Front Matter

name
kb
metadata
{}
description
Knowledge base curation and management protocol

03 SKILL.md 正文

Knowledge Base Protocol

This skill teaches you how to effectively use and curate the knowledge base (kb tool).

Core Principle: Search Before Store

Always search before storing. The kb tool enforces duplicate detection, but searching first gives you context on what already exists and helps you write better entries.

1. kb(action="search", query="<what you want to store>")
2. Review results
3. If no match: kb(action="store", ...)
4. If partial match: read the existing entry, then update or create a more specific one

Topic Selection Guide

Topic Use For Examples
self Stable self-knowledge: identity, capabilities, learned behaviors, evaluations, improvements "I tend to be verbose", tool patterns, evaluation scores
user User preferences, context, patterns "Prefers dark mode", timezone, communication style
projects Project-specific technical knowledge Architecture decisions, file structures, conventions
domains Domain expertise, references Design patterns, API quirks, best practices
journal Raw observations, unprocessed notes, things to revisit — capture layer "Today I noticed...", reflections, things to promote later

When in doubt: user for things about the user, projects for code/technical info, domains for general knowledge, journal for raw captures (promote to other topics later).

Entry Quality Standards

Title

  • Descriptive and specific: "User prefers dark mode in all editors" not "dark mode"
  • Use sentence case
  • Should be unique enough to distinguish from other entries

Tags

  • 2-5 tags per entry
  • Use lowercase, hyphenated: dark-mode, ui-preference, python
  • Mix specificity: one broad tag + one narrow tag minimum

Content

  • One concept per entry (split large topics into multiple entries)
  • Include context for why, not just what
  • Link to related entries when relevant

Curation Tasks

When spawned as a sub-agent for KB curation:

  1. Dedup scan: Search for entries with overlapping titles/content. Merge or link them.
  2. Tag audit: Ensure entries have 2-5 relevant tags. Fix missing or overly generic tags.
  3. Consolidation: If multiple journal entries cover the same topic, create a proper entry in the right topic and reference the journal entries.
  4. Staleness check: Flag entries that may be outdated (old project info, changed preferences).

Reading Entries

Use kb(action="read", path="topic/filename.md") to read full entry content. The search results show paths you can use directly.

04 同仓库更多 Skills