graph-sync
Installation
SKILL.md
Sync Graph
Sync the knowledge graph with the current git state by diffing last_synced_commit against HEAD.
When to Use
- After
git pull/git merge/git checkoutto update graph with new code - When you suspect the graph is stale (e.g., colleague pushed changes)
- After resolving merge conflicts
- Runs automatically on session start — manual invocation only needed mid-session
How It Works
- Reads
last_synced_commitfrom graph metadata - Gets current
HEADcommit hash - If same: graph is up to date, no action needed
- If different: runs
git diff --name-status {last}..{HEAD}to find changed/added/deleted files - Parses changed/added files, removes deleted files from graph
- Stores new HEAD as
last_synced_commit