persist

persist is a skill for Claude Code, Codex from synaptiai/agent-capability-standard. It costs 38 tokens per session (2,838 once invoked), scanned A, original, Apache-2.0.

A capability for saving lasting project knowledge—such as decisions, facts, patterns, or context—to files like CLAUDE.md. It preserves existing content and records metadata about the saved information.

In plain words
What is it for?
Use it to record project decisions, coding patterns, stable facts, or other information that should be available later.
Why use it?
It prevents important project knowledge from being lost between sessions. Future work can use the stored decisions and patterns for more consistent results.

Skill for Claude CodeCodex

Part of the agent-capability-standard plugin — 42 skills, 2 hooks shipped together

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.

agentmods
npx agentmods add skills/synaptiai/agent-capability-standard/persist
Any agent
npx skills add synaptiai/agent-capability-standard --skill persist
Clone the repo
git clone --depth 1 https://github.com/synaptiai/agent-capability-standard

Made for: Claude Code, Codex.

Or install agent-capability-standard, the plugin that ships this one along with the rest of its 42 skills, 2 hooks.

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 persist

README.md
[![agentmods](https://agentmods.dev/badge/skills/synaptiai/agent-capability-standard/persist.svg)](https://agentmods.dev/skills/synaptiai/agent-capability-standard/persist)
Your own site
<a href="https://agentmods.dev/skills/synaptiai/agent-capability-standard/persist"><img src="https://agentmods.dev/badge/skills/synaptiai/agent-capability-standard/persist.svg" alt="Measured on agentmods" 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 2,838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.02838
Opus 5 $0.00019 $0.01419
Sonnet 5 $0.00008 $0.00568
Haiku 4.5 $0.00004 $0.00284

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

Security

Grade A, and why

persist 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 5d 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/persist/SKILL.md · 380 lines

How it starts

The opening of the file, as written. The whole thing — 380 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Intent

Execute persist to write stable learnings, decisions, and patterns to durable storage for future recall and consistency.

Success criteria:

  • Content is written to the correct destination
  • Existing content is preserved or properly merged
  • New content follows established structure/format
  • Metadata (timestamp, source) is recorded
  • Write is verified successfully

Compatible schemas:

  • schemas/output_schema.yaml

Inputs

Parameter Required Type Description
content Yes string|object What to persist: decision, pattern, fact, or structured knowledge
destination No string Where to write: CLAUDE.md, file path, or auto (determine best location). Default: CLAUDE.md
section No string Section within destination to write to (e.g., "Decisions", "Patterns", "Facts")
content_type No enum Type of content: decision, pattern, fact, context. Default: auto-detect
merge_strategy No enum How to handle existing content: append, replace, merge. Default: append

Procedure

  1. Validate content: Ensure content is appropriate for persistence

    • Check content is non-empty and meaningful
    • Verify content type classification
    • Ensure no sensitive data (credentials, PII) is being persisted
    • Validate content structure if object
  2. Determine destination: Select where to write

    • CLAUDE.md: Project-level decisions and patterns
    • Specific file: Domain or feature-specific knowledge
    • auto: Choose based on content type and scope
  3. Read existing content: Load current state of destination

    • Parse structure and sections
    • Identify target section for new content
    • Note existing entries to avoid duplicates
  4. Check for duplicates/conflicts: Compare new vs existing

    • Exact duplicate: Skip or update timestamp only
    • Similar content: Flag for review
    • Contradiction: Stop and request clarification

Read the full file on GitHub · 380 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 380 lines · 38 tokens per session scan A 45bc6f66de92

Subscribe to this mod's changes

persist is a skill published in the GitHub repository synaptiai/agent-capability-standard (4 stars, last pushed 6d ago), licensed Apache-2.0. It adds 38 tokens to every session and 2,838 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-31.

Related

Other skills, from other repositories

memory-recall

Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this…

zilliztech/memsearch · 149 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens

recall

Must be used at the start of any non-trivial task involving code changes, debugging, repo exploration, file inspection, or environment/tooling investigation to surface stored guidance before analysis or tool use.

AgentToolkit/altk-evolve · 42 tokens

cross-session-handoff

Read, write, snapshot, and lock .arcgentic/state.yaml across planner, dev, audit, and optional test sessions.

Arch1eSUN/Arcgentic · 31 tokens

cco-templates

Manage context templates for common task types.

egorfedorov/claude-context-optimizer · 11 tokens

knowledge-priming-refiner

Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create…

techygarg/lattice · 84 tokens