albert-ying/agentic-cortex/vault-updater
Claude Code and agent skill by albert-ying/agentic-cortex
- community
Checking that the SKILL.md file is still in the repository.
Consume sync manifests and apply edits to vault notes. Serial queue with lockfile.
Install
npx vskill@latest install albert-ying/agentic-cortex/vault-updaterSKILL.md
Vault Updater
Applies changes from sync adapter manifests to vault notes. This is the write-side of the sync pipeline — adapters produce manifests, this skill consumes them.
When to Use
Called by the /sync router after an adapter produces a manifest. Not invoked directly.
Input
One or more manifest JSON files from .cache/sync-state/*-manifest-*.json.
Process
1. Acquire Lock
Check .cache/sync-state/.updater-lock:
- If not exists: create it with current timestamp
- If exists and < 5 min old: wait 10s, retry up to 3 times, then fail
- If exists and > 5 min old: assume stale, delete and recreate
2. Load Manifests
Read all *-manifest-*.json files passed as input. Group changes by target note path. If multiple sources target the same note + section, you must synthesize content from all sources into a single coherent update (don't just pick one).
3. Apply Changes
For each target note, process changes in this order:
update_frontmatterfirst (sets metadata)rewrite_sectionnext (structural changes)appendlast (additive only)
rewrite_section
- Read the note file
- Find the target heading (e.g.,
## Current Status) - Find the next heading at the same level (##)
- Replace everything between them with the new content
- If heading doesn't exist: insert at end of document, but BEFORE
## Chat Historyor## Statssections if they exist - If note has no headings at all: append heading + content at end of file
- Update frontmatter
updated:timestamp
append
- Find the target section heading
- Insert content at the end of that section (before next same-level heading)
- If heading doesn't exist: create it (same insertion rules as rewrite_section)
- Update frontmatter
updated:timestamp
update_frontmatter
- Parse existing YAML frontmatter
- Merge new fields (overwrite existing keys, add new keys)
- Always update
updated:to current epoch milliseconds - Preserve field order: id, title, desc, ..., updated, created
create_note
- Check
suggested_pathdoesn't already exist. If it does, skip and log warning. - Generate
id: 23 lowercase alphanumeric characters (use Python:''.join(random.choices(string.ascii_lowercase + string.digits, k=23))) - Build frontmatter from manifest
frontmatterobject + generated id + timestamps - Write full note: frontmatter + content from manifest
- Verify note follows vault hierarchy convention (filename matches hierarchy)
4. Confidence Gating
Before applying each change:
- confidence >= 0.8: apply silently, add to "applied" list
- confidence < 0.8: apply, add to "flagged" list (included in delta briefing with evidence)
5. Commit
Source list comes from the source field of consumed manifests (deduplicated).
6. Report
Output a delta summary in this format:
7. Release Lock
Delete .cache/sync-state/.updater-lock.
8. Refresh Working Memory
After committing, update _working-memory.md:
- Rewrite
## Sync Statussection with current timestamps per source - If calendar manifest was applied: update
## Today's Calendarsection - If email manifest was applied: update
## Email Inbox — Active Itemssection
Error Handling
- If a note file can't be parsed (malformed YAML, encoding error): skip it, log to flagged list
- If git commit fails: log error, do NOT retry. Leave lock in place for debugging.
- If a
rewrite_sectioncan't find the note file: skip (note may have been deleted)
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 repositoryCheckingskills/sync/vault-updater/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 4
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/albert-ying/agentic-cortex/vault-updater)