Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/jetxu-llm/docmason/knowledge-base-syncnpx skills add JetXu-LLM/DocMason --skill knowledge-base-syncgit clone --depth 1 https://github.com/JetXu-LLM/DocMasonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jetxu-llm/docmason/knowledge-base-sync)<a href="https://agentmods.dev/skills/jetxu-llm/docmason/knowledge-base-sync"><img src="https://agentmods.dev/badge/skills/jetxu-llm/docmason/knowledge-base-sync.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00026 | $0.01227 |
| Opus 5 | $0.00013 | $0.00613 |
| Sonnet 5 | $0.00005 | $0.00245 |
| Haiku 4.5 | $0.00003 | $0.00123 |
Grade A, and why
knowledge-base-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge-Base Sync
Use this skill when the task is to build or refresh the DocMason knowledge base.
This is a top-level operator workflow.
Ordinary users should not need to name knowledge-construction or validation-repair themselves.
Required Capabilities
- local file access
- shell or command execution
- ability to inspect structured JSON output
If the agent cannot run local commands or inspect the resulting artifacts, stop and explain that the workspace cannot be synced reliably.
Procedure
- Start with
docmason status --jsonwhen you need the current stage, pending actions, or control-plane state. - Use
docmason sync --jsonas the default build or refresh entry point.- let sync classify the physical cause before staging
zero-deltaand foregroundinteraction-promotion-onlychecks return the current legal truth without full staging, validation, or publication; pending interaction promotion stays deferred maintenance rather than an answer-critical invalidation- for a source delta, preserve source-scoped transactional staging, cached validation for unchanged sources, compact global checks, and the existing atomic single-current publish model; do not improvise a parallel full-copy or publication path
- use the reported cause, dirty/reused counts, phase timings, cache hits/misses, and physical clone/copy telemetry when diagnosing performance or unexpected work
- keep workspace commands sequential while the sync lease is active
- do not overlap
status,sync,retrieve,trace, orvalidate-kbagainst the same workspace
- Respect the control-plane result before reasoning about later workflow steps.
- if
sync_status=awaiting-confirmation, surface the confirmation prompt and continue withdocmason sync --yes --json - if
sync_status=waiting-shared-job, treat the existing shared sync job as the legal owner and wait or retry rather than starting a second path - if
sync_status=action-required, surface the blocker directly- when the blocker is missing sync capability, route the operator to
prepare - when the blocker is a repairable Office machine-baseline gap and the host can provide
Full access, continue throughdocmason prepare --yes --jsonand then resume the same sync task instead of stopping at a passive blocker report
- when the blocker is missing sync capability, route the operator to
- if
- Treat successful
syncas the deterministic truth-building path.- detect source changes
- rebuild or reuse staged evidence
- apply safe staged repairs
- validate
- publish to
knowledge_base/current
- If
sync_statusisvalidorwarnings, inspecthybrid_enrichment.hybrid_enrichmentdescribes whether deterministic sync left a remaining multimodal semantic gap- if
modeisnot-neededorcovered, stop and return the publication result - if the sync payload also includes
lane_b_follow_up.work_path, open that governed work packet first and treat it as the authoritative next step for this sync statelane_b_follow_upis the bounded sync-time follow-up packet for that current staging state
- when that governed packet is present, do not consume the broad queue blindly; only fall back to
hybrid_work_pathwhen no bounded packet was handed offhybrid_work_pathis the broader staged queue and is only the fallback when no bounded packet was handed off
- if
modeiscandidate-preparedorpartially-coveredand no governed packet path was handed off, treathybrid_work_pathas the authoritative hard-artifact queue - do not improvise a second sync path or rewrite deterministic sidecars
- write only additive
semantic_overlay/sidecars for units you can support honestly, then rerundocmason sync --json
- Treat
pending-synthesisas a compatibility or deliberate manual-mode state, not the normal operator destination.- route to
knowledge-constructiononly when that legacy or manual path is actually intended - rerun
docmason sync --jsonafter staged authoring completes
- route to
- If validation still blocks publication after the deterministic sync path finishes, route to
validation-repair, then rerundocmason sync --json. - Return the final publication judgment to the main agent. Do not delegate final publication sign-off.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 81 lines · 26 tokens per session scan A aa1df4accae2
knowledge-base-sync is a skill published in the GitHub repository JetXu-LLM/DocMason (135 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 1,227 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
llm-wiki
The foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources…
wiki-lint
Audit and maintain the health of the Obsidian wiki. Use this skill when the user wants to check their wiki for issues, find orphaned pages, detect contradictions, identify stale content, fix broken wikilinks, or perform general maintenance on their knowledge base. Also triggers on "clean up the wiki", "what needs…
hermes-history-ingest
Ingest Hermes agent history into the Obsidian wiki. Use this skill when the user wants to mine their past Hermes sessions for knowledge, import their /.hermes folder, extract insights from previous Hermes conversations, or says things like "process my Hermes history", "add my Hermes memories to the wiki", "ingest…
project-wiki
组织和维护 Vibe Coding 项目的 wiki 文档体系。当用户要求初始化/重构 wiki 结构、进入新项目且 wiki/ 不存在、需要诊断和修复文档腐化、或需要管理 specs/refs/reviews 子目录的生命周期时触发。.
mindos-zh
MindOS 是用户的本地知识助手,也是跨会话、跨 Agent 共享的知识库。它保存决策记录、会议纪要、SOP、 排错经验、架构选型、调研结论和偏好设置。 仅 mindRoot 知识库内任务。不用于:改代码仓库、项目源码、KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 触发场景:保存或记录任何内容、搜索历史笔记或上下文、更新或编辑文件、整理或重组文件结构、 执行SOP或工作流、捕获对话中的决策、复盘或总结经验、追加表格或CSV数据、跨Agent交接上下文、 提炼经验教训、同步关联文档、查找之前是否讨论过某事、查询历史决策、查找模板或SOP、…
mindos
MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…