memories-cli
CLI reference and workflows for memories.sh — the persistent memory layer for AI agents. Use when: (1) Running memories CLI commands to add, search, edit, or manage memories, (2) Setting up memories.sh in a new project (memories init), (3) Generating AI tool config files (CLAUDE.md, .cursor/rules, etc.), (4) Importing existing rules from AI tools (memories ingest), (5) Managing cloud sync, embeddings, or git hooks, (6) Troubleshooting with memories doctor, (7) Working with memory templates, links, history, or tags.
Why use this skill?
Efficiently manage AI project knowledge with memories-cli. Sync rules, architectural decisions, and configurations across Claude, Cursor, and Windsurf.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/charlesrhoward/memories-cliWhat This Skill Does
The memories-cli skill provides a command-line interface for managing persistent memory for AI agents. It bridges the gap between various AI development environments like Claude, Cursor, and Windsurf by centralizing project rules, architectural decisions, and configuration files. It acts as a single source of truth for your agent's knowledge, ensuring that instructions, preferences, and project-specific conventions are synchronized, searchable, and always accessible during your development lifecycle.
Installation
You can install the skill via the OpenClaw hub or directly via npm to manage your project's memory layer.
Run the following command:
clawhub install openclaw/skills/skills/charlesrhoward/memories-cli
Once installed, navigate to your project root and execute memories init. This command auto-detects your existing AI tool environment (such as Cursor or Claude) and generates the necessary configuration files to establish a persistent memory link.
Use Cases
- Project Onboarding: Automatically ingest existing
.cursorrulesorCLAUDE.mdfiles into a centralized database. - Knowledge Management: Store architectural decisions, API preferences, or "do's and don'ts" as tagged memories to ensure the AI follows them consistently.
- Cross-Tool Syncing: Use
memories generateto push your centralized rules to multiple AI tools simultaneously, keeping your development environment in perfect sync. - Searchable History: Use
memories searchto recall specific implementation details from past sessions without manually auditing hundreds of lines of code.
Example Prompts
- "Initialize memories in this directory and import all existing rules from my .cursor/rules folder."
- "Add a memory that we are using Supabase for authentication and enforce this in all future AI generated code."
- "Search for all memories tagged with 'api' and generate updated CLAUDE.md and .cursorrules files based on these insights."
Tips & Limitations
- Pro-tip: Use specific types when adding memories (e.g.,
--type rulevs--type decision) to make yourmemories listcommands more effective. - Syncing: Always run
memories syncafter major project changes to ensure your remote cloud database is up-to-date for multi-machine development. - Limitations: While highly robust, the CLI requires local filesystem access. If you are operating in a highly restricted sandbox or browser-only environment, consider using the memories-mcp server as an alternative interface to the same data store.
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-charlesrhoward-memories-cli": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, network-access