d-sorganization/upstreamdrift/memory-index-sync
Claude Code and agent skill by d-sorganization/upstreamdrift
- community
Checking that the SKILL.md file is still in the repository.
Detect and heal index.md drift — finds memory files on disk not registered in index.md and registers them. Run when /gaai-status reports unregistered files, after batch memory operations, or as a post-delivery gate.
Install
npx vskill@latest install d-sorganization/upstreamdrift/memory-index-syncSKILL.md
The same SKILL.md was published earlier as d-sorganization/upstreamdrift/memory-index-sync.
Memory Index Sync
Purpose / When to Activate
Activate when:
/gaai-statusreports files on disk not registered inindex.md- After a batch of DEC files were created outside the
decision-extractionskill - As a lightweight post-delivery gate to confirm index integrity
- Before running
memory-refreshormemory-compact(ensures index accuracy first)
This skill heals drift — it does NOT create new knowledge. It only registers things that already exist on disk but are missing from index.md.
Process
Step 1 — Decision Registry Sync
- Read
index.mdDecision Registry table — extract all registered DEC IDs - Glob
decisions/DEC-*.md— list all files on disk, extract IDs from filenames - For each DEC file on disk not in the registry:
- Read its YAML frontmatter:
id,domain,level,title,status,superseded_by - Add one row to the Decision Registry:
| DEC-{N} | {domain} | {level} | {title} | - If frontmatter
status: supersededandsuperseded_byis set: append⚠️ SUPERSEDED by DEC-{M}to the description column
- For each registered DEC with no file on disk: flag
⚠️ MISSING FILEin the sync report — do NOT delete registry rows (possible archive situation)
Step 2 — File Count Update
Re-count all DEC-*.md files on disk. Update the Shared Categories table file count in index.md to match.
Step 3 — Summary File Sync
- Read
index.mdSummaries section — extract registered summary filenames - Glob
summaries/*.summary.md— list all files on disk - For each summary on disk not registered in
index.md: read its frontmatter, add entry to Summaries section - For each registered summary with no file on disk: flag
⚠️ MISSING FILE — update pointer or delete entryin sync report
Step 4 — Supersession Reconciliation
- For each DEC file on disk with
status: supersededin frontmatter:
- Check if its registry row carries the
⚠️ SUPERSEDED by DEC-{M}marker - If not: add the marker to the registry row
- Verify the Superseded/Retracted table in
index.mdis consistent with the Decision Registry (no contradictions)
Step 5 — Index Frontmatter Update
Update index.md frontmatter updated_at field:
- Format:
{YYYY-MM-DD} ({N} entries synced, {M} anomalies flagged)— or(no drift — confirmed clean)if nothing changed
Output: Sync Report (inline, after completion)
Quality Checks
- Only registers what exists on disk — never invents registry rows
- Never deletes existing registry rows (only flags anomalies)
- Sync report is always produced, even if no changes needed (
CLEAN) - Idempotent — running twice produces no additional changes
- Does not modify any file except
index.md
Non-Goals
This skill must NOT:
- Create new DEC files (use
decision-extraction) - Ingest new knowledge (use
memory-ingest) - Compact or archive memory (use
memory-compactormemory-refresh) - Modify DEC file content
Memory-index-sync heals the registry. It does not create or delete knowledge.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.gaai/core/skills/cross/memory-index-sync/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/d-sorganization/upstreamdrift/memory-index-sync)