Home / All Skills / Docs & Knowledge / dbs-knowledge
Docs & Knowledge · dontbesilent2025/dbskill

dbs-knowledge

Transforms local folders into an organized knowledge base that AI agents can reliably search, ingest, and maintain, with full support for navigation, version resolution, health checks, and Single Source of Truth (SOT) tiered governance. Use this skill when users want to initialize, query, update, organize, or slim down a knowledge base.

L2 Local · Restricted workspaceV1 Commit-PinnedWrite FileDual-pass Audit
Author dontbesilent2025GitHub dontbesilent2025/dbskill ↗Stars 10121License CC BY-NC 4.0(仓库根 LICENSE:Attribution-NonCommercial 4.0 International (CC BY-NC 4.0);署名 + 禁止商业使用;Copyright (c) 2026 dontbesilent)Commit 8b8e33f1ec
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

A pure prompt-orchestrated "knowledge base engineering" skill: leverages a fixed set of files (SOURCE_OF_TRUTH.md / AGENTS.md / CLAUDE.md / CODEBUDDY.md / local README.md files) to structure regular folders into navigable paths for agents in every turn, without introducing vector databases, RAG, or external databases.

skills/dbs-knowledge/SKILL.md
用户只需要理解「知识库」三个字。`SOURCE_OF_TRUTH.md`、`AGENTS.md`、`CLAUDE.md`、`CODEBUDDY.md` 和宿主兼容规则都由你在后台处理。
The "Default Prohibitions" explicitly state: never require users to install databases, vector stores, embedding services, or RAG systems. It relies entirely on file conventions and prompt discipline rather than indexing technologies.

The core artifact is a traceable invocation chain: Entry Rules → SOT Navigation → Directory README → Raw Files; navigation only provides directions without storing facts, and answering questions strictly requires reading the original raw files.

skills/dbs-knowledge/SKILL.md
SOURCE_OF_TRUTH.md:去哪里找、放在哪里、多个版本以哪个为准
There is a strict constraint in the document: "Never answer questions based solely on summaries in the navigation."

SKILL.md routes intents into four core internal modes (Create, Store, Use, Inspect); when handling multiple intents, it processes them in dependency order (e.g., ingest files first, then answer questions dependent on those files).

skills/dbs-knowledge/SKILL.md
用户同时提出多个意图时,按依赖顺序处理。例如先收录新文件,再回答依赖该文件的问题。
The routing table maps "SOT too large / navigation too long" to the "Inspect and Govern" mode.

Write operations adopt a tiered confirmation threshold: read-only audits execute freely; minor modifications with explicitly identified targets require only a single-sentence confirmation; operations involving move, copy, rename, overwrite, delete, or batch actions must provide a preview before execution.

skills/dbs-knowledge/SKILL.md
用户确认后再写入。查询知识库和只读健康检查不需要确认。
This serves as the primary safety mechanism to preserve file integrity while allowing modifications.

Safety boundaries are hardcoded in the "Default Prohibitions" list: no uploading to third parties, no modifying original text, no guessing authoritativeness, no unconfirmed batch operations, and no reading secrets, browser data, or chat databases.

skills/dbs-knowledge/SKILL.md
不上传用户文件到第三方平台。
The same list includes: "Never read secrets, passwords, browser data, chat databases, or other sensitive content" and "Never move, rename, overwrite, or delete files in batch without explicit confirmation."

Lightweight updates use an independent fast path: read only the SOT, update necessary entries, and strictly forbid full-vault scans, modifying Agent entry points, or reorganizing unrelated files in passing.

skills/dbs-knowledge/SKILL.md
不扫描整个知识库;
Comes with a fixed receipt format ([Modified] / [Added] / [Deleted] change logs) that reports only actual changes made in the current session.

The governance (slimming) mode defines four rules—Keep, Merge, Submerge, and Delete—and mandates backing up the original navigation to .trash/ inside the knowledge base before writing, ensuring backups never become the authoritative version.

skills/dbs-knowledge/SKILL.md
先把原导航复制到知识库内的安全备份位置,推荐 `.trash/YYYY-MM-DD_SOURCE_OF_TRUTH_优化前.md`
Followed immediately by: "Backups will never become the active authoritative version" to prevent backups from being mistaken for the latest source.

Mandatory post-governance verification strictly distinguishes "path existence" from "content authority": dynamic facts (amounts, prices, statuses, assignees) must be cross-checked against raw files.

skills/dbs-knowledge/SKILL.md
路径验证通过不等于内容权威。
Prevents false-positive sign-offs where an optimization is deemed successful simply because links are not broken.

2Core Capabilities

01Knowledge Base Creation: Supports empty directories and existing documents, generating SOURCE_OF_TRUTH.md and a minimal folder hierarchy (including a low-friction 00-Inbox/ folder).
02Ingestion: Assesses type, source, date, and version, suggests target paths, defaults to copying outside files to preserve originals, and avoids overwriting duplicate names.
03Invocation: Navigates to a minimal set of relevant files, reads raw content to answer queries, and outputs "Source Files + Freshness and Information Gaps".
04Health Checks: Audits path validity, multiple "latest version" conflicts, overlapping directory scopes, 00-Inbox/ backlogs, and dangling references, triaged into Immediate, Recommended, and Keep As-Is tiers.
05SOT Tiered Governance (Slimming): Audits topic density, applies Keep/Merge/Submerge/Delete rules, and offloads granular details to local directory READMEs.
06Multi-Client Entry Adaptation: AGENTS.md holds cross-platform rules, CLAUDE.md serves as a thin entry point via @AGENTS.md, CODEBUDDY.md is optional, and Grok bridge requires user_invocable: true.
07First-Use Onboarding Generator: Dynamically generates 4 directly copyable example prompts matching the actual current directory structure, strictly forbidding generic placeholder templates.
08Re-bloat Prevention Mechanism: Updates the top-level navigation only when new materials change authoritative sources, directory responsibilities, version relationships, or high-frequency entry points.

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Restrict working directory
For Administrators
Retain operation logs
Evidence & Triggers (File Paths & Excerpts)
  • 本地工作目录: File read/write and artifact output: {kb_root}/SOURCE_OF_TRUTH.md (knowledge base navigation, created or updated)
Audit Notes: The audit targets this skill's local directory: contains no executable scripts, network endpoints, or credential access. However, SKILL.md explicitly instructs the agent to continuously modify the user's repository skeleton files (creating/updating SOURCE_OF_TRUTH.md, AGENTS.md, CLAUDE.md, and local README.md files, as well as moving/renaming/deleting files and creating .trash backups in governance mode), placing it in the "local read/write only, no external transmission" tier. Write modifications enforce a three-step safeguard: preview, user confirmation, and backup (detailed in the Write Rules and Write Preview & Backup sections), preventing unconfirmed batch changes. Users must be aware that this skill directly structures and manages user-owned files rather than operating as a read-only tool.

5Second-Pass Verification

  • [ok] 外部资源/工具:是否隐性依赖外部服务(RAG/向量库/云) — 全文唯一涉及「上传」的句子是禁止性的(不上传用户文件到第三方平台);无任何 URL、包名、CLI 调用。所谓「知识库」完全由本地 markdown 约定实现。external_deps 空数组成立。
  • [ok] 安全结论:写入面是否都被「确认门槛」覆盖 — 逐条核对:新建库(用户明确要求才建)、收录(库外默认复制并保留原件、重名不覆盖)、轻量更新(仅改对应条目,不动 Agent 入口)、治理(先预览、后备份、再写入)、迁移(先展示来源与目标、得到确认后复制,保留原文件)。未发现无门槛的破坏性写入条款。
  • [ok] 实现原理是否成立:无索引技术如何保证「稳定查找」 — 查找稳定性由 SOT 的「快速查找表 + 目录职责表 + 版本与冲突规则」三件套承担,且要求路径经过存在性检查(完成标准:「`SOURCE_OF_TRUTH.md` 中的路径经过存在性检查」)。这依赖模型每次真的按导航找到并读原文;skill 用「不能只根据导航中的摘要作答」「证据不足时说明缺口,不根据常识补造本地事实」约束。结论:机制成立,但属 prompt 级保证,非机制级强制。
  • [unlocatable] 证据定位:仓库级元数据(stars/last_push)与 installs — stars=10121、last_push=2026-09-07 来自站点池 data/pool.json(GitHub API 采集),pin 本地副本内无此数据;installs 全站未采集,记 null。license 可在仓库根 LICENSE 逐字命中。

6Verdict & Scenarios

  • Breaks down the transition from "raw folder to agent-ready knowledge base" into four actionable modes (Create/Store/Use/Inspect) with explicit completion criteria, offering engineering rigor far beyond typical memory or knowledge prompts.
  • The governance mode addresses the common degradation issue of knowledge base bloat through Keep/Merge/Submerge/Delete rules, anti-bloat provisions, and post-governance verification.
  • Systematic safety design: unrestrained read-only audits, tiered write confirmations, pre-execution previews with .trash backups for batch actions, exclusion of sensitive directories by default, and fail-fast behaviors that explain configuration issues rather than degrading silently.
  • User-friendly transparent terminology: uses accessible terms ("Knowledge Base", "Navigation", "Current Active Version", "To Organize") and generates 4 tailored example prompts based on real local directories upon first use.
  • Clear boundary discipline: specifies distinct responsibilities across 4 sibling skills in explicit sections, handing off out-of-scope requests back to /dbs instead of stringing together bloated agent chains.
  • Best for: Ideal for individual knowledge workers and small teams managing scattered local documents (notes, contracts, course drafts, client dossiers, legacy versions) who want agents to reliably locate files and cite sources in every turn; particularly well-suited for setups avoiding vector DBs and RAG in favor of plain files and structured conventions. Also serves as a solid foundation for other skills (establishing navigation before content-focused skills operate on the repository).
    Not for: Not suitable for scenarios requiring technical retrieval guarantees (embeddings or full-text search indexing)—its retrieval ceiling equals the model's ability to navigate files; not recommended for massive data scales (tens of thousands of files) or multi-user concurrent writes; not intended for purely read-only needs (usable, but its primary value lies in creation and governance); not suitable for unattended automation, as all write operations require user confirmation.
    Install Agent-Ready
    ① Verified Mirror 2026-09-15
    Option A · Direct DownloadDownload dbs-knowledge.tar.gz
    sha256: e1ee68318d3327e5…
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 8b8e33f1ec.