Install
openclaw skills install project-memory-ledgerEngineering project memory ledger with evidence + rollback (Invariants, Decision Log, Change Log). Use to extend conversations over time, reduce hallucinations, avoid memory pollution, and keep systems stable by recording project rules/decisions/changes with traceability. Supports local-only mode (Markdown) and optional Drive project-doc scaffolding via gws; defaults to project-memory-ledger when no Project is specified.
openclaw skills install project-memory-ledgerMaintain a durable, low-pollution ledger split into three books:
Backends (configurable) — simplified semantics:
backend only controls where the project docs/assets are scaffolded and stored.Values:
Project slugs: hunter-system | keyword-engine | commonshared is disabled. Cross-project relationships must be expressed via an explicit field:
Interfaces: hunter-system ↔ keyword-engineIf append is called without --project, the script injects:
Project: project-memory-ledger (configurable by default_project)Use this for improvements/bugs/requirements about this skill itself.
Config path (recommended):
/root/.openclaw/workspace-nero/config/project_memory_ledger.jsonMinimal fields:
backend: local | drivedefault_project: project-memory-ledgerlocal_dir: /root/.openclaw/workspace-nero/ledgersIf backend is drive or both, also set:
shared_folder_id: Drive folder id for Shared/Template:
references/default_config.jsonCreates/links Drive docs (drive/both) and ensures local files exist:
python3 skills/project-memory-ledger/scripts/ledger.py init \
--config /root/.openclaw/workspace-nero/config/project_memory_ledger.json
python3 skills/project-memory-ledger/scripts/ledger.py append \
--config /root/.openclaw/workspace-nero/config/project_memory_ledger.json \
--doc changes \
--project "Keyword Engine" \
--text "- **Interfaces**: hunter-system ↔ keyword-engine\n- **Change**: ...\n- **Why**: ...\n- **Evidence**: ...\n- **Rollback**: ...\n"
Local mode writes:
ledgers/INVARIANTS.mdledgers/DECISIONS.mdledgers/CHANGES.mdledgers/PROJECTS.md (when registering projects)Use when something is worth upgrading into a maintained engineering project (creates a registry entry and records the decision). In drive/both, it also scaffolds a standard Drive folder structure by default:
python3 skills/project-memory-ledger/scripts/ledger.py register-project \
--config /root/.openclaw/workspace-nero/config/project_memory_ledger.json \
--name "My New Project" \
--purpose "Why it exists + success criteria" \
--interfaces "hunter-system ↔ keyword-engine" \
--notes "optional"
Generate a PRD patch proposal (no auto-apply in v1):
python3 skills/project-memory-ledger/scripts/ledger.py update-prd \
--config /root/.openclaw/workspace-nero/config/project_memory_ledger.json \
--project "Keyword Engine" \
--mode propose
This writes to local ledgers/PRD_PATCHES.md (local/both) and prints the proposal.
Drive mode is a pluggable backend and is optional.
gws CLI (must be installed + authenticated)If you don’t need humans editing the ledger, prefer local. If humans want to participate, keep the ledger local and have the agent generate Drive summaries (propose-only style).
Use templates:
references/ledger_templates.md