Skip to main content
skill CX Codex

memory-lifecycle · basicmachines-co — Claude Code skill: what it does, how to install

Automates note status transitions in Basic Memory. It archives completed work into appropriate folders and updates frontmatter without deleting records.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a claude-code
Open on GitHub

What memory-lifecycle does

The skill handles status changes for entities in Basic Memory when you mark work as finished, cancelled, or reopened. Its core approach relies on archiving rather than deleting. Deleting a note via bm_delete destroys observations and turns incoming references into broken links. Instead, the workflow locates the target file with bm_search and moves it to the appropriate folder using bm_move.

Once relocated, the note receives updated frontmatter fields via bm_edit using the set_metadata command. The main body text stays untouched. If a file contains locked: true in its frontmatter, it moves to the destination path, but metadata edits are refused. You must unlock such files manually. Permalinks survive directory changes by default unless the project sets update_permalinks_on_move.

What it helps with

  • archive completed tasks and entities without breaking links
  • update frontmatter status and completion timestamps safely
  • reactivate previously archived notes back into active directories
  • keep historical context and observations inside the knowledge graph

Example prompts for the agent

  • Mark the quarterly report task as completed and archive it
  • We cancelled the migration ticket, move it out of active
  • Reopen the client onboarding note and restore it to active

How to install memory-lifecycle

1Skills CLI (Vercel)

npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a claude-code

2Manually: put the files in place

~/.claude/skills/memory-lifecycle/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/memory-lifecycle/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about memory-lifecycle

How to install memory-lifecycle in Claude Code?

Run npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a claude-code in your terminal.

Why does memory-lifecycle archive notes instead of deleting them?

Deleting removes observations and breaks links from other notes in the knowledge graph. Moving items to an archive keeps the graph intact while clearing the active view.

How does the skill handle notes with locked frontmatter?

A note with locked: true still moves to the target folder, but the metadata update step is rejected. You will need to edit the file manually to change its status.

Similar skills

All skills for Notes, tasks and projects →

memory-lifecycle by other authors comes first.

From the same set14

memory-continue This skill rebuilds context from the Basic Memory graph so your assistant picks up previous work instead of starting cold. CX Codex +1 1,300installs memory-notes Guides coding agents on structuring markdown notes for Basic Memory knowledge graphs. It covers YAML metadata, categorized observations, and wiki-style note relations. CX Codex +1 1,300installs memory-research Researches companies, people, and tools across the web and synthesizes findings into Basic Memory notes. Useful when you need to record structured facts about an external subject. CX Codex +1 1,200installs memory-literary-analysis Turns a complete literary work into a Basic Memory knowledge graph with schemas, chapter notes, linked entities, and validation. CX Codex +1 1,200installs memory-defrag This skill tidies a Basic Memory project by splitting bloated notes, consolidating facts, and flagging contradictions for review. CX Codex +1 1,200installs memory-tasks Keeps work-in-progress as notes in the Basic Memory knowledge graph, so you can find active tasks and resume them after compaction or a restart. CX Codex +1 1,200installs memory-schema Manages note schemas in Basic Memory by finding untyped entries, generating schema definitions, checking field consistency, and catching structural drift. CX Codex +1 1,200installs memory-metadata-search Search Basic Memory notes by YAML frontmatter fields, from status and tags to nested values. Useful when a text query alone cannot narrow the results. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor