code-sync

code-sync is a skill for Claude Code from awrshift/agent-memory-kit. It costs 119 tokens per session (2,096 once invoked), scanned A, original, MIT.

A repository workflow that checks project documents against the current code and makes narrowly limited updates. It reconciles specification statuses, the project README map, verification dates, and completed backlog entries.

In plain words
What is it for?
Use it after a merge or at the end of a build to update project-document status, stale notes, document locations, and verified dates.
Why use it?
It helps prevent plans and documentation from claiming something that the code no longer supports. It uses evidence from the repository and recorded verification rather than memory.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the memory-kit plugin — 10 skills, 4 agents, 4 hooks shipped together

Good fit Use it after a merge or at the end of a build to update project-document status, stale notes, document locations, and verified dates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awrshift/agent-memory-kit/code-sync
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.

Any agent
npx skills add awrshift/agent-memory-kit --skill code-sync
Clone the repo
git clone --depth 1 https://github.com/awrshift/agent-memory-kit

Made for: Claude Code.

Or install memory-kit, the plugin that ships this one along with the rest of its 10 skills, 4 agents, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/awrshift/agent-memory-kit/code-sync/github.svg)](https://agentmods.dev/skills/awrshift/agent-memory-kit/code-sync)
Your own site
<a href="https://agentmods.dev/skills/awrshift/agent-memory-kit/code-sync"><img src="https://agentmods.dev/badge/skills/awrshift/agent-memory-kit/code-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/awrshift/agent-memory-kit/code-sync"><img src="https://agentmods.dev/badge/skills/awrshift/agent-memory-kit/code-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00119 $0.02096
Opus 5.5 $0.00048 $0.00838
Sonnet 5.5 $0.00024 $0.00419
Haiku 4.5 $0.00012 $0.00210

Measured 8d ago against content hash da66248e354a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-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 8d 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.

plugins/memory-kit/skills/code-sync/SKILL.md · 145 lines

How it starts

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

/code-sync — documents reconciled against the repository

close-session reconciles the SESSION with memory. This reconciles a PROJECT's documents with the CODE: every claim a spec still makes is checked against what is in the tree right now.

Two rails hold the whole skill up. Evidence, never a claim — a spec becomes done only from a gate YOU ran in this session or a Verified cell someone already filled. Surgical edits only — the only things you write are a status value, a Verified cell, one Stale since: line, a map row, Last verified:, and a BACKLOG Done line. Everything else keeps its bytes.

Step 0 — locate the projects

  • Glob projects/*/README.md. If the repo keeps its documents elsewhere, read the root CLAUDE.md / README.md for the docs home and use the map it names. Nothing found → say so and stop. This skill never scaffolds.
  • From each project README read two things: the map table ("Where this project's documents live") — the SSOT for where plans, QA records and the backlog actually are — and the **Workflow tier:** line, which sets how much evidence a done needs:
Tier Evidence a done needs
prototype the gate output, run by you
alpha + an integrator acceptance walk named in the Verified cell
beta + a qa/qa-run-*.md record and tests naming each AC-n
ga + a review pass and a document entry for the change
  • The user named one project → sweep only that one. Otherwise sweep all of them.

Step 1 — inventory the specs

Read the header of every plans/*.md (**Created:** YYYY-MM-DD · **Status:** …; one grep over the folder is enough). A plain Status: … line counts too, and a spec with no Created: takes its date from a YYYY-MM-DD-<slug>.md file name — the SessionStart spec flags read them the same way. A spec with no status line at all is counted as no status in the table, never guessed. Statuses are draft · decided · building · done · superseded · assumed · stale. Build the working table: spec · status · created · age in days.

Read the full file on GitHub · 145 lines

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. 8d ago Changed da66248e354a
  2. 20d ago Changed · +2 lines 8aa021931a9f
  3. 27d ago First seen · 143 lines · 119 tokens per session scan A 3e90a0fbfb1c

Subscribe to this mod's changes

code-sync is a skill published in the GitHub repository awrshift/agent-memory-kit (34 stars, last pushed 9d ago), licensed MIT. It adds 119 tokens to every session and 2,096 once invoked, about $0.0005 per session on Opus 5.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-09-19.