skill-update-memory

Detect source file changes and generate `.AGENTS.md` documentation updates.

4|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/MatrixFounder/Agentic-development --skill skill-update-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-update-memory
Source: https://github.com/MatrixFounder/Agentic-development/tree/main/.agent/skills/skill-update-memory
Command: npx skills add https://github.com/MatrixFounder/Agentic-development --skill skill-update-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents "Agent Amnesia" by ensuring that documentation files like .AGENTS.md accurately reflect the current state of your codebase, preventing outdated information from causing confusion or errors.

Core Features & Use Cases

  • Automated Change Detection: Identifies modified, added, or deleted source files.
  • Contextual Memory Update: Suggests or generates updates for .AGENTS.md files based on code changes.
  • Bootstrap Mode: Can create initial .AGENTS.md skeletons for projects lacking them.
  • Use Case: Before committing code, run this skill to automatically generate or update the .AGENTS.md file in the relevant source directory, ensuring your AI's context remains current.

Quick Start

Run the script to suggest updates for your .AGENTS.md files based on recent code changes.

Frequently Asked Questions about skill-update-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep .AGENTS.md documentation files synchronized with code changes in my repository?

To keep .AGENTS.md files synchronized, this skill detects modified source files, identifies the relevant memory context files, and generates suggested updates for their purpose and component descriptions.

What is the best way to automatically generate initial .AGENTS.md files for existing development roots?

The best way to generate initial .AGENTS.md files is using bootstrap mode, which creates skeleton documentation files in development roots while automatically excluding system directories.

Why does my AI agent have outdated context after modifying source files across a repository?

Your AI agent has outdated context because documentation files like .AGENTS.md are not automatically updated when code changes occur, causing agent amnesia and confusion during subsequent tasks.

Can I use git hooks to trigger .AGENTS.md updates before committing code?

Yes, you can integrate this skill with git hooks to run before committing code, automatically generating or updating the .AGENTS.md file in the relevant source directory to ensure your AI's context remains current.

Does the .AGENTS.md sync script support excluding specific system directories during bootstrap?

Yes, the .AGENTS.md sync script supports excluding specific system directories during bootstrap mode, preventing the generation of unnecessary memory context files for non-source paths.

What are the limitations of using automated memory context updates for code documentation?

The limitation of automated memory context updates is that the skill only suggests or generates updates based on detected code changes, meaning you must still review and integrate the proposed .AGENTS.md modifications before finalizing your commit.