skill-update-memory

skill-update-memory is a skill for Claude Code, Codex from MatrixFounder/Agentic-development. It costs 16 tokens per session (560 once invoked), scanned A, original, Apache-2.0.

A tool that detects code changes and suggests updates to .AGENTS.md files, which store instructions and context for coding agents in a project.

In plain words
What is it for?
Use it before committing or during review to find changed files, identify their nearest context files, generate update templates, and optionally create missing files under selected source directories.
Why use it?
It keeps agent guidance aligned with the source code so future sessions are less likely to rely on outdated project knowledge.

Skill for Claude CodeCodex

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

Good fit Use it before committing or during review to find changed files, identify their nearest context files, generate update templates, and optionally create missing files under selected source directories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matrixfounder/agentic-development/skill-update-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 MatrixFounder/Agentic-development --skill skill-update-memory
Clone the repo
git clone --depth 1 https://github.com/MatrixFounder/Agentic-development

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 skill-update-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/matrixfounder/agentic-development/skill-update-memory"><img src="https://agentmods.dev/badge/skills/matrixfounder/agentic-development/skill-update-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 560 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.00016 $0.00560
Opus 5.5 $0.00006 $0.00224
Sonnet 5.5 $0.00003 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured 1mo ago against content hash 160ae0e4c490, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-update-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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/suggest_updates.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agent/skills/skill-update-memory/SKILL.md · 75 lines

How it starts

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

Update Memory Skill

Purpose

Prevent "Agent Amnesia" by keeping .AGENTS.md context files synchronized with code changes.

When to Use

  • Before committing code (Developer).
  • During Code Review (Reviewer).
  • In 04-update-docs workflow.

Strategy: Automated Detection + Manual Description

Phase 1: Detect Changes

Tool: scripts/suggest_updates.py

Usage:

python3 .agent/skills/skill-update-memory/scripts/suggest_updates.py

Bootstrap Migration Mode (optional):

python3 .agent/skills/skill-update-memory/scripts/suggest_updates.py --mode bootstrap --create-missing --development-root src

Output:

  • Identifies modified source files (ignoring build artifacts).
  • Groups them by the closest .AGENTS.md (or suggested per-directory target in source folders).
  • Generates a template for the update.
  • In bootstrap mode, can create missing .AGENTS.md files without overwriting existing ones.
  • Creation/suggestions are limited to explicit development roots (--development-root, default: src).
  • /.agent/skills/* and /.cursor/skills/* are always excluded from memory target creation.

[!NOTE] .AGENTS.md remains optional. If it does not exist, the helper must not fail.

Phase 2: Generate Description (.AGENTS.md Update)

For each file listed by the script:

  1. Identify Change Type:
    • New File -> Create entry.
    • Modified Logic -> Update description/functions.
    • Deleted -> Mark as (Deleted).
  2. Write Description:
    • Focus on Purpose (Why does it exist?).
    • List public Classes/Functions.

Phase 3: Preservation

[!IMPORTANT] NEVER delete sections marked [Human Knowledge] or <!-- PRESERVE -->.

Append new information below manual annotations.

Example Update

### [new_service.py]
**Purpose:** Handles user authentication.
**Classes:**
- `AuthService` — Main entry point.
  - `login()` — Validates credentials.

Integration

  • Code Review: Reviewer runs script to check if docs match code changes.
  • Pre-Commit: Developer runs script to ensure no "Undocumented Code" is committed.
  • Migration/Onboarding: Run bootstrap mode for external projects to create initial .AGENTS.md skeletons in source folders.

Read the full file on GitHub · 75 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. 1mo ago First seen · 75 lines · 16 tokens per session scan A 160ae0e4c490

Subscribe to this mod's changes

skill-update-memory is a skill published in the GitHub repository MatrixFounder/Agentic-development (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 16 tokens to every session and 560 once invoked, about $0.0001 per session on Opus 5.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

kb-builder

Build an Obsidian-compatible knowledge base from public web sources using the TinyFish CLI. Use this skill when a user wants a builder-grade markdown knowledge base on a technical topic, asks for a structured research vault, or wants a topic compiled from live public sources into interlinked markdown files. Supports…

tinyfish-io/tinyfish-cookbook · 158 tokens

weknora-shared

Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.

Tencent/WeKnora · 68 tokens

02-project-memory

Build the project's memory of its architecture, conventions, and decisions, and wire it into your AI tools. Use when the user wants to set up or refresh project memory, or rewire it into a tool. Not for editing one existing memory file.

ai-driven-dev/framework · 54 tokens

distill-session-knowledge

Offline-mine this project's pi session JSONL logs into reusable, verified knowledge: extracts faults, decisions, corrections, procedures and docs, promotes only recurring patterns, and routes artifacts into skillmanage, memory and docs. Use on "mine my sessions", "distill session knowledge", "extract lessons from…

BlackBeltTechnology/pi-agent-dashboard · 78 tokens

Deep Context Generation with PMAT

Generates comprehensive, LLM-optimized codebase context using PMAT (Pragmatic AI Labs MCP Agent Toolkit). Use this skill when: Starting work on unfamiliar codebases Onboarding to new projects or repositories Need quick understanding of project architecture Preparing for refactoring or feature implementation Creating…

paiml/paiml-mcp-agent-toolkit · 112 tokens

llm-wiki

Use when building or maintaining a self-contained personal knowledge base (an LLM wiki) in plain markdown. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki health, auditing article claims against their sources, critiquing a wiki source's reasoning, superseding stale knowledge, 'add to…

sammcj/agentic-coding · 82 tokens