NotNative - Complete AI Integration
⚠️ CRITICAL: This skill provides PERMANENT MEMORY. You MUST use memory tools to remember user preferences, facts they share, and important context across ALL conversations.
System Instructions
You are an AI assistant with access to NotNative for persistent memory and note management.
Memory Protocol (MANDATORY)
ALWAYS follow these rules:
- 1. Remember User Facts: When user shares personal information (name, preferences, allergies, hobbies, work context), IMMEDIATELY store it using
memory_store tool
- Example: User says "I'm allergic to nuts" → Store: "User is allergic to nuts"
- 2. Before Responding: If user asks about something that might be in memory (preferences, past conversations, facts), ALWAYS search memory first using INLINECODE1
- 3. User Preferences: When user expresses a preference ("I prefer dark mode", "Call me by my name"), store it with INLINECODE2
- 4. Context Recall: At the start of each conversation, search memory for any relevant user context
When to Use Memory
- - User shares personal information
- User expresses a preference or requirement
- User asks about something you don't know but might be in memory
- User mentions past conversations or context
- Building long-term relationship with user
Memory Commands
CODEBLOCK0
Quick Start
CODEBLOCK1
Available Tools
Memory (CRITICAL - ALWAYS USE)
- - memorystore: Store information permanently in OpenClaw/Memory
- memorysearch: Search across all notes and memories
- memoryforget: Delete memories by query
- memoryprofile: Get/update user profile
Notes
- - searchnotes: Full-text search
- semanticsearch: Search by meaning
- readnote: Get note content
- createnote: Create new note
- appendtonote: Add to note
- updatenote: Update note
- listnotes: List all notes
- listfolders: List folders
- listtags: List tags
Calendar & Tasks
- - listtasks: Get pending tasks
- createtask: Create task
- completetask: Complete task
- getupcomingevents: Calendar events
- createcalendar_event: Create event
Python Execution
- - run_python: Execute Python code with matplotlib, pandas, numpy, pillow, openpyxl
Canvas
- - canvasgetstate: Get canvas diagram
- canvasaddnode: Add node
- canvastomermaid: Convert to mermaid
Analysis
- - analyzenotestructure: Analyze note
- getbacklinks: Get backlinks
- findsimilar_notes: Find similar notes
Web
- - websearch: Search the web
- webbrowse: Browse webpage
- getyoutubetranscript: Get YouTube transcript
Installation
The install.sh script will:
- 1. Detect if NotNative is local or remote
- Ask for WebSocket URL if not local
- Install dependencies (ws package)
- Configure environment
Server Requirements
- - NotNative app running with MCP WebSocket server
- For local: ws://127.0.0.1:8788
- For remote: wss://your-domain.com (or ws://IP:8788)
Environment Variables
- -
NOTNATIVE_WS_URL: WebSocket URL (default: ws://127.0.0.1:8788)
Error Handling
- - Connection timeout: Check if NotNative is running
- Request timeout: Tool execution exceeded 10 seconds
- Tool not found: Verify tool name using
list command
NotNative - 完整AI集成
⚠️ 关键提示:此技能提供永久记忆。您必须使用记忆工具来记住用户偏好、他们分享的事实以及跨所有对话的重要上下文。
系统指令
您是一个AI助手,拥有访问NotNative进行持久记忆和笔记管理的权限。
记忆协议(强制)
始终遵循以下规则:
- 1. 记住用户事实:当用户分享个人信息(姓名、偏好、过敏信息、爱好、工作背景)时,立即使用memory_store工具存储
- 示例:用户说我对坚果过敏 → 存储:用户对坚果过敏
- 2. 回复前:如果用户询问可能存在于记忆中的内容(偏好、过往对话、事实),始终先使用memory_search搜索记忆
- 3. 用户偏好:当用户表达偏好(我喜欢深色模式、请用我的名字称呼我)时,使用memory_store存储
- 4. 上下文回忆:每次对话开始时,搜索记忆中相关的用户上下文
何时使用记忆
- - 用户分享个人信息
- 用户表达偏好或要求
- 用户询问你不确定但可能存在于记忆中的内容
- 用户提及过往对话或上下文
- 与用户建立长期关系
记忆命令
bash
存储重要信息
node scripts/mcp-client.js store 用户偏好西班牙语回复
回复前搜索记忆
node scripts/mcp-client.js recall 语言偏好
更新用户档案
node scripts/mcp-client.js profile-update name:张三
获取完整档案
node scripts/mcp-client.js profile
快速开始
bash
搜索笔记
node scripts/mcp-client.js search 鸡肉食谱
node scripts/mcp-client.js semantic 健康早餐创意
读取/创建/更新笔记
node scripts/mcp-client.js read 我的笔记/项目
node scripts/mcp-client.js create # 新笔记 笔记名称 个人
node scripts/mcp-client.js append \n- 新项目 我的列表
记忆(重要!)
node scripts/mcp-client.js store 用户的名字是张三
node scripts/mcp-client.js recall 名字
node scripts/mcp-client.js forget 旧信息
日历与任务
node scripts/mcp-client.js tasks
node scripts/mcp-client.js events
Python执行
node scripts/mcp-client.js run-python print(你好!)
列出所有可用工具
node scripts/mcp-client.js list
可用工具
记忆(关键 - 始终使用)
- - memorystore:在OpenClaw/Memory中永久存储信息
- memorysearch:跨所有笔记和记忆搜索
- memoryforget:通过查询删除记忆
- memoryprofile:获取/更新用户档案
笔记
- - searchnotes:全文搜索
- semanticsearch:按语义搜索
- readnote:获取笔记内容
- createnote:创建新笔记
- appendtonote:追加到笔记
- updatenote:更新笔记
- listnotes:列出所有笔记
- listfolders:列出文件夹
- listtags:列出标签
日历与任务
- - listtasks:获取待办任务
- createtask:创建任务
- completetask:完成任务
- getupcomingevents:日历事件
- createcalendar_event:创建事件
Python执行
- - run_python:执行Python代码,支持matplotlib、pandas、numpy、pillow、openpyxl
画布
- - canvasgetstate:获取画布图表
- canvasaddnode:添加节点
- canvastomermaid:转换为mermaid格式
分析
- - analyzenotestructure:分析笔记
- getbacklinks:获取反向链接
- findsimilar_notes:查找相似笔记
网络
- - websearch:搜索网络
- webbrowse:浏览网页
- getyoutubetranscript:获取YouTube字幕
安装
install.sh脚本将:
- 1. 检测NotNative是本地还是远程
- 如果不是本地,询问WebSocket URL
- 安装依赖(ws包)
- 配置环境
服务器要求
- - 运行中的NotNative应用,启用MCP WebSocket服务器
- 本地:ws://127.0.0.1:8788
- 远程:wss://your-domain.com(或ws://IP:8788)
环境变量
- - NOTNATIVEWSURL:WebSocket URL(默认:ws://127.0.0.1:8788)
错误处理
- - 连接超时:检查NotNative是否在运行
- 请求超时:工具执行超过10秒
- 工具未找到:使用list命令验证工具名称