memento
Skill13 starsChanged 5 months agoMITView on GitHub
Capture the current session to the memento vault. Use when you want to record decisions, discoveries, or patterns from this session. Also use when the user says "remember this" or "save this to memento".
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- howells/skillstheir own version, first seen Sep 22, 2026
- veerps57/mementotheir own version, first seen May 2, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- veerps57/memento★ 24same name
- howells/skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- continue-workSkill
- conciergeSkill
- continue-workSkill
- inceptionSkill
- memento-defragSkill
- mementoSkill
- preserveSkill
- start-freshSkill
- inceptionSkill
- memento-defragSkill
- orra-initSkill
- preserveSkill
- start-freshSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
supersedes: if this note replaces an older one, link it.
- Distinctive: line 57
Sanitize before writing: Before writing any note to disk, scan the body and frontmatter for sensitive data and replace it with a generic …
- Very specific: line 67
Keep domain names that are public (e.g., vicvalenzuela.com, fundid.is) — those are fine.
- Distinctive: line 87
Commit to vault repo: After all writes are done, run:
- Very specific: line 93
Sync to remote vault: If ~/.claude/memento-remote.env exists, sync each note you created to the remote vault:
- Distinctive: line 113
Never delete or overwrite existing notes
- Distinctive: line 114
Never modify notes not created in this invocation
- Very specific: line 115
Never write to fleeting/
- Very specific: line 117
If the user provided context via /memento "...", use their framing as the primary lens
- Distinctive: line 118
Use controlled tags — prefer reusing tags from existing notes over inventing new ones
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memento — manual session capture
Capture the current session as atomic Zettelkasten notes in the memento vault.
The vault location is configured in memento.yml (default: ~/memento). Check ~/.config/memento-vault/memento.yml or ~/memento/memento.yml for the active config. If neither exists, use ~/memento.
When to use
- User invokes
/memento - User says "remember this", "save this", or similar
- A session contains noteworthy decisions or discoveries worth preserving
Arguments
/memento— capture the full current session/memento "context"— capture with the user's framing of what matters
Process
- Scan the current session for distinct ideas: decisions made, things discovered, patterns identified, bugs fixed, tools built or configured.
- Search existing notes in the vault's
notes/directory for related topics. Use Glob and Grep to check what's already there. Do not create duplicates — if a note already covers the same idea, update the Related section with a link instead. Create atomic notes in the vault's
notes/directory. One idea per file. Each note must have:--- title: Short descriptive title type: decision | discovery | pattern | bugfix | tool tags: [relevant, tags, here] source: manual certainty: 1-5 validity-context: what makes this true or false supersedes: "[[note-name]]" or omit project: /full/path/to/working/directory branch: branch-name-if-applicable date: YYYY-MM-DDTHH:MM session_id: current-session-id ---Certainty scale: 1 = speculative (untested idea), 2 = observed once (single session), 3 = confirmed in code (read it, verified), 4 = tested/shipped (PR merged), 5 = established pattern (seen across multiple tickets).
validity-context: a short phrase describing what this note depends on. Examples: "while on feature branch X", "requires lib >= 2.0", "only in local dev". Omit if the note is unconditionally true.
supersedes: if this note replaces an older one, link it. The older note stays in the vault but search should prefer the newer one.
Body: the insight in 2-5 sentences. Context for why it matters. A
## Relatedsection at the bottom with[[wikilinks]]to related existing notes.File naming: slugified concept title.
redis-cache-requires-explicit-ttl.md, not2026-03-05-session.md.Sanitize before writing. Before writing any note to disk, scan the body and frontmatter for sensitive data and replace it with a generic descriptor. Strip:
- AWS account IDs (12-digit numbers in AWS contexts) →
[AWS account] - API keys / tokens / secrets (long alphanumeric strings,
sk-*,xoxb-*, bearer tokens) →[redacted] - Kennitala (Icelandic national IDs, 10-digit
DDMMYY-XXXX) →[kennitala] - Email addresses in note bodies (keep only if the email is the subject of the note, e.g., a contact flow design) →
[email] - Internal hostnames / IPs (RFC 1918 addresses,
*.internal,*.local) →[internal-host] - IAM usernames / ARNs → describe the role generically (e.g., "personal IAM user")
- Database connection strings →
[connection-string]
Keep domain names that are public (e.g.,
vicvalenzuela.com,fundid.is) — those are fine. The goal is to prevent credential and identity leaks if the vault is ever shared, synced, or indexed. When in doubt, strip it — the session transcript has the original values if needed later.- AWS account IDs (12-digit numbers in AWS contexts) →
Update the project index in the vault's
projects/directory. Detect the project from the working directory and branch. Add[[note-name]]links under## Notesand a session line under## Sessions. Create the project index if it doesn't exist, using this template:--- title: Project Name project: /full/path/to/working/directory branch: branch-name ---## Notes ## Sessions- Run post-capture extensions. Check if
~/.claude/skills/memento-post/SKILL.mdexists. If it does, read it and follow its instructions. This is the extension point for project-specific workflows (e.g., promoting notes to a team vault, tagging with domain-specific labels, notifying external systems). Skip this step if the file doesn't exist. Commit to vault repo. After all writes are done, run:
~/.claude/hooks/vault-commit.sh "memento: [short description of what was captured]"Sync to remote vault. If
~/.claude/memento-remote.envexists, sync each note you created to the remote vault:(set -a; . ~/.claude/memento-remote.env; set +a; python3 ~/.claude/hooks/memento-remote-sync.py <note-paths>)Replace
<note-paths>with the paths of notes you just created. The script is a no-op ifMEMENTO_VAULT_URLis not set. Skip this step entirely if~/.claude/memento-remote.envdoes not exist.Trigger Inception check. Manual captures bypass SessionEnd triage, so Inception's threshold check doesn't fire automatically. Run it explicitly:
python3 ~/.claude/hooks/memento-inception.py --verbose 2>&1 | tail -5This is a no-op if Inception is disabled, if there aren't enough new notes, or if another instance is already running. It runs in the foreground but returns quickly (~20ms) if the threshold isn't met.
- Confirm to the user what was captured: list the notes created and links added. Include any output from post-capture extensions.
Rules
- Never delete or overwrite existing notes
- Never modify notes not created in this invocation
- Never write to
fleeting/ - One idea per note — if you find yourself writing more than a paragraph, split it
- If the user provided context via
/memento "...", use their framing as the primary lens - Use controlled tags — prefer reusing tags from existing notes over inventing new ones
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

