attune-ai: Skill for Claude Code

.agents/skills/memory-and-context/SKILL.md

memory-and-context is a skill for Claude Code, Codex from Smart-AI-Memory/attune-ai. It costs 38 tokens per session (2,024 once invoked), scanned A, original, Apache-2.0.

A persistent memory system for storing, retrieving, searching, and removing project context across sessions.

In plain words
What is it for?
Saving project state or preferences, retrieving or searching stored context, and forgetting information when requested.
Why use it?
It keeps useful notes and preferences available later while classifying stored information as public, internal, or sensitive.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

This is Smart-AI-Memory/attune-ai's own configuration. It tells Claude Code and Codex how to work on attune-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything attune-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Smart-AI-Memory/attune-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Smart-AI-Memory/attune-ai/main/.agents/skills/memory-and-context/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

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 memory-and-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/memory-and-context.svg)](https://agentmods.dev/skills/smart-ai-memory/attune-ai/memory-and-context)
Your own site
<a href="https://agentmods.dev/skills/smart-ai-memory/attune-ai/memory-and-context"><img src="https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/memory-and-context.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,024 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.02024
Opus 5 $0.00019 $0.01012
Sonnet 5 $0.00008 $0.00405
Haiku 4.5 $0.00004 $0.00202

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

Security

Grade A, and why

memory-and-context 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 4d 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.

.agents/skills/memory-and-context/SKILL.md · 298 lines

How it starts

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

Memory and Context

IMPORTANT: Start your response with a context preamble.

Call help_lookup(topic="memory", mode="preamble") and display the returned preamble text as a blockquote. Then tell the user they can say "tell me more" for a step-by-step guide, or answer the scoping questions below to proceed.

If the MCP call fails, fall back to:

Memory and Context — Stores and retrieves persistent context across sessions — notes, preferences, project state.

Scoping

Before running, ask:

  1. Operation: "What do you need? Store, retrieve, search, or forget?"
  2. Key/query: "What key or search term?"
  3. Classification (store only): "PUBLIC, INTERNAL, or SENSITIVE?"

Execution

Shared command workspace (preferred)

Open adapter memory-and-context with the selected operation and scoped arguments. Present its widget or returned Markdown and collect its bound action before calling the existing memory tool. Store and forget are external writes and require explicit confirmation; retrieve and search remain read-only. Publish the exact tool response as operation_result.

After a successful store or forget, follow the workspace's returned memory_retrieve verification request and publish it as verification_result. Store succeeds only when the same value and classification are retrieved; forget succeeds only when the post-delete read misses. Never render stored values—especially SENSITIVE values—in the workspace. A failed backend call must say “did not complete.” Preserve these decisions and verification receipts in compact text when the shared tools are unavailable.

Based on the user's answer, call the appropriate MCP tool:

  • Store: memory_store(key, value, classification)
  • Retrieve: memory_retrieve(key)
  • Search: memory_search(query, pattern_type)
  • Forget: memory_forget(key, scope)

attune-ai's memory system sits ABOVE Anthropic's native memory features. It provides security-classified storage, cross-agent pattern sharing, and a structured pattern lifecycle that native memory does not offer. Use the decision table below to determine which system to use for a given task.

Read the full file on GitHub · 298 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. 4d ago Changed · +17 lines 8d15733d6118
  2. 8d ago First seen · 281 lines · 38 tokens per session scan A cef801a991ad

Subscribe to this mod's changes

memory-and-context is a skill published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 2,024 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.