memento-dev

memento-dev is a skill for Claude Code, Codex from veerps57/memento. It costs 234 tokens per session (3,558 once invoked), scanned A, original, Apache-2.0.

Contribution instructions for Memento, a local-first memory layer that provides an MCP server, command-line tools, and related packages.

In plain words
What is it for?
Use them when developing Memento, including changes to its schema, core, server, command-line tool, dashboard, embedder, or documentation.
Why use it?
They explain the project’s architecture, required design principles, testing rules, and release steps before you modify the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use them when developing Memento, including changes to its schema, core, server…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/veerps57/memento/memento-dev
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 veerps57/memento --skill memento-dev
Clone the repo
git clone --depth 1 https://github.com/veerps57/memento

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 memento-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/veerps57/memento/memento-dev.svg)](https://agentmods.dev/skills/veerps57/memento/memento-dev)
Your own site
<a href="https://agentmods.dev/skills/veerps57/memento/memento-dev"><img src="https://agentmods.dev/badge/skills/veerps57/memento/memento-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 234 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,558 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.00234 $0.03558
Opus 5 $0.00117 $0.01779
Sonnet 5 $0.00047 $0.00712
Haiku 4.5 $0.00023 $0.00356

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

Security

Grade A, and why

memento-dev 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 6d 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/memento-dev/SKILL.md · 189 lines

How it starts

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

Memento Dev

You are working on the Memento codebase. This skill encodes the rules every change must follow, the verification steps that must pass, and the cadence (ADRs, changesets, docs:generate) that keeps the project coherent across human and AI contributors.

The canonical reference is AGENTS.md at the repo root. This skill is a load-friendly summary. When they conflict, treat AGENTS.md as final and update this skill in the same PR.

The four guiding principles

Every change is judged against these. They are non-negotiable.

  1. First principles. Every construct exists because we proved we need it — not "because that is how things are usually done."
  2. Modular. Any component must be replaceable without rewriting the rest.
  3. Extensible. New variants must not require breaking changes.
  4. Config-driven by the user. Behavior is shaped by configuration, not by code.

The PR template asks you to address each one explicitly. Default-empty answers are a smell.

The 14 architectural rules

Encoded as tests and CI gates where possible. Do not bypass them.

  1. Single command registry → MCP and CLI as adapters. Every command lives in the registry once and is projected to both surfaces. Parity is structural, not aspirational.
  2. No hardcoded behavioral constants. Anything affecting retrieval, decay, conflict detection, scrubbing, or storage MUST be a ConfigKey. Adding a magic number in code is a code-review rejection.
  3. Every state-changing operation writes an audit event. MemoryEvent for memory changes, ConfigEvent for config changes.
  4. OwnerRef is always populated — even when always { type: 'local', id: 'self' }. The model is multi-user-ready from day one.
  5. Immutable fields stay immutableid, createdAt, schemaVersion, scope. To "move" a memory between scopes, supersede it with a new memory in the new scope.
  6. Status transitions are explicit. A forgotten memory does not silently become active. Every transition has its own command (forget, restore, archive, supersede).
  7. Exhaustive switches on discriminated unions use the assertNever pattern. A structural test asserts that decay, retrieval, and conflict-detection rules exist for every MemoryKind.
  8. Conflict detection runs via a post-write hook, never inline. The write path does not block on conflict checks beyond conflict.timeoutMs.
  9. Decay is computed at query time, not stored. Effective confidence is stored × decayFactor(now − lastConfirmedAt, halfLife). The compact job materializes archives for memories that have decayed below threshold.
  10. ScopeResolver composes small, mockable resolvers (GitRemoteResolver, WorkspacePathResolver, SessionResolver). Adding a new scope dimension means adding a resolver, not mutating the composite.
  11. MemoryEvent is the audit source of truth. lastConfirmedAt on Memory is a denormalized cache, validated at write-time and by npx @psraghuveer/memento doctor.
  12. No configurable invariants. Integrity rules (immutability, status transitions, supersession atomicity) are hardcoded. Configurable invariants are no invariants.
  13. memory.update only mutates non-content fields (tags, kind, pinned, sensitive). Content changes route through supersede to preserve history. The error message points the caller to the right command.
  14. Embedding model migration is explicit. memento embedding rebuild is the only way to re-embed memories. Never silent.

Read the full file on GitHub · 189 lines

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. 6d ago First seen · 189 lines · 234 tokens per session scan A 52f0397b43f8

Subscribe to this mod's changes

memento-dev is a skill published in the GitHub repository veerps57/memento (22 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 234 tokens to every session and 3,558 once invoked, about $0.0012 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

crit-cli

Use when an agent needs to author or reply to crit inline comments programmatically (including multi-agent workflows commenting on shared code/plans/docs/proposals), publish or unpublish a crit review with crit share, sync a crit review to or from a GitHub PR or GitLab MR, or read/interpret a crit review JSON file.…

tomasz-tomczyk/crit · 110 tokens

crit

Review code changes, a plan, a live page (running dev server), or a local HTML file with Crit inline comments and structured human feedback. Use only when the user explicitly invokes /crit or directly asks to use Crit; a generic review request does not count.

tomasz-tomczyk/crit · 55 tokens

crit-story

Author a crit story only when the user explicitly invokes crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.

tomasz-tomczyk/crit · 41 tokens

json-to-toon

Transforms JSON input into Token-Oriented Object Notation (TOON) to reduce token consumption in LLM prompts and context windows. Applies the full TOON spec: inline primitive arrays, tabular format for uniform object arrays, and list format for heterogeneous or nested structures. Invoked when the user asks to compress…

soulcodex/agentic · 88 tokens

clinicaltrials-database

Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.

synthetic-sciences/openscience · 47 tokens

openalex-database

Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly…

synthetic-sciences/openscience · 76 tokens