knowledge-sync
Real-time knowledge base synchronization for AI assistants. Supports inotifywait file monitoring, Git auto-push/pull, Nutstore sync, and multi-device consistency. Use for maintaining knowledge continuity across servers and local devices.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alfredming-2026/knowledge-syncWhat This Skill Does
The Knowledge Sync skill is a robust infrastructure component for OpenClaw that automates the orchestration of your digital second brain. It bridges the gap between local development workspaces, server-side storage, and note-taking applications like Obsidian. By utilizing a multi-layered approach—combining inotifywait for real-time local file monitoring, automated Git version control, and cloud-native synchronization via Nutstore—it ensures that your information stays current, consistent, and accessible across multiple devices. The skill follows the core principle that "Text > Brain," prioritizing durable, syncable file formats over ephemeral local storage.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/alfredming-2026/knowledge-sync
After installation, you must configure the watch list to target your specific workspace directories. The skill utilizes a systemd service for background monitoring; execute systemctl --user enable sync-realtime.service to ensure the daemon starts upon login. For remote synchronization, configure your Git remotes (e.g., Gitee) to handle off-site backups, and ensure your git-auto-push.sh and git-auto-pull.sh scripts are correctly mapped in your Crontab as detailed in the technical documentation.
Use Cases
- Unified Knowledge Management: Sync your local Obsidian notes across your workstation and server environments.
- Automated Backup Cycles: Ensure that every markdown file saved in your
articles/orprojects/folder is pushed to a remote repository every 5 minutes. - Cross-Platform Consistency: Keep a server-side workspace, a local Git repo, and cloud-synced storage (like Nutstore) in perfect parity for collaborative writing or coding.
- Reduced Operational Overhead: Automate conflict resolution and file updates so you can focus on content creation rather than manual file management.
Example Prompts
- "OpenClaw, please enable the real-time knowledge sync service for my current projects directory."
- "Check the status of my sync-realtime service and let me know if there are any outstanding merge conflicts in my knowledge base."
- "Trigger a manual git-push for my notes to ensure my latest updates are backed up to Gitee immediately."
Tips & Limitations
- Frequency Control: While inotifywait provides near-instant updates, Git pushes are batch-processed every 5 minutes. Do not expect instantaneous global state consistency if you are alternating between machines rapidly.
- Conflict Management: Always pull before you push. The system is designed for individual knowledge maintenance; avoid concurrent edits to the same file from multiple devices to minimize conflict resolution overhead.
- Exclusions: Use the
EXCLUDE_PATTERNconfiguration wisely. Do not track large build artifacts, log files, or temporary system files to keep your repository clean and fast. - Monitoring: Keep an eye on the sync latency. If your synchronization exceeds 30 seconds, verify your systemd logs for file descriptor limits or disk I/O bottlenecks.
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-alfredming-2026-knowledge-sync": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
task-protection
Comprehensive task lifecycle management with automatic tracking, failure analysis, and completion feedback. Use when executing recurring system tasks (backups, health checks, news delivery), critical operations (config changes, data sync, deployments), external interactions (email sending, message notifications, API calls), user-delegated one-time tasks, or long-running operations over 1 minute. Provides 9 tool functions, 8 failure type analysis, progress tracking, and automated reporting.
conflict-coordination
Mechanism conflict detection and coordination for AI assistant systems. Automatically detects crontab conflicts, systemd service conflicts, script overlaps, and log path inconsistencies. Use for maintaining system harmony and preventing internal conflicts.
ai-system-maintenance
系统健康检查和维护,自动检测并修复常见问题