← 返回 Skills 市场
zengyi-thinking

M2Wise

作者 zengyi-thinking · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
604
总下载
0
收藏
2
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install m2wise
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /m2wise 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug m2wise
版本 1.0.2
许可证
累计安装 2
当前安装数 2
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 604 次。

如何安装 M2Wise?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install m2wise」即可一键安装,无需额外配置。

M2Wise 是免费的吗?

是的,M2Wise 完全免费(开源免费),可自由下载、安装和使用。

M2Wise 支持哪些平台?

M2Wise 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 M2Wise?

由 zengyi-thinking(@zengyi-thinking)开发并维护,当前版本 v1.0.2。

💬 留言讨论