sync-knowledge

sync-knowledge is a skill for Claude Code, Codex from Curt-Park/autology. It costs 63 tokens per session (1,088 once invoked), scanned A, original, MIT.

A documentation-checking workflow that compares knowledge notes with the current code and project decisions, then updates notes that are out of date. It can check selected notes or audit the whole knowledge base.

In plain words
What is it for?
Use it to verify notes after changes, fix mismatches, check notes found during triage, or run a periodic full documentation audit.
Why use it?
It prevents project documentation from quietly becoming inaccurate after code changes, refactors, or other decisions.

Skill for Claude CodeCodex

Part of the autology plugin — 6 skills, 2 commands, 1 hook shipped together

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/curt-park/autology/sync-knowledge
Any agent
npx skills add Curt-Park/autology --skill sync-knowledge
Clone the repo
git clone --depth 1 https://github.com/Curt-Park/autology

Made for: Claude Code, Codex.

Or install autology, the plugin that ships this one along with the rest of its 6 skills, 2 commands, 1 hook.

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 sync-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/curt-park/autology/sync-knowledge.svg)](https://agentmods.dev/skills/curt-park/autology/sync-knowledge)
Your own site
<a href="https://agentmods.dev/skills/curt-park/autology/sync-knowledge"><img src="https://agentmods.dev/badge/skills/curt-park/autology/sync-knowledge.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,088 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.00063 $0.01088
Opus 5 $0.00032 $0.00544
Sonnet 5 $0.00013 $0.00218
Haiku 4.5 $0.00006 $0.00109

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

Security

Grade A, and why

sync-knowledge 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/sync-knowledge/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

docs/ nodes must accurately reflect the actual codebase and decisions. This skill verifies that and fixes any discrepancies in-place.

Two modes:

  • Fast (default): verifies only the nodes triage identified — fast enough to run after every action.
  • Full: audits the entire codebase and knowledge base independently — for periodic reviews or when explicitly requested.

Precondition: if triage has not run this session, run /autology:triage-knowledge first, then fast sync. Full mode is only used when the user explicitly passes full.

Quick Reference

/autology:sync-knowledge        # fast — verifies nodes triage identified
/autology:sync-knowledge full   # full audit — no triage needed

Fast Mode

Precondition: triage has already run and returned matched existing nodes.

1. Receive Triage Output

Use triage's matched nodes as the sync scope:

Existing nodes from triage (→ sync):
- docs/foo.md — matches [item description]
  Connected: [[bar]], [[baz]] | Tags: arch, api

Also include any connected nodes listed in the topology hints.

2. Verify and Fix

For each matched doc:

  • Read the doc
  • Read the changed code file
  • Compare: do counts, names, types, paths, and behavior claims still match?
  • If discrepancies found: edit the doc in-place to reflect current reality

3. Report

## Sync Report (fast)

**Changed files checked**: N
**Docs matched**: N
**Docs updated**: N

### Updated
- docs/example.md — updated function count (3 → 4)

### No changes needed
- docs/other.md — still accurate

If no docs reference any changed file: "No docs reference the changed files — nothing to sync."


Full Mode

1. Read All Nodes

Glob: docs/*.md
Read: each file (frontmatter + content)

Extract: title, type, tags, content, wikilinks ([[target]] patterns)

2. Survey Codebase

Identify the project's key files based on its structure:

Glob: common project manifests (package.json, go.mod, Cargo.toml, pyproject.toml, etc.)
Glob: source directories identified from project structure
Read: key config files (hooks/, scripts/, config/, etc.)

Read the full file on GitHub · 147 lines

Files

What ships with it

2 files 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 · 147 lines · 63 tokens per session scan A efc3313113b7

Subscribe to this mod's changes

sync-knowledge is a skill published in the GitHub repository Curt-Park/autology (24 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,088 once invoked, about $0.0003 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.