knowledge-base-sync

knowledge-base-sync is a skill for Claude Code, Codex from JetXu-LLM/DocMason. It costs 26 tokens per session (1,227 once invoked), scanned A, original, Apache-2.0.

A workflow for building or refreshing the DocMason knowledge base from local source documents. A knowledge base is an organized collection of information that other workflows can search and use.

In plain words
What is it for?
Use it to inspect sync status, refresh the knowledge base, validate changed sources, and publish the current version when the local tools and files are available.
Why use it?
It keeps source changes staged, checked, and published in a controlled way instead of relying on an unverified update.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/jetxu-llm/docmason/knowledge-base-sync
Any agent
npx skills add JetXu-LLM/DocMason --skill knowledge-base-sync
Clone the repo
git clone --depth 1 https://github.com/JetXu-LLM/DocMason

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for knowledge-base-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/jetxu-llm/docmason/knowledge-base-sync.svg)](https://agentmods.dev/skills/jetxu-llm/docmason/knowledge-base-sync)
Your own site
<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>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,227 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash aa1df4accae2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/canonical/knowledge-base-sync/SKILL.md · 81 lines

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

  1. Start with docmason status --json when you need the current stage, pending actions, or control-plane state.
  2. Use docmason sync --json as the default build or refresh entry point.
    • let sync classify the physical cause before staging
    • zero-delta and foreground interaction-promotion-only checks 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, or validate-kb against the same workspace
  3. Respect the control-plane result before reasoning about later workflow steps.
    • if sync_status=awaiting-confirmation, surface the confirmation prompt and continue with docmason 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 through docmason prepare --yes --json and then resume the same sync task instead of stopping at a passive blocker report
  4. Treat successful sync as the deterministic truth-building path.
    • detect source changes
    • rebuild or reuse staged evidence
    • apply safe staged repairs
    • validate
    • publish to knowledge_base/current
  5. If sync_status is valid or warnings, inspect hybrid_enrichment.
    • hybrid_enrichment describes whether deterministic sync left a remaining multimodal semantic gap
    • if mode is not-needed or covered, 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 state
      • lane_b_follow_up is 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_path when no bounded packet was handed off
      • hybrid_work_path is the broader staged queue and is only the fallback when no bounded packet was handed off
    • if mode is candidate-prepared or partially-covered and no governed packet path was handed off, treat hybrid_work_path as 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 rerun docmason sync --json
  6. Treat pending-synthesis as a compatibility or deliberate manual-mode state, not the normal operator destination.
    • route to knowledge-construction only when that legacy or manual path is actually intended
    • rerun docmason sync --json after staged authoring completes
  7. If validation still blocks publication after the deterministic sync path finishes, route to validation-repair, then rerun docmason sync --json.
  8. Return the final publication judgment to the main agent. Do not delegate final publication sign-off.

Read the full file on GitHub · 81 lines

Files

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.

Changes

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.

  1. 4d ago First seen · 81 lines · 26 tokens per session scan A aa1df4accae2

Subscribe to this mod's changes

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.

Related

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…

Ar9av/obsidian-wiki · 113 tokens

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…

Ar9av/obsidian-wiki · 152 tokens

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…

Ar9av/obsidian-wiki · 108 tokens

project-wiki

组织和维护 Vibe Coding 项目的 wiki 文档体系。当用户要求初始化/重构 wiki 结构、进入新项目且 wiki/ 不存在、需要诊断和修复文档腐化、或需要管理 specs/refs/reviews 子目录的生命周期时触发。.

GeminiLight/MindOS · 63 tokens

mindos-zh

MindOS 是用户的本地知识助手,也是跨会话、跨 Agent 共享的知识库。它保存决策记录、会议纪要、SOP、 排错经验、架构选型、调研结论和偏好设置。 仅 mindRoot 知识库内任务。不用于:改代码仓库、项目源码、KB 外路径。 核心概念:空间、指令(INSTRUCTION.md)、技能(SKILL.md);笔记可承载指令与技能。 触发场景:保存或记录任何内容、搜索历史笔记或上下文、更新或编辑文件、整理或重组文件结构、 执行SOP或工作流、捕获对话中的决策、复盘或总结经验、追加表格或CSV数据、跨Agent交接上下文、 提炼经验教训、同步关联文档、查找之前是否讨论过某事、查询历史决策、查找模板或SOP、…

GeminiLight/MindOS · 490 tokens

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…

GeminiLight/MindOS · 136 tokens