context-manager

Inject MEMORY.md and LESSONS.md into Claude Code sessions via activation hooks.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/gerardloupecyb/claude-code-project-template --skill context-manager-gerardloupecyb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-manager
Source: https://github.com/gerardloupecyb/claude-code-project-template/tree/main/.claude/skills/context-manager
Command: npx skills add https://github.com/gerardloupecyb/claude-code-project-template --skill context-manager-gerardloupecyb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill reminds the rules of managing context, memory and chain of thought defined in CLAUDE.md. It ensures these guidelines are automatically loaded on any project that uses MEMORY.md, Supermemory, or involves long-running sessions, without duplicating the full CLAUDE rules.

Core Features & Use Cases

  • Automatic session start and memory injection: the hook injects MEMORY.md + LESSONS.md at session start after compaction, resume and /clear, creating missing files from the template if needed.
  • Consistent long-session context: maintains context and memory integrity across multi-step tasks and extended interactions.
  • Clear reference: points to CLAUDE.md Rules #1-#8 for the complete guidelines, avoiding duplication while ensuring visibility.

Quick Start

Enable the context-manager to automatically load MEMORY.md and LESSONS.md handling across projects.

Frequently Asked Questions about context-manager

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

FAQPage Schema
How do I maintain context and memory across Claude Code sessions?

To maintain memory across Claude Code sessions, this Skill applies a standardized policy using hooks to automatically inject MEMORY.md and LESSONS.md at session start, after compaction, resume, or /clear commands.

How does memory injection work when resuming a long-running Claude Code session?

Memory injection works by triggering activation hooks after compaction, resume, and /clear events to load MEMORY.md and LESSONS.md, ensuring long-running sessions retain context and chain-of-thought integrity without manual loading.

Do I need CLAUDE.md to use context management hooks for memory?

You need CLAUDE.md for full guidance, as this Skill references CLAUDE.md Rules #1-#8 to enforce memory management policies without duplicating the rules, ensuring visibility while pointing to the complete guidelines.

Can I use this context manager for memory across multiple projects?

Yes, you can use this context manager for memory across multiple projects, as it automatically loads memory handling for any project utilizing MEMORY.md, Supermemory, or involving extended interactions without duplicating CLAUDE rules.

What are the limitations of automatic memory injection for Claude Code?

A limitation of this automatic memory injection is that it does not duplicate the full CLAUDE.md rules, serving as a reminder and pointer to Rules #1-#8 rather than replacing the need for a properly configured CLAUDE.md file.