← Back to Skills Marketplace
wangyangwjy

Graph Memory Zero

by wangyangwjy · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
105
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install graph-memory-zero
Description
Production playbook for OpenClaw graph-memory optimization with mem0-aligned recall governance. Use when users ask to (1) summarize current graph-memory stat...
README (SKILL.md)

Graph Memory Zero

Mission

Deliver a reproducible graph-memory optimization outcome (not just a config diff):

  • stable recall behavior
  • explainable filtering semantics
  • safe rollout + rollback
  • observable runtime state

If user asks “达到你这套效果”, execute the full playbook below.

Load order (mandatory)

  1. references/current-baseline.md (known-good baseline)
  2. references/baseline-profiles.md (balanced/precision/recall profiles)
  3. references/verification-playbook.md (acceptance checks)
  4. references/troubleshooting.md (if any mismatch/failure)

When the user asks about install/download/distribution options, also load:

  • references/install-channels.md

Reproducible rollout workflow

Phase 0 — Snapshot and schema guard

  1. Run gateway.config.schema.lookup for:
    • plugins.entries.graph-memory.config
    • plugins.entries.graph-memory.config.recallPolicy
  2. Run gateway.config.get and store:
    • current config snapshot
    • baseHash
  3. Report: plugin enabled state, llm/embedding model, recall policy keys present.

Do not patch before confirming schema path exists.


Phase 1 — Normalize semantics (mem0-compatible)

Ensure these compatibility rules are explicitly explained in summary:

  • threshold is mem0-style alias; legacy minScore may still exist.
  • If both appear, effective threshold = max(threshold, minScore) (stricter wins).
  • infer is deterministic inference/expansion; no extra LLM call.
  • filters.memoryType supports fact|preference|task|event|all.
  • preferenceLexicon (versioned) has higher priority than legacy preferenceKeywords.

If any rule is not represented in runtime config, patch minimal fields only.


Phase 2 — Apply profile patch (minimal mutation)

Default profile is balanced unless user requests otherwise.

Use gateway.config.patch with smallest scoped patch under:

  • plugins.entries.graph-memory.config.recallPolicy

Balanced target (canonical):

  • threshold: 0.62
  • infer: true
  • filters.memoryType: all
  • preferenceLexicon.version: 2026-03-27.balance-v1
  • preferenceLexicon.enabled: true
  • preferenceLexicon.keywords: include EN+ZH preference words

If user asks for stronger precision or stronger recall, choose profile from references/baseline-profiles.md.


Phase 3 — Post-restart verification

After patch + restart, verify all below:

  1. Effective config re-read matches intended patch.
  2. gm_search debug details available (details.debug includes threshold/infer/filter summary).
  3. No schema/key regression (memoryType not dropped, lexicon keys intact).
  4. Query spot-checks pass (from verification playbook).

If any check fails, enter troubleshooting flow.


Phase 4 — Quality validation (must do before claiming success)

Run the query set in references/verification-playbook.md and compare:

  • preference-sensitive queries
  • task/event retrieval queries
  • mixed-language (CN/EN) preference terms

Success criteria (minimum):

  • relevant top hits improve or stay stable
  • off-topic hits do not increase materially
  • preference-related queries show better intent alignment

Do not claim “优化完成” without this phase.


Phase 5 — Rollback safety

Always keep rollback notes in output:

  • previous values (before)
  • target values (after)
  • one-step revert patch path

If regression is observed, rollback immediately to previous stable profile.

Failure handling

A) Local test execution fails

If extension tests fail locally but config intent is clear:

  1. Skip blocking local test path.
  2. Use controlled gateway.config.patch rollout.
  3. Run verification playbook.
  4. Keep explicit rollback entry.

B) PowerShell path / command failed

If errors indicate missing path or command failure:

  1. Validate path with Test-Path first.
  2. Confirm script/CLI location and permissions.
  3. Retry minimal command only after path is confirmed.

C) Version mismatch signals

If extension folder version and runtime installed version differ:

  • treat as metadata mismatch
  • continue config-level rollout, but report mismatch as release check item

Output contract (default reply structure)

Use this structure for user-facing summary:

  1. 当前状态:enabled / model / embedding / recallPolicy
  2. mem0 对齐语义:threshold-minScore、infer、memoryType、lexicon
  3. 本次变更:before → after(只列关键键)
  4. 验证结果:通过项 / 风险项 / 观测数据
  5. 下一步建议:继续调优或保持当前
  6. 回滚信息:可直接执行的 revert 说明

Keep answers concise-first, but never omit verification and rollback details.

Distribution guidance (when requested)

If user asks "how can others install this", provide at least 3 channels:

  1. ClawHub registry install (online)
  2. Offline package install (.skill as zip artifact)
  3. Source-folder install (copy skill folder into workspace skills/)

Always include:

  • required folder layout check (SKILL.md at skill root)
  • post-install reload step (openclaw gateway restart)
  • quick verification (skill appears in available skills and can be triggered)

Anti-patterns (forbid)

  • Large full-config overwrite when only recallPolicy needs change.
  • Declaring success without post-restart validation.
  • Ignoring threshold/minScore conflict resolution.
  • Omitting lexicon version in production summary.
  • Hiding test/verification gaps.
Usage Guidance
This appears to be a coherent, instruction-only playbook for safely tuning a graph-memory plugin. Before using it, ensure you (or the agent) have the proper operational permissions to read/patch gateway.config and restart the gateway; take and store the config snapshot it asks for so rollbacks are possible; be cautious about the guidance to skip local tests — only use that in controlled canary/gradual rollouts with strong observability; and review any runtime baseURL/model entries in the baseline file to ensure they point to trusted endpoints in your environment.
Capability Analysis
Type: OpenClaw Skill Name: graph-memory-zero Version: 1.0.2 The skill bundle provides the AI agent with high-risk capabilities, including direct modification of system configurations via 'gateway.config.patch' and the execution of PowerShell commands (e.g., 'Test-Path') for path validation and troubleshooting (SKILL.md, references/troubleshooting.md). While these actions are plausibly required for the stated purpose of optimizing graph-memory settings and include safety measures like configuration snapshots and rollback procedures, the use of shell access and system-level patching meets the threshold for suspicious classification. The documentation references legitimate AI endpoints at api.siliconflow.cn.
Capability Assessment
Purpose & Capability
The name/description match the instructions: the skill documents how to inspect, patch, restart, verify, and rollback plugins.entries.graph-memory.config. It does not request unrelated credentials, binaries, or config paths.
Instruction Scope
Instructions stay focused on graph-memory config lifecycle (schema lookup, gateway.config.get/patch, restart, gm_search verification). Operational guidance includes a potentially risky recommendation to 'skip blocking local test path' and proceed with a controlled patch if local tests fail — this is scope-consistent but operationally aggressive and should be used with caution in production.
Install Mechanism
No install spec or code is included (instruction-only), so nothing is written to disk or fetched during install; distribution guidance is benign and uses normal channels (registry, .skill zip, copy).
Credentials
No environment variables, credentials, or unrelated config paths are required. The files contain example runtime values (example LLM/embedding baseURL and models) as baseline metadata, which is explanatory rather than a secret requirement.
Persistence & Privilege
Skill is not always-enabled, does not request permanent presence, and its actions are limited to reading/patching the graph-memory plugin configuration and verifying behavior. It does not instruct modification of other skills' configurations.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install graph-memory-zero
  3. After installation, invoke the skill by name or use /graph-memory-zero
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Added multi-channel installation guidance for broader adoption: ClawHub registry install, offline .skill package deployment, and source-folder manual install. Included post-install verification checklist and restart/reload steps so users can reproduce setup in online and restricted environments.
v1.0.1
Expanded to reproducible ops playbook: added profile presets (balanced/precision/recall), verification query-set with acceptance criteria, troubleshooting matrix, strict threshold/minScore semantics, and rollback-first rollout guidance for production graph-memory + mem0-aligned governance.
v1.0.0
Initial public release of the optimized graph-memory workflow with mem0-aligned recall governance: adds threshold/minScore compatibility (strict=max), deterministic infer query enrichment, memoryType filtering (fact/preference/task/event/all), versioned preferenceLexicon with hot-update behavior, gm_search debug observability, and safe gateway.config.patch rollout + rollback guidance for production operations.
Metadata
Slug graph-memory-zero
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Graph Memory Zero?

Production playbook for OpenClaw graph-memory optimization with mem0-aligned recall governance. Use when users ask to (1) summarize current graph-memory stat... It is an AI Agent Skill for Claude Code / OpenClaw, with 105 downloads so far.

How do I install Graph Memory Zero?

Run "/install graph-memory-zero" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Graph Memory Zero free?

Yes, Graph Memory Zero is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Graph Memory Zero support?

Graph Memory Zero is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Graph Memory Zero?

It is built and maintained by wangyangwjy (@wangyangwjy); the current version is v1.0.2.

💬 Comments