Claude Code plugin that automatically maintains CLAUDE.md files, ensuring project memory stays up-to-date with edits, deletions, and moves. Benefits developers by reducing manual maintenance and improving project documentation accuracy.
git clone https://github.com/severity1/claude-code-auto-memory.gitclaude-code-auto-memory automatically updates CLAUDE.md files whenever Claude Code edits, deletes, or moves files in your project. The plugin tracks changes through a PostToolUse hook with zero token overhead, then spawns an isolated agent at turn-end to update memory without consuming your main conversation context. It detects Edit, Write, Bash operations, and git commands (rm, mv, git rm, git mv), preserving manually-edited sections while updating only auto-managed areas. Set up takes seconds with /auto-memory:init, and the plugin supports monorepo structures with hierarchical CLAUDE.md files. Developers benefit from always-fresh project memory that reduces manual documentation maintenance and keeps team context accurate.
["Install the claude-code-auto-memory plugin in your Claude Code environment using `claude plugins install claude-code-auto-memory`.","Navigate to your project root directory in the terminal where you’re running Claude Code.","Run the command `claude memory update --project [PROJECT_NAME] --since [LAST_UPDATE_DATE]` to trigger the plugin. Replace `[PROJECT_NAME]` with your project’s name and `[LAST_UPDATE_DATE]` with the last date you updated CLAUDE.md (e.g., `2023-10-12`).","Review the changes made to CLAUDE.md in your project directory. The plugin will highlight additions, deletions, and moves in the file.","Commit the updated CLAUDE.md to your repository if the changes are accurate. Use the commit message: 'Update CLAUDE.md with auto-memory plugin' to track the automation.","Tip: For large projects, run the command during off-peak hours to avoid performance issues. Use `--dry-run` to preview changes without saving."]
Keep project memory current as codebase evolves without manual updates
Track architecture and convention changes automatically across team edits
Maintain accurate context in monorepos with per-subtree CLAUDE.md files
Sync memory with file operations outside Claude Code (IDE, terminal)
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/severity1/claude-code-auto-memoryCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use the claude-code-auto-memory plugin to update the CLAUDE.md file for [PROJECT_NAME]. Review the recent changes in [DIRECTORY_PATH] since [LAST_UPDATE_DATE]. Ensure the memory file reflects: 1) Newly added [FILE_TYPES], 2) Deleted [FILE_TYPES], 3) Renamed/moved [FILE_TYPES], and 4) Key code patterns or conventions introduced. Focus on maintaining accuracy for [SPECIFIC_TOPICS] like [EXAMPLE_TOPIC].
Here’s the updated CLAUDE.md for the `payment-gateway` project, reflecting changes made since the last update on October 12, 2023. The file now includes: **New Components:** - Added `stripe_webhook_handler.py` in `/src/integrations/` to process Stripe webhook events. This handles events like `payment_intent.succeeded` and `invoice.payment_failed` with retry logic for failed deliveries. - Introduced `fraud_detection.py` in `/src/utils/` to flag suspicious transactions using a rules-based system (e.g., velocity checks, geolocation mismatches). **Deleted Components:** - Removed `legacy_paypal_adapter.py` from `/src/integrations/`, as the PayPal integration was deprecated in favor of Stripe. **Renamed/Moved Components:** - Moved `currency_converter.py` from `/src/utils/` to `/src/services/` and renamed it to `exchange_rate_service.py` to better reflect its role in fetching real-time exchange rates from an external API. **Key Patterns & Conventions:** - All new integrations now follow the `IntegrationBase` abstract class pattern, ensuring consistent error handling and logging. - Added a new `RateLimitError` exception class to handle API rate limits gracefully, with exponential backoff retries. The CLAUDE.md file has been trimmed to focus on active components and is now 20% shorter while retaining critical context for the team.
Asynchronous team communication with focus mode
Automate your browser workflows effortlessly
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan