Memory Lifecycle for Openclaw

A specialized skill for managing entity status transitions and knowledge archiving within an AI agent's memory system.

phernandez
v0.1.1
Mar 12, 2026
0
555
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install memory-lifecycle

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install memory-lifecycle using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Memory Lifecycle?

The Memory Lifecycle skill provides a robust framework for managing how entities move through different stages of their existence within a knowledge graph. By implementing these Openclaw Skills, developers ensure that their AI agents handle information transitions with precision, maintaining a clean workspace without losing valuable historical data.

Grounded in the principle of archive, never delete, this skill ensures that completed work or finished tasks are moved out of active views while remaining accessible for historical context and relationship mapping. This approach prevents data loss and maintains the integrity of the agent long-term memory, ensuring that all observations, relations, and history are preserved even after a project is finished.

Memory Lifecycle Use Cases

  • Marking projects or tasks as completed, finished, or shipped.
  • Moving entities between status folders like active, archive, and pipeline.
  • Reverting accidental completion of notes or tasks by moving them back to active states.
  • Performing periodic cleanup of stale active items by moving them to terminal state folders.
  • Updating frontmatter metadata to reflect current project status such as paused, blocked, or deferred.

How Memory Lifecycle Works

  1. Identify the status intent from user input signals such as finished, missed, or revive.
  2. Locate the target entity using search queries with multiple variations to ensure accuracy.
  3. Execute a file move operation to relocate the note to the appropriate status-specific folder.
  4. Update the internal frontmatter of the note to synchronize the metadata status with the physical location.
  5. Provide a concise confirmation report to the user summarizing the move and status update.

Memory Lifecycle Setup

To integrate this lifecycle logic into your Openclaw Skills workflow, ensure your environment supports the following configuration:

# Define your core folder structure within your memory root
mkdir -p entities/active entities/archive tasks/active tasks/completed

# Ensure your agent has permission to move and edit markdown files
# The skill relies on 'move_note' and 'edit_note' tool implementations

Memory Lifecycle Data Schema & Taxonomy

Component Description Logic
Folder Path The physical directory (e.g., active/, archive/) Represents current state
Frontmatter YAML metadata inside the note contains status: active/completed
Permalink The constant identifier for the entity Survives file moves and renames
Knowledge Graph The collection of all linked notes Preserved through archival, lost on deletion

Memory Lifecycle Advanced Features

  • Persistent permalinks ensuring wiki-links remain valid after archival moves.
  • Cross-skill integration with memory-tasks for specific task-field handling.
  • Batch operation support for moving multiple entities simultaneously based on filters.
  • Multi-state detection for complex lifecycles including pipeline and end-state transitions.
  • Integration with memory-defrag to automatically identify and archive stale items.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*