code-sync
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…
Skill by awrshift
Chalk Labs
Need help deploying code-sync?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/awrshift-code-sync
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-sync
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Grep,Glob,Edit(projects/**)
What's inside
- Skill name
code-sync- Description
- 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.
- License
- MIT
- Allowed tools
- Read,, Grep,, Glob,, Edit(projects/**)
- Instructions
- 134 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# /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.
`building` goes to step 2, `assumed` to step 3. `draft`, `decided`, `done`, `superseded` and
`stale` are counted and left untouched.
## Step 2 — every `building` spec against the code
Read its Acceptance table and its `## Gates` block in full. For each `AC-n` row hunt evidence in
this order and stop at the first that holds:
1. the row's `Verified` cell is already filled (date + pointer) → taken as is;
2. a QA run record naming the id — `grep -l "AC-3" projects/<name>/qa/qa-run-*.md` — and it
records a pass;
3. a test that names the id (grep the test tree for the id), in a suite the gate below runs;
4. **the gate**: run the commands from the spec's `## Gates` block yourself, from the repo root,
and read the output. A gate you did not run is not evidence.
Report per AC: evidence found (what · where) or missing. Then exactly one of:
- **All ACs have evidence** → set the status line to `done` and fill each `Verified` cell you
earned with `YYYY-MM-DD · <the command you ran, or the record>`. Cells already filled stay as
they are.
- **The code contradicts the spec** → check the spec's Slices "Files it owns" and the interfaces
it names: `Glob`/`Grep` each one. A named file gone, a symbol renamed, a signature the spec
depends on changed → set the status to `stale` and append, directly under the status line, one
line: `**Stale since:** YYYY-MM-DD — <reason, file:line>`. A `stale` spec is never also `done`.
- **Anything else** → leave `building` exactly as it is and name what is missing: which `AC-n`,
and what evidence would settle it. Half-evidence is not a flip.
## Step 3 — `assumed` specs owed ratification
An `assumed` spec is an executor's recorded override, not a decision. List every one of them:
| Assumed spec | Parent spec | Owed decision | Authorized by | Age |
|---|---|---|---|---|
Take Owed decision from the file's `## Owed decision` section, one line, and the authorizer from
its header. Print the table under the heading **Owed ratification** and recommend which to take
first (the oldest, or the one whose Code area the current work touches).
**Never flip or edit an `assumed` spec yourself.** The kit has no architect skill: the main
session deliberates, then either writes the real spec and marks the assumed one `superseded`, or
confirms the assumption and flips it to `decided`. Your output is that agenda, nothing more.
## Step 4 — BACKLOG.md, only what you can prove
A task moves to `## Done` only when BOTH hold: its `**Spec:**` points at a spec you flipped to
`done` in step 2, AND every box in its Acceptance list is already ticked. Then move it as one
line, newest first, in the file's own format:
```
- [YYYY-MM-DD] T-NNN — <its one line> · verified by `<the gate you ran>`
```
Everything else in that file — priorities, ordering, wording, `TODO` / `IN PROGRESS` / `BLOCKED`
statuses — is untouched. Never tick an acceptance box yourself: an unticked box is the
integrator's open question, not your paperwork.
## Step 5 — the README map and `Last verified`
For every document class that now has files on disk but no row in the map table, add the row
(Class · Path · Written by), using the classes the project template already names: Tasks ·
Plans / specs · Research + evidence · Decisions ledger · Review-finding classes · QA protocol +
runs · Client materials. An empty folder is not a row. A row that points at the wrong place is
the integrator's call — report the mismatch, don't repoint it. Then set `**Last verified:**` to
today. Nothing else in the README changes.
## Step 6 — report
Four lines, the kit's shape:
- **Headline:** `N specs reconciled: a done · b stale · c still building · d assumed owed`.
- **Next:** the ONE command or decision that moves this forward — the gate that would close the
nearest `building` spec, or the assumed spec to ratify first.
- **Heads up:** only if a spec went `stale` — one line each, spec + reason.
- **Pointer:** the files you edited, as paths.
## Dry run
With the argument `--dry-run` — or when the user says "just show me" / "покажи, не трогай" — do
the whole walk and run the gates (reading is not writing), but print the plan of edits as a
table (file · line · from → to) instead of applying it. Nothing is written, not even
`Last verified:`. Close with the same four-line report plus the command to run it for real.
## What NOT to doFrom awrshift/agent-memory-kit, MIT.
More from awrshift/agent-memory-kit
- 0.658score
system-audit
awrshift
Periodic evidence-based self-audit of the whole agent system — the orchestrator, its docs/SSOTs, rules, memory, subagents, tools, infra and the work it claims…
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
close-session
awrshift
End-of-session ritual — audit today's patterns against accumulated memory, propose promotions, refresh MEMORY.md, and write the session handoff.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
document
awrshift
Write the human-facing prose about a change — PR body · changelog entry · release note · postmortem — and put it in the right file.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
memory-audit
awrshift
Audit MEMORY.md against the memory discipline — oversized sections, settled multi-session patterns that belong in knowledge/concepts/, session-headed…
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
second-opinion
awrshift
Cross-check the agent's own answer with independent reviewers before bringing it to the user.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
session-review
awrshift
End-of-session adversarial review loop.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
tour
awrshift
Interactive walkthrough of the Memory Kit system using the user's actual project files.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
qa-sweep
awrshift
Run a multi-lens agent QA sweep of the RUNNING product: spawn `qa` agents (one per lens — user-flow · edge-state · honesty · contract · ux-critique), collect…
SkillAFreshness: A★ 34Claude Code +9 - 0.649score
setup
awrshift
Adopt the Memory Kit in THIS repository — scaffold the memory layers, decide how the kit coexists with Claude Code's native auto memory, and install safe…
SkillAFreshness: A★ 34Claude Code +9
Signals
- Stars
- 34
- Forks
- 9
- Open issues
- 1
- Last commit (this folder)
- Oct 22, 2026 (9 days ago)
- Last release
- Oct 22, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/awrshift/agent-memory-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from awrshift
- 0.658score
system-audit
awrshift
Periodic evidence-based self-audit of the whole agent system — the orchestrator, its docs/SSOTs, rules, memory, subagents, tools, infra and the work it claims…
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
close-session
awrshift
End-of-session ritual — audit today's patterns against accumulated memory, propose promotions, refresh MEMORY.md, and write the session handoff.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
document
awrshift
Write the human-facing prose about a change — PR body · changelog entry · release note · postmortem — and put it in the right file.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
memory-audit
awrshift
Audit MEMORY.md against the memory discipline — oversized sections, settled multi-session patterns that belong in knowledge/concepts/, session-headed…
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
second-opinion
awrshift
Cross-check the agent's own answer with independent reviewers before bringing it to the user.
SkillAFreshness: A★ 34Claude Code +9 - 0.653score
session-review
awrshift
End-of-session adversarial review loop.
SkillAFreshness: A★ 34Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get code-sync running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
code-sync skill. Agent Mart. https://agentmart.dev/skills/awrshift-code-sync (last updated 2026-10-24)