Skip to content
Back to skills

Memory Sync

ASecurity

Verify, deduplicate, and compact an explicitly inventoried set of project Codex instructions against current source facts; honors narrowed scope and excludes persistent personal memory unless directly requested.

  • 32 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 1, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 1, 2026

npx -y skills add kochetkov-ma/claude-brewcode --skill memory-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kochetkov-ma-memory-sync/badge)](https://www.skillsdirectory.com/skills/kochetkov-ma-memory-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: memory-sync
description: Verify, deduplicate, and compact an explicitly inventoried set of project Codex instructions against current source facts; honors narrowed scope and excludes persistent personal memory unless directly requested.
---

# Memory sync

Sync project Codex instructions using [references/sync-contract.md](references/sync-contract.md). Inventory concrete authorized paths before editing: applicable `AGENTS.md`, explicitly referenced `.codex/rules/` or conventions, native agent TOML, and native skills/supporting instruction Markdown. Presence in a directory, git tracking, or being Markdown does not make a file authorized. User scope narrowing always wins, including "only rules" or an explicit file list.

Resolve the change-fact source from the request: session by default; explicit branch, commit/range, recent commits, or all facts. NORMAL verifies facts, deduplicates, and compacts; HARD additionally audits rule activation and removes generic guidance without losing project decisions. Depth never expands edit scope. Announce the source, depth, concrete inventory/exclusions, and verification in English.

Source code, distributed templates/product skill sources, public docs, config, reports, task/runtime state, caches, secrets, and personal/global instruction layers are evidence or excluded, never edit targets. Claude instructions and shared symlink targets are verify-only. Resolve real paths before editing; do not write through a symlink into another product or shared/global layer. Persistent Codex memory requires an explicit direct user request and the active memory policy; invoking this skill alone is insufficient authorization.

Snapshot the actual authorized files, then verify facts -> choose canonical homes/deduplicate -> compact with `apply_patch`. Preserve decisions, prohibitions, exceptions, ownership, provenance, numbered rule IDs, and supported native metadata. Re-audit included agents/skills for current roles, paths, tools, contracts, and references; parse TOML as TOML. Do not change operational behavior or permissions to make stale claims true.

Use bounded disjoint owners and an independent read-only post-sync check when authorized/available; otherwise disclose the verification limit. Verify every edit and deletion against the snapshot and live evidence, including the full text after large reductions. Keep the root rule index (`Rule`, `Load when`, `Purpose`) consistent with authorized rule edits: `.codex/rules/` and `paths:` do not autoload. If the root index is outside the user's narrowed scope, report the required index correction rather than silently widening writes.

Report edited paths, verified facts, removed duplicates/stale claims, before/after size, uncertain facts, verify-only drift, checks, and deferred proposals. No automatic self-sync: this skill is editable only if explicitly included in the authorized inventory.

Files in this skill

  • SKILL.md2.8 KB
  • references/sync-contract.md7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.