Install
openclaw skills install @space-cadet/mb-text-workflowMemory Bank text-based update workflow following integrated-rules v6.12. Use when updating memory bank files manually via markdown editing — creating edit chunks, updating tasks.md, session_cache.md, session files, and task files. NOT for database-native workflows (use mb-db-workflow instead). Triggers on phrases like "update memory bank", "create edit chunk", "update tasks.md", "update session cache", "memory bank update workflow".
openclaw skills install @space-cadet/mb-text-workflowThis skill implements the 8-step manual memory bank update workflow from integrated-rules v6.12. All updates are done by directly editing markdown files — no database involved.
The memory bank has two complementary documentation layers:
Chronological Layer (tells the story):
Knowledge Layer (stores the understanding):
Both layers are essential. The chronological layer without the knowledge layer becomes an unreadable pile of session logs. The knowledge layer without the chronological layer loses traceability and becomes stale. They must be maintained together.
Before starting, determine:
YYYY-MM-DD HH:MM:SS TZ)Use this step when you do not already have a complete record of what was done in the current session. If you have been tracking work as it happened (e.g., via edit chunks, session notes, or task updates), you may skip this step and proceed directly to the 8-step workflow.
Use discovery when:
Read memory-bank/edit_history.md or memory-bank/session_cache.md to find the last update timestamp. This tells you how far back to look.
cd <project-root>
git log --since="<last-memory-bank-update-date>" --oneline
This shows all commits since the last documentation update. Each commit represents work that may need to be recorded.
git status
git diff --stat
Uncommitted changes are work-in-progress that should be documented. Note:
Check memory-bank/edits/ for recent chunks to avoid duplicating work already documented:
ls -la memory-bank/edits/
cat memory-bank/edits/YYYY-MM-DD/HHMMSS-*.md
From the above, build a list of work items to document:
| Task ID | Description | Files Changed | Status |
|---|---|---|---|
| Txx | What was done | file1, file2 | in_progress / completed |
If you cannot determine what work was done, check:
memory-bank/sessions/memory-bank/tasks/ for status changesAnti-pattern: Documenting only what you remember without verifying completeness. This misses work and creates an incomplete memory bank.
After completing Step 0 (Discovery), proceed with the 8 documentation steps:
File: memory-bank/tasks/Txx.md
If the task file exists, append progress updates. If not, request user approval to create it.
Template:
# Txx: [Title]
*Created: YYYY-MM-DD HH:MM:SS TZ*
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
**Status**: 🔄 **IN PROGRESS**
**Priority**: HIGH
## Details
[Brief description and context]
## Progress
1. ✅ [Completed item]
2. 🔄 [Current item]
3. ⬜ [Next item]
## Files
- `[file1]` - Description
- `[file2]` - Description
Status emojis (STRICT):
File: memory-bank/tasks.md
Update the master task registry table. MUST use exact schema:
| ID | Title | Status | Priority | Started | Dependencies | Details |
|----|-------|--------|----------|---------|--------------|---------|
| T1 | [Title] | 🔄 | HIGH | 2025-04-10 | - | [Details](tasks/T1.md) |
Rules:
[Details](tasks/Txx.md) or [Details](archive/Txx.md)This step is not optional. Implementation docs are where the project's earned knowledge lives. Every significant change must be reflected here.
Update relevant files in memory-bank/implementation-details/ and other knowledge-layer files:
When to update:
Files to consider:
implementation-details/ — technical deep-dives, architecture decisionstechContext.md — system architecture, dependencies, constraintsproductContext.md — goals, user stories, feature specificationssystemPatterns.md — established patterns and conventionsactiveContext.md — current focus and recent decisionsDocumentation quality check:
Anti-pattern: "I'll document it later." Later never comes. Document while the context is fresh.
File: memory-bank/sessions/YYYY-MM-DD-PERIOD.md
Check if current session file exists. If yes, append to it. If no, create it.
Template:
# Session: YYYY-MM-DD [Period]
**Started**: YYYY-MM-DD HH:MM:SS TZ
**Focus Task**: Txx: [Title]
**Status**: 🔄 ACTIVE
## Work Done
- [Description of work completed]
## Decisions
- [Key decisions made]
## Next Steps
- [What to do next]
Periods: morning, afternoon, evening, night
File: memory-bank/session_cache.md
Template:
# Session Cache
*Created: YYYY-MM-DD HH:MM:SS TZ*
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
## Current Session
**Started**: [Timestamp]
**Focus Task**: [Task ID]
**Session File**: `sessions/YYYY-MM-DD-PERIOD.md`
## Overview
- Active: [Count] | Paused: [Count]
- Last Session: [Previous Session File]
- Current Period: [period]
## Task Registry
- T1: [Brief] - 🔄
## Active Tasks
### [Task ID]: [Title]
**Status:** 🔄 **Priority:** [H/M/L]
**Started:** [Date] **Last**: [Date]
**Context**: [Key context]
**Files**: `[file1]`, `[file2]`
**Progress**:
1. ✅ [Done]
2. 🔄 [Current]
3. ⬜ [Next]
## Session History (Last 5)
1. `sessions/YYYY-MM-DD-PERIOD.md` - [BRIEF FOCUS]
activeContext.md — if focus task or current context changederrorLog.md — if errors were encountered and fixedprogress.md — if milestones were completedchangelog.md — if features or bugs were addressedimplementation-details/*.md — see Step 3 for when to updateFile: memory-bank/edits/YYYY-MM-DD/HHMMSS-Txx-edit-chunk.md
This is the canonical record. edit_history.md is a GENERATED VIEW — never edit it directly.
Template:
---
kind: edit_chunk
id: [unique-id]
created_at: YYYY-MM-DD HH:MM:SS TZ
task_ids: [Txx]
source_branch: [branch-name]
source_commit: [40-char-sha]
---
#### HH:MM:SS TZ - Txx: Description
- Modified `file/path` - Specific technical change description
- Created `file/path` - What was created and why
STRICT Format Requirements:
#### HH:MM:SS TZ - TaskID: Description (timezone MANDATORY)- Action \filepath` - Description`Created, Modified, Updated, DeletedFile: memory-bank/edit_history.md
This is a GENERATED VIEW from chunk files. Newest entries on top.
# Edit History
*Created: YYYY-MM-DD HH:MM:SS TZ*
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
### YYYY-MM-DD
#### HH:MM:SS TZ - Txx: Description
- Modified `file/path` - Description
(type)TID: Headline - Details (% complete)
Types: feat, fix, docs, refactor, test
Example: (feat)T3: Database Migration Complete - Added user table, seed data (90%)
edit_history.md directly — always create chunk files