preserve

preserve is a skill for Claude Code, Codex from sandsower/memento-vault. It costs 38 tokens per session (333 once invoked), scanned A, original, MIT.

A skill for archiving a group of related files as one preserved bundle in Memento Vault. It keeps the original file tree and adds a manifest describing the archived material.

In plain words
What is it for?
Use it when asked to preserve, archive, or save generated artifacts. It is intended for copying bundles into an archive and recording their source, description, tags, and related details.
Why use it?
It prevents screenshots, logs, proofs, attachments, and handoff files from being scattered or reduced to separate notes, while retaining where they came from.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when asked to preserve, archive, or save generated artifacts. It is intended for copying bundles into an archive and recording their source, description, tags, and related details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandsower/memento-vault/preserve
Install

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.

Any agent
npx skills add sandsower/memento-vault --skill preserve
Clone the repo
git clone --depth 1 https://github.com/sandsower/memento-vault

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for preserve

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandsower/memento-vault/preserve/github.svg)](https://agentmods.dev/skills/sandsower/memento-vault/preserve)
Your own site
<a href="https://agentmods.dev/skills/sandsower/memento-vault/preserve"><img src="https://agentmods.dev/badge/skills/sandsower/memento-vault/preserve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for preserve

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandsower/memento-vault/preserve"><img src="https://agentmods.dev/badge/skills/sandsower/memento-vault/preserve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00333
Opus 5 $0.00019 $0.00167
Sonnet 5 $0.00008 $0.00067
Haiku 4.5 $0.00004 $0.00033

Measured 10d ago against content hash e906ab75bf35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

preserve 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 10d 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.

skills/generic/preserve/SKILL.md · 33 lines

What it actually says

Preserve

Archive artifact bundles intact under archive/.

When to use

  • User says "preserve this", "archive this", "save these artifacts", or "move this to the vault archive"
  • Generated handoff bundles, screenshots, logs, proofs, attachments, or other evidence packets
  • Anything that should stay bundled rather than become atomic notes

Process

  1. Summarize what will be preserved and whether copy or move will be used.
  2. Copy by default. Only move when the user explicitly requests a destructive move.
  3. Prefer the memento_preserve MCP tool when available.
  4. Preserve into archive/<slug>/ with the source tree intact.
  5. Write a manifest at archive/<slug>/.memento/manifest.json and a lightweight index note at archive/<slug>/.memento/index.md.
  6. If a project can be detected, update the relevant project index with a link to the bundle index note.
  7. Include original source path, title, description, tags, cwd, branch, and session id when known.
  8. Warn if files look sensitive; do not silently redact the preserved bundle itself.
  9. After preserving, report the archive path and manifest path.

Rules

  • Do not create atomic notes unless the user also asks for a summary note.
  • Do not flatten the bundle into a prose summary.
  • Never move by default.
Changes

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.

  1. 10d ago First seen · 33 lines · 38 tokens per session scan A e906ab75bf35

Subscribe to this mod's changes

preserve is a skill published in the GitHub repository sandsower/memento-vault (12 stars, last pushed 26d ago), licensed MIT. It adds 38 tokens to every session and 333 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

garden-tending

Tend the knowledge garden — diagnose vault health, condense project memos into project.md overviews, create/merge cross-project topics, fix broken links, archive superseded notes, extend trails. Trigger on "tend the garden", "condense", "update project overview", "check vault health", "where are we with X?", "what…

linxule/memex-plugin · 131 tokens

curator-practice

Operating philosophy for autonomous memex curator tending — orientation protocol, signal triage, bounded work units, initiative thresholds, logging conventions. Trigger on cron-launched runs with no user prompt, "use your judgment", "tend without instructions", "do a pass on the vault", "I'll be away — do what needs…

linxule/memex-plugin · 153 tokens

recall

Retrieve session memory across 4 modes — TEMPORAL (date browsing), KEYWORD (FTS lookup), DEEP (cross-session synthesis), LOAD (specific file). Trigger on "what did I do yesterday/last week", "why did we...", "remind me...", "find the memo about...", "last time we...", "patterns across projects", "load the X topic". Do…

linxule/memex-plugin · 112 tokens

memo-writing

How to write effective session memos — format, frontmatter schema, observation extraction, topic-signal append. Trigger on /memex:save, "save this for later", "remember this", "save what we discussed", "document this session", "create a memo", or when the [memex] activity nudge appears in context. Do NOT trigger for…

linxule/memex-plugin · 125 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens