Install
openclaw skills install @space-cadet/mb-initInitialize 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, or when creating a new project that needs task tracking. Creates the full memory-bank directory structure, initial files, and optionally a task file for the first piece of work.
openclaw skills install @space-cadet/mb-initThis skill bootstraps a complete memory-bank documentation system for any project. It creates the directory structure, initial files, and optionally a first task file — everything needed to start tracking work with the mb-text-workflow or mb-db-workflow skills.
cd <project-root>
mkdir -p memory-bank/{tasks,sessions,edits/$(date +%Y-%m-%d),implementation-details}
# Memory Bank — <Project Name>
*Created: YYYY-MM-DD HH:MM:SS TZ*
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
## Overview
[Brief description of the project and what this memory bank tracks]
## Active Tasks
| ID | Title | Status | Priority | Started | Dependencies | Details |
|----|-------|--------|----------|---------|--------------|---------|
## Completed Tasks
| ID | Title | Status | Priority | Started | Completed | Dependencies | Details |
|----|-------|--------|----------|---------|-----------|--------------|---------|
## Status Summary
- **Active**: 0
- **Completed**: 0
- **Paused**: 0
- **Total**: 0
# Session Cache
*Created: YYYY-MM-DD HH:MM:SS TZ*
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
## Current Session
**Started**: YYYY-MM-DD HH:MM:SS TZ
**Focus Task**: None
**Session File**: None
**Status**: 🔄 No active session
## Overview
- Active: 0 | Paused: 0 | Completed: 0
- Last Session: -
- Current Period: <morning|afternoon|evening|night>
## Task Registry
## Active Tasks
## Session History (Last 5)
## System Status
- **Memory Bank**: 🔄 Initialized, no tasks yet
- **Project**: 🔄 Ready for work
# Active Context
*Last Updated: YYYY-MM-DD HH:MM:SS TZ*
## Current Tasks
## Completed Tasks (Recent)
## Next Steps
## System Status
# 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 - INIT: Memory bank initialized
- Created `memory-bank/tasks.md` - Task registry
- Created `memory-bank/session_cache.md` - Session tracking
- Created `memory-bank/activeContext.md` - Current context
- Created `memory-bank/edit_history.md` - Edit history (this file)
- Created `memory-bank/implementation-details/` - Knowledge layer directory
If the project has existing architecture or context worth capturing:
memory-bank/techContext.md — Stack, dependencies, build systemmemory-bank/productContext.md — Goals, user stories, featuresmemory-bank/systemPatterns.md — Conventions, patterns, standardsmemory-bank/changelog.md — Feature/release trackingmemory-bank/errorLog.md — Known issues and fixesIf there's immediate work to track:
# Create task file
cat > memory-bank/tasks/T1.md << 'EOF'
# T1: [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]
## Progress
1. 🔄 [Current item]
2. ⬜ [Next item]
## Files
EOF
# Update tasks.md registry
# (prepend T1 to Active Tasks table)
git add memory-bank/
git commit -m "(docs)INIT: Initialize memory bank — v6.12 protocol, task tracking ready"
After initialization, use mb-text-workflow or mb-db-workflow for all subsequent updates:
memory-bank/edits/YYYY-MM-DD/memory-bank/tasks/memory-bank/edit_history.md(type)TID: Headline - DetailsFor different project types, customize:
Research projects:
papers/ directory in implementation-detailsWeb/apps:
api-endpoints.md, ui-components.mdDevOps/infrastructure:
deployment.md, monitoring.md