Memory

mem-load

Try it

Global workflow for loading memory bank files based on recent activity and context Use when the user invokes $mem-load or asks for this workflow by name.

What it does

This skill is a Codex conversion of a personal Windsurf global workflow. Follow the workflow below, adapting Windsurf-specific slash-command wording to Codex skill invocation. If the workflow mentions running , treat that as explicit invocation of .

The skill document

mem-load

This skill is a Codex conversion of a personal Windsurf global workflow. Follow the workflow below, adapting Windsurf-specific slash-command wording to Codex skill invocation. If the workflow mentions running /mem-load, treat that as explicit invocation of $mem-load.

Memory Load Workflow (mem-load)

Purpose

Load relevant memory bank files by analyzing recent activity and context to determine which implementation docs are needed.

Loading Logic

Step 1: Load Core Context Files

read memory-bank/activeContext.md
read memory-bank/session_cache.md

Step 2: Identify Most Recent Activity

Analyze the loaded context to determine:

  • Current Task: Which task ID is marked as active focus
  • Recent Session: Which session file has the most recent timestamp
  • Last Updated: Which task or session files were modified most recently

Step 3: Load Recent Task/Session Files

Based on the analysis from Step 2:

# Load current task file if ID identified
read memory-bank/tasks/T{ID}.md

# Load most recent session file
read memory-bank/sessions/YYYY-MM-DD-PERIOD.md

Step 4: Determine Implementation Docs to Load

Based on the task and session context:

Load these implementation docs if referenced or relevant:

  • Any implementation-detail files mentioned in task file
  • Any files referenced in session working state
  • Technical context if implementation approach unclear
# Load implementation docs as needed (examples)
read memory-bank/implementation-details/[specific-file].md
read memory-bank/techContext.md  # Only if technical details needed
read memory-bank/systemPatterns.md  # Only if architectural context needed

Decision Logic

START
├─ Load activeContext.md + session_cache.md
├─ Identify current task ID and recent session file
├─ Load current task file + recent session file
├─ Check for implementation doc references
│  ├─ References found → Load those specific docs
│  └─ No references → Load based on task type
│     ├─ Implementation task → Load techContext.md
│     ├─ Architecture task → Load systemPatterns.md
│     └─ Other task → No additional docs needed
└─ Complete loading

Loading Commands

Core Load (Always)

read memory-bank/activeContext.md
read memory-bank/session_cache.md

Contextual Load (Based on analysis)

# Task file (if current task identified)
read memory-bank/tasks/T{ID}.md

# Recent session file
read memory-bank/sessions/YYYY-MM-DD-PERIOD.md

# Implementation docs (only if referenced or needed)
read memory-bank/implementation-details/[specific-file].md
read memory-bank/techContext.md
read memory-bank/systemPatterns.md

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from space-cadet

Browse all skills

Memory Bank Update Workflow — v6.12 compliant with project-repo awareness. Use when the user invokes $mem-update or asks for this workflow by name. Triggers on "update memory bank", "create edit chunk", "update tasks.md", "update session cache", "memory bank update workflow". NOT for database-native workflows (use mb-db-workflow instead).

by space-cadet2 installs

Memory Bank Template Compliance Cleaner Workflow Use when the user invokes $mem-format or asks for this workflow by name.

by space-cadet1 installs

Global Memory Bank Deep Scan and Task Analysis Workflow — Multi-repo aware. Use when the user invokes $mem-scan or asks for this workflow by name.

by space-cadet1 installs

Track, aggregate, and report OpenClaw token usage and costs across sessions.

by space-cadet1 installs

Initialize a memory bank for a new or existing project following the v6.12 protocol. Use when starting work on a project that lacks memory-bank documentation...

by space-cadet

Combined network + gateway status with VPN info, IP location, and system health

by space-cadet