Skip to content
Skill

Code sync

Reconciles project specs and docs against the current code after merges

Code sync is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
33
Last commit
License
MIT
Listing updated

Similar skills

About Code sync

Code sync walks a project's planning documents and checks each claim against what is actually in the repository. Building specs are only marked done when the skill has evidence: a verified cell already filled in, a QA record, a passing test naming the acceptance criterion, or a gate command it runs itself. Specs whose named files or interfaces have disappeared are marked stale with the reason and file location.

The skill also lists assumed specs that still await a decision, moves fully verified backlog tasks to the done section, adds missing rows to the README document map, and updates the last-verified date. Edits are deliberately narrow, and a dry-run mode prints the planned changes without writing anything.

It expects the Memory Kit project layout, with project READMEs, a plans folder and a backlog file, and it runs its gate commands from the repository root using the local shell.

When your agent uses it

Reconcile the project's documents with what the code now shows, after a merge or at the end of a build: spec statuses (building → done only with a named gate, or → stale with the reason), assumed specs owed ratification, the project README map and its Last verified date. Surgical edits only. Use when the user says "/memory-kit:code-sync", "sync the docs", "sync specs with code", "синхронизируй доки с кодом", "что устарело в спеках", or right after merging an executor branch.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the memory-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add awrshift/agent-memory-kit
/plugin install memory-kit@memory-kit

Or copy only this skill to ~/.claude/skills/code-sync:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-sync &&
cp -R "$tmp/plugins/memory-kit/skills/code-sync" ~/.claude/skills/code-sync &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/code-sync inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/code-sync to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-sync &&
cp -R "$tmp/plugins/memory-kit/skills/code-sync" ~/.agents/skills/code-sync &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/code-sync inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/code-sync to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-sync &&
cp -R "$tmp/plugins/memory-kit/skills/code-sync" ~/.cursor/skills/code-sync &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/code-sync inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/awrshift/agent-memory-kit.git --path plugins/memory-kit/skills/code-sync

Or copy the folder to ~/.gemini/skills/code-sync yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/code-sync:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-sync &&
cp -R "$tmp/plugins/memory-kit/skills/code-sync" ~/.copilot/skills/code-sync &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/code-sync inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git

Then copy agent-memory-kit/plugins/memory-kit/skills/code-sync into your agent's skills folder as code-sync. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Evidence-based spec status
Moves a building spec to done only when each acceptance criterion has evidence the skill found or ran itself.
Stale spec detection
Flags specs whose named files, symbols or interfaces no longer match the tree, recording the reason.
Assumed spec agenda
Lists executor overrides awaiting ratification, with the owed decision and its age.
Backlog reconciliation
Moves backlog tasks to done only when their spec is verified and their acceptance boxes are ticked.
Document map upkeep
Adds rows for document classes present on disk but missing from the project README map.
Dry-run mode
Prints the planned edits as a table without writing any file.

Good for

  • Sync the project docs after merging an executor branch
  • Find which specs are stale after a refactor
  • List assumed specs still waiting for an architect decision
  • Check which building specs can be closed with the gate output
  • Preview doc changes before applying them

Code sync FAQ

When does the skill trigger?

When the user says /memory-kit:code-sync, asks to sync the docs or specs with code, or right after merging an executor branch.

Does Code sync create new files?

No. It edits only status values, verified cells, stale lines, map rows, the last-verified date and backlog done lines, and never creates files.

Can Code sync mark a spec done from an executor's report?

No. A spec becomes done only from a gate the skill ran in the session or a verified cell already filled in.

Which tools does Code sync need?

Read, Grep, Glob and Edit limited to the projects folder, according to its allowed tools list.

How do I install Code sync in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-sync to use it in all your projects, or to .claude/skills/code-sync in one project. Or install the memory-kit plugin, which includes it: /plugin marketplace add awrshift/agent-memory-kit, then /plugin install memory-kit@memory-kit.

Does Code sync run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Code sync?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Code sync?

The closest alternatives to Code sync are Vibe spec sync, Docs sync edho ferdian, Harness sync, Spec compact and Docsync.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from awrshift/agent-memory-kit

  1. Runs an end-of-session audit that promotes repeated patterns and writes a handoff

    • Open source
    • 33 GitHub stars
    • Knowledge and memory
  2. Drafts PR bodies, changelog entries, release notes and postmortems from git diffs

    • Open source
    • 33 GitHub stars
    • Developer tools
  3. Audits a MEMORY.md cache against memory rules and proposes a move plan before editing

    • Open source
    • 33 GitHub stars
    • Knowledge and memory
  4. Runs a multi-lens QA sweep of a live product and turns verified findings into tickets

    • Open source
    • 33 GitHub stars
    • Developer tools
  5. Cross-checks your agent's answer with independent reviewers before it reaches you

    • Open source
    • 33 GitHub stars
    • Developer tools
  6. Runs an end-of-session adversarial review of your coding or design work

    • Open source
    • 33 GitHub stars
    • Developer tools