← Back to Skills Marketplace
zengyi-thinking

M2Wise

by zengyi-thinking · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
604
Downloads
0
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install m2wise
Description
Memory-to-Wisdom Engine for AI agents. Use this skill to give yourself long-term memory, extract user preferences/facts from conversations, and track wisdom...
README (SKILL.md)

\r \r

M2Wise - Memory-to-Wisdom Engine\r

\r

This is a skill for the OpenClaw AI Agent to enable long-term memory and self-evolving wisdom.\r \r

🎯 Purpose\r

\r As an AI agent, you inherently lack persistent memory across distinct sessions. The M2Wise skill bridges this gap. It allows you to:\r

  1. Extract and store memories (facts, preferences, commitments) from user conversations.\r
  2. Retrieve contextual memories and aggregated wisdom before answering.\r
  3. Consolidate raw memories into overarching "Wisdom" (rules, schemas, and skills) during idle time.\r \r

🚦 When to Use This Skill\r

\r You should proactively invoke this skill in the following scenarios:\r

  • User expresses a preference: e.g., "I prefer short answers", "Don't use emojis."\r
  • User shares a personal fact: e.g., "I work as a Python developer", "I live in Beijing."\r
  • User asks you to remember: e.g., "Remember that I hate spam."\r
  • Before answering complex questions: To recall the user's past preferences or facts to personalize your response.\r \r

🛠️ How to Use (Agent Instructions)\r

\r You can interact with M2Wise via its Python SDK. Use your shell/execution environment to run these scripts snippet by snippet.\r \r

1. Installation Requirements\r

Make sure the environment has M2Wise installed before calling its Python API:\r

pip install m2wise[all]\r
```\r
\r
### 2. Saving Memories (Online Phase)\r
When you detect a fact or preference in the conversation, run a quick python script to save it:\r
```python\r
from m2wise_sdk import M2WiseSDK\r
\r
sdk = M2WiseSDK()\r
# Extract and save the user's message\r
sdk.add_message("current_user_id", "I prefer concise Chinese answers for technical questions")\r
```\r
\r
### 3. Retrieving Context (Online Phase)\r
Before fulfilling a user's request, fetch their relevant memories:\r
```python\r
from m2wise_sdk import M2WiseSDK\r
\r
sdk = M2WiseSDK()\r
context = sdk.get_context("current_user_id", "How should I answer this technical question?")\r
print("Retrieved Context:", context)\r
```\r
*Action: Read the output of this script and adapt your final response to the user based on the retrieved context.*\r
\r
### 4. Background Processing (Sleep & Dream)\r
It is a good practice to trigger memory consolidation periodically (e.g., at the end of a long task).\r
```python\r
from m2wise_sdk import M2WiseSDK\r
\r
sdk = M2WiseSDK()\r
# Sleep: Extracts memories and groups them into Wisdom Drafts\r
sdk.trigger_sleep("current_user_id")\r
\r
# Dream: Verifies drafts against counterexamples and publishes them\r
sdk.trigger_dream("current_user_id")\r
```\r
\r
## 🧩 MCP Server Alternative\r
\r
If your OpenClaw runtime supports MCP (Model Context Protocol), you can start the M2Wise MCP server and use its native tools instead of writing Python scripts:\r
\r
```bash\r
# Start the MCP server\r
m2wise-mcp --data-dir ./data\r
```\r
\r
**Available MCP Tools:**\r
- `m2wise_add`: Add memory from conversation.\r
- `m2wise_search`: Search memories and wisdom.\r
- `m2wise_sleep`: Generate wisdom drafts.\r
- `m2wise_dream`: Verify and publish wisdom.\r
\r
## 🧠 Memory and Wisdom Types You Will Encounter\r
\r
- **Memories**: `preference` (likes/dislikes), `fact` (states/attributes), `commitment` (future actions).\r
- **Wisdoms**: `principle` (interaction guidelines), `schema` (behavioral patterns), `skill` (operational tactics).\r
\r
## 🚀 Best Practices\r
\r
1. **Be Proactive**: Don't wait for the user to explicitly say "remember this". If they state a strong preference, save it using `sdk.add_message()`.\r
2. **Context First**: For ambiguous requests, always query the memory bank first.\r
3. **Consolidate Often**: Run `trigger_sleep()` and `trigger_dream()` after completing a major task to ensure your wisdom evolves and stays clean.\r
\r
## 🔗 Resources\r
\r
- **GitHub Repository**: https://github.com/zengyi-thinking/M2Wise.git\r
- **Installation via OpenClaw (ClawHub)**:\r
  ```bash\r
  npx clawdhub@latest install m2wise\r
  ```\r
Usage Guidance
Key things to consider before installing: - Metadata mismatch: SKILL.md requires python, pip, m2wise-mcp and environment keys (OPENAI_API_KEY, M2WISE_SILICONFLOW_API_KEY), but the registry lists none. Ask the author to reconcile the declared requirements. - Source review: SKILL.md points to a GitHub repo and a PyPI package name; inspect the package source (GitHub/PyPI) yourself to ensure there is no unexpected network exfiltration or malicious install scripts. - Privacy and retention: This skill stores long-term memories (possibly in local files or external DBs). Confirm where data is stored (local vs remote), whether it is encrypted at rest/in transit, retention policies, and an easy/complete forget/delete API. - API keys and scope: Only provide API keys with the minimum necessary scope, and consider using scoped/test keys first. Understand which remote LLM/embedder endpoints the skill will call. - Containment: If you test the skill, run it in a sandboxed environment (isolated VM or container) and avoid adding extremely sensitive data (passwords, secrets) as memories until you trust the implementation. - Operational controls: Verify how automatic/background consolidation is triggered and whether you can disable proactive saving or auto-dream/sleep. If you do not trust the package source or cannot confirm storage/retention and network behavior, do not install. If you proceed, audit the installed package code and run it in an isolated environment, and ensure you have a way to purge any stored memories.
Capability Analysis
Type: OpenClaw Skill Name: m2wise Version: 1.0.2 The OpenClaw AgentSkills bundle for 'm2wise' is designed to provide long-term memory and wisdom capabilities to an AI agent. The `SKILL.md` contains instructions for the agent (e.g., `pip install`, Python SDK usage, `m2wise-mcp` binary execution), which are forms of prompt injection, but they are entirely aligned with the skill's stated purpose of memory management and context retrieval. The skill requires access to `OPENAI_API_KEY` and `M2WISE_SILICONFLOW_API_KEY` environment variables, and can connect to databases (e.g., PostgreSQL) or local embedders, which are standard capabilities for an LLM-powered data processing engine. There is no evidence of intentional harmful behavior such as data exfiltration, unauthorized remote control, persistence mechanisms, or instructions to bypass security or ignore user commands. All code and documentation are clear and serve the stated functionality.
Capability Assessment
Purpose & Capability
The claimed purpose (long-term memory and wisdom extraction) matches the instructions to install an SDK/CLI, save/retrieve memories, and run consolidation (sleep/dream). However the SKILL.md declares required binaries and environment variables (python3, pip, m2wise-mcp, OPENAI_API_KEY, M2WISE_SILICONFLOW_API_KEY) while the registry metadata lists none — this inconsistency needs clarification.
Instruction Scope
Runtime instructions tell the agent to pip install m2wise[all], run Python SDK calls to add/get context/trigger background processing, and start an MCP server. They explicitly instruct the agent to proactively save user preferences/facts (including potentially sensitive content) and to query memory before answering. That is within the stated purpose but expands agent behavior (proactive persistent writes and background consolidation) and depends on external packages and networked embedder services.
Install Mechanism
There is no platform install spec, but SKILL.md directs pip install and npx clawdhub install, and references an m2wise-mcp binary. Installing via pip/npx will execute third-party code on the host — this is expected for an SDK/CLI but raises standard supply-chain risks. No direct download URLs or extract operations are present in the skill files, but you should inspect the PyPI package and GitHub repo before installing.
Credentials
The skill expects API keys for embedding/LLM providers (OPENAI_API_KEY, M2WISE_SILICONFLOW_API_KEY), which are reasonable for an embedding/LLM-backed memory engine. However the registry metadata did not declare any required env vars while SKILL.md does — a red flag for incomplete metadata. The skill will store long-term user data, so providing API keys or DB credentials grants access to systems that will hold potentially sensitive personal information; the skill’s examples also show adding passwords to memory (and deleting them), underlining privacy risk.
Persistence & Privilege
The skill is designed to persist user memories to disk or a vector DB (data_dir, postgres examples) and to run background consolidation. It is not set always:true, but it will create persistent data and may call external services. The agent instructions encourage proactive saving of user statements (including sensitive items), so confirm data retention, storage location, encryption, and deletion semantics before use.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install m2wise
  3. After installation, invoke the skill by name or use /m2wise
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
m2wise 1.0.2 – Documentation Overhaul and Usability Improvements - Rewrote skill documentation to provide concise, agent-focused instructions and clearer usage guidelines. - Clarified installation steps and Python SDK usage for adding, retrieving, and consolidating memories and wisdom. - Added best practices section for proactive memory use and context-first behaviors. - Expanded MCP server instructions, including the need for the m2wise-mcp binary. - Removed internal implementation details and streamlined examples for easier adoption by new users
v1.0.1
build with structure and reference
v1.0.0
Initial release - Memory-to-Wisdom Engine for AI companion robots
Metadata
Slug m2wise
Version 1.0.2
License
All-time Installs 2
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is M2Wise?

Memory-to-Wisdom Engine for AI agents. Use this skill to give yourself long-term memory, extract user preferences/facts from conversations, and track wisdom... It is an AI Agent Skill for Claude Code / OpenClaw, with 604 downloads so far.

How do I install M2Wise?

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

Is M2Wise free?

Yes, M2Wise is completely free (open-source). You can download, install and use it at no cost.

Which platforms does M2Wise support?

M2Wise is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created M2Wise?

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

💬 Comments