context-memory

Save and load case-specific project memory under ~/ai-memory.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ymgn/dotfiles --skill context-memory-ymgn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-memory
Source: https://github.com/ymgn/dotfiles/tree/main/codex/skills/context-memory
Command: npx skills add https://github.com/ymgn/dotfiles --skill context-memory-ymgn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables teams and agents to create a shared, case-scoped memory that persists across sessions, allowing convenient saving of specs, decisions, next steps, and logs under ~/ai-memory for collaborative project work.

Core Features & Use Cases

  • Shared memory per CASE-ID: Organize project memory into spec.md, decisions.md, next.md, and log.md per case.
  • Slash-style commands: Use /context-save and /context-load to write and retrieve case data.
  • Traceable collaboration: Append-only logs with timestamps to maintain history and enable quick resumption.
  • Use Case: When coordinating multiple agents on a project, save decisions and next steps for CASE-XYZ, then load them later to resume work.

Quick Start

Use the context-memory scripts to save and load memory. Example: python3 ~/.codex/skills/context-memory/scripts/context_save.py CASE-XYZ "Initialized memory for Case-XYZ" python3 ~/.codex/skills/context-memory/scripts/context_load.py CASE-XYZ

Frequently Asked Questions about context-memory

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

FAQPage Schema
How do I share project context across multiple AI agents?

To share project context across multiple AI agents, you can use a shared memory system that saves and loads case-specific data under a designated local directory. This allows different agents to access the same specs, decisions, and logs during collaborative workflows.

What is a CASE-ID based memory system for collaborative AI workflows?

A CASE-ID based memory system organizes project context into specific directories containing files for specs, decisions, next steps, and logs. It enables multiple agents to append timestamped entries and resume work on a specific case across different sessions.

How do I save and load agent context using slash commands?

You can save and load agent context by using slash-style commands to trigger Python scripts that write and retrieve case data. This process creates per-case directories and appends timestamped entries to maintain a traceable history of agent decisions.

Can I use Python scripts to maintain AI memory logs across sessions?

Yes, you can use Python scripts to maintain AI memory logs across sessions. The scripts create per-case directories and append timestamped entries to log files, ensuring that context persists and can be loaded when resuming work.

What is the best way to organize cross-agent project memory?

The best way to organize cross-agent project memory is to structure it by case, separating specs, decisions, next steps, and logs into individual files within a shared directory. This append-only approach maintains history and enables quick resumption.