Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/a-ariff/ariff-claude-plugins/memory-syncnpx skills add a-ariff/ariff-claude-plugins --skill memory-syncgit clone --depth 1 https://github.com/a-ariff/ariff-claude-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/a-ariff/ariff-claude-plugins/memory-sync)<a href="https://agentmods.dev/skills/a-ariff/ariff-claude-plugins/memory-sync"><img src="https://agentmods.dev/badge/skills/a-ariff/ariff-claude-plugins/memory-sync.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00006 | $0.00507 |
| Opus 5 | $0.00003 | $0.00253 |
| Sonnet 5 | $0.00001 | $0.00101 |
| Haiku 4.5 | $0.00001 | $0.00051 |
Grade A, and why
memory-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Memory Sync Skill
How to manually sync learnings to memory systems after tasks.
Dual Memory Architecture
Ariff uses two complementary memory systems:
- mem0-memory-mcp - AI-native semantic memory for quick recall
- obsidian-memory - Structured vault for long-term knowledge
Manual Sync Commands
Quick Save to mem0
Use mcp__mem0-memory-mcp__add_memory to store:
- Task context and solution
- Key learnings and gotchas
- Useful commands discovered
Save to Obsidian
Use mcp__obsidian-memory__create_note with:
- path: "tasks/YYYY-MM-DD-task-slug.md"
- content: Structured task notes
Memory Entry Template
## Task: [Brief Title]
Date: [YYYY-MM-DD]
Device: [hostname]
### Problem
[What was the issue/request]
### Solution
[How it was resolved]
### Key Learnings
- [Learning 1]
- [Learning 2]
### Related
- Previous tasks: [links]
- Documentation: [links]
Creating Agent Instructions
When a mistake or pattern should be avoided in future:
-
Create instruction file at:
Ariff-code-config/instructions/[category]-[topic].instructions.md -
Use format:
--- description: [What this instruction prevents/ensures] applyTo: [glob pattern like **/*.py or **/canvas/**] --- # [Rule Title] ## Context [When this applies] ## Rule [What to do/not do] ## Example [Good vs bad example] -
Add to 00_INSTRUCTIONS_INDEX.md if significant
Reconciliation
If memories seem out of sync:
- Query both systems for topic
- Compare entries
- Update older system with newer info
- Remove duplicates with less detail
When to Save
Save memory when:
- ✅ Task completed successfully
- ✅ Discovered non-obvious solution
- ✅ Made mistake worth remembering
- ✅ Found useful tool/command
- ✅ Clarified user preference
Skip saving when:
- ❌ Trivial task (simple file edit)
- ❌ Already documented elsewhere
- ❌ One-off unique situation
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 106 lines · 6 tokens per session scan A 3568d9c7aa1d
memory-sync is a skill published in the GitHub repository a-ariff/ariff-claude-plugins (14 stars, last pushed 5mo ago), licensed MIT. It adds 6 tokens to every session and 507 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
email-triage
Classify incoming emails into triage categories using content analysis, sender profile memory, and thread detection. Produces a category (URGENT, REPLYNEEDED, FYI, NEWSLETTER, NOTIFICATION, SPAM) with confidence and reasoning.
database-verification
Shell-based database connectivity and integrity checks. Verifies that databases are reachable, schemas match expectations, and data integrity constraints hold.
environment-diagnostics
Environment variable validation and configuration verification. Checks that required variables are set, config files parse correctly, ports are available, and system dependencies meet version requirements.
kubernetes
Diagnose and fix Kubernetes pods, services, networking, storage, and rollout failures with kubectl. Safety-first, read-only by default.
prompt-craft
Translate natural language image descriptions into detailed, structured DALL-E prompts with subject, style, composition, lighting, and mood specifications.
reply-composer
Draft context-aware email replies that match sender tone, reference thread history, and follow the user's style preferences. Presents drafts for review before sending.