Memory

Memory is a skill for Claude Code from CarbeneAI/Forge. It costs 42 tokens per session (1,198 once invoked), scanned A, original, MIT.

A persistent knowledge system that stores project facts, environment details, user preferences, decisions, and lessons learned for later use.

In plain words
What is it for?
It helps record and recall project settings, integrations, workflows, preferences, and debugging lessons.
Why use it?
It reduces repeated explanations and helps keep important context available across conversations.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md.

Good fit It helps record and recall project settings, integrations, workflows, preferences, and debugging lessons.

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

Made for: Claude Code.

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 Memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/carbeneai/forge/memory/github.svg)](https://agentmods.dev/skills/carbeneai/forge/memory)
Your own site
<a href="https://agentmods.dev/skills/carbeneai/forge/memory"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/memory/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 Memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/carbeneai/forge/memory"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,198 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.00042 $0.01198
Opus 5 $0.00021 $0.00599
Sonnet 5 $0.00008 $0.00240
Haiku 4.5 $0.00004 $0.00120

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

Security

Grade A, and why

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

.claude/skills/Memory/SKILL.md · 170 lines

How it starts

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

Memory - Persistent Knowledge System

Purpose: Maintain persistent knowledge about projects, environments, and user preferences so you never have to repeat yourself.

Core Principle

If you tell me something once, I should remember it forever.

This skill captures and organizes:

  • Project-specific facts (hosting, domains, tech stack, integrations)
  • Environment details (API keys locations, deployment workflows)
  • User preferences (coding style, communication preferences)
  • Decisions and their rationale
  • Lessons learned from debugging sessions

Memory Structure

All memories stored in ${PAI_DIR}/memory/:

memory/
├── projects/           # Project-specific knowledge
│   ├── carbene-website.md
│   ├── carbene-homelab.md
│   ├── pai.md
│   └── cyberdefense-tactics.md
├── user/               # User preferences and personal info
│   └── preferences.md
└── global/             # Cross-project knowledge
    └── integrations.md

Workflows

1. Capture Learning (Proactive)

When to use: Automatically after learning something new about a project or user.

TRIGGER: Any of these situations:
- User corrects a mistake ("It's Vercel, not Cloudflare")
- User provides new information ("The domain is carbene.ai")
- Discovering project structure or integrations
- User states a preference
- Resolving a confusing issue

ACTION:
1. Identify the memory category (project/user/global)
2. Read existing memory file (if exists)
3. Append new fact with timestamp
4. Confirm capture to user (briefly)

2. Recall Context (On Session Start)

When to use: At the beginning of each session, based on working directory.

ACTION:
1. Detect current working directory
2. Map to project memory file
3. Load relevant memories into context
4. Silently apply (no need to announce)

3. Query Memory

When to use: When user asks "What do you know about X?"

ACTION:
1. Search memory files for relevant content
2. Return organized summary
3. Offer to update if anything is outdated

Read the full file on GitHub · 170 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 · 170 lines · 42 tokens per session scan A b5a4dee333f2

Subscribe to this mod's changes

Memory is a skill published in the GitHub repository CarbeneAI/Forge (9 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,198 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-09-03.

Related

Other skills, from other repositories

knowledge-management

../../../governance/knowledge-management/SKILL.md.

jaskaranhundal/usap-skills · 0 tokens

analyzing-memory-forensics-with-lime-and-volatility

Performs Linux memory acquisition using LiME (Linux Memory Extractor) kernel module and analysis with Volatility 3 framework. Extracts process lists, network connections, bash history, loaded kernel modules, and injected code from Linux memory images. Use when performing incident response on compromised Linux systems.

mukul975/Anthropic-Cybersecurity-Skills · 71 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

commonly

You are a member of a Commonly workspace — a shared space where humans and AI agents from any origin collaborate in pods (chat rooms with memory). Use this whenever you are connected to Commonly via the commonly MCP tools: to read what's happening, post, remember things across sessions, react, DM other agents, and…

Team-Commonly/commonly · 0 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens