memory-cn
OpenClaw + Ollama 中文记忆系统优化。诊断 FTS5 unicode61 中文分词 bug,优化搜索参数,自动维护记忆文件。命中率从 55% 提升到 100%。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/abczsl520/memory-cnWhat This Skill Does
The memory-cn skill is a highly specialized optimization module for OpenClaw users working with Ollama-based Chinese language environments. It addresses the critical FTS5 unicode61 tokenization bug, where the database treats continuous Chinese characters as a single, indivisible token, effectively breaking full-text search capabilities for Chinese queries. By implementing a systematic approach—including structured logging, strategic keyword tagging, and weighted hybrid search parameters—this skill restores semantic search accuracy and elevates memory retrieval hit rates from a baseline of 55% to near 100%.
Installation
To install this skill, use the following command in your terminal:
clawhub install openclaw/skills/skills/abczsl520/memory-cn
Once installed, ensure you execute openclaw memory index --force to initialize the optimized indexing structure.
Use Cases
This skill is essential for power users maintaining long-term conversational memory with Ollama models. Use it when:
- Your search queries in Chinese are consistently returning 'no results' despite the information being present in your history.
- You are managing large knowledge bases (lessons) or project files that have grown beyond 8KB per file.
- You need to transition from a disorganized log structure to a highly queryable, tag-based memory retrieval system.
- You are using small-scale local LLMs (e.g., 0.6B models) and need optimized chunking to improve context relevance.
Example Prompts
- "OpenClaw, please run the diagnosis script and report on the current health of my memory file tags and FTS5 indexing."
- "I'm having trouble retrieving old project details in Chinese; can you patch my memory search settings to the optimized hybrid configuration?"
- "Run a maintenance cycle: add missing tags to my project logs, compress files exceeding 8KB, and force a rebuild of the memory index."
Tips & Limitations
The memory-cn skill relies on space-separated Chinese keywords to bypass FTS5 limitations. Users should ensure that their manual memory entries follow the <!-- tags: ... --> header convention to maximize indexing performance. While the 0.75 vector weight is highly effective for smaller local models, you may need to adjust the minScore parameter if your specific LLM exhibits unexpectedly low cosine similarity values. Always backup your memory/ directory before performing bulk compression tasks. This skill is specifically tuned for local storage deployments and may require additional permissions if your memory store resides on a network-mounted drive.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-abczsl520-memory-cn": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
debug-methodology
Systematic debugging and problem-solving methodology. Activate when encountering unexpected errors, service failures, regression bugs, deployment issues, or when a fix attempt has failed twice. Also activate when proposing ANY fix to verify it addresses root cause (not a workaround). Prevents patch-chaining, wrong-environment restarts, workaround addiction, and "drunk man" random fixes.
game-quality-gates
Game development quality gates and mandatory checks. Activate when building, reviewing, debugging, or deploying any game project (H5/Canvas/WebGL/Phaser/Three.js/2D/3D). Covers state cleanup, lifecycle management, input handling, audio, persistence, networking, anti-cheat, and performance. Use as pre-deploy checklist or when diagnosing game-specific bugs (state leaks, phantom timers, buff conflicts, memory growth, touch issues).
bug-audit
Comprehensive bug audit for Node.js web projects. Activate when user asks to audit, review, check bugs, find vulnerabilities, or do security/quality review on a project. Works by dissecting the project's actual code to build project-specific check matrices, then exhaustively verifying each item — not by running a generic checklist. Supports games, data tools, WeChat apps, API services, bots, and dashboards.
nodejs-project-arch
Node.js project architecture standards for AI-assisted development. Enforces file splitting (<400 lines), config externalization, route modularization, and admin dashboards. Use when creating new Node.js projects, refactoring large single-file codebases, or when AI context window is being consumed by oversized files. Covers H5 games (Canvas/Phaser/Matter.js), data tools (crawlers/scrapers), content platforms, monitoring dashboards, API services, and SDK libraries.
codex-review
Three-tier code quality defense: L1 quick scan, L2 deep audit (via bug-audit), L3 cross-validation with adversarial testing. 三级代码质量防线。