feat: add MemPalace Claude Code plugin with hooks and instructions
- Introduced README.md for plugin overview and installation instructions. - Added hooks configuration in hooks.json for auto-save and pre-compact functionality. - Implemented stop and pre-compact hooks in bash scripts for memory management. - Created marketplace.json and plugin.json for plugin metadata and versioning. - Developed skills and instructions for help, init, mine, search, and status functionalities. - Added CLI commands for executing hooks and displaying skill instructions. - Implemented hooks_cli.py for handling hook logic and JSON input/output. - Enhanced instruction files for user guidance on setup and usage. - Updated .gitignore to exclude additional files. - Created GitHub Actions workflow for syncing plugin version on push.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: help
|
||||
description: Show comprehensive MemPalace help — available skills, MCP tools, CLI commands, hooks, and architecture.
|
||||
---
|
||||
|
||||
Run the following command and display its output to the user:
|
||||
|
||||
```bash
|
||||
mempalace instructions help
|
||||
```
|
||||
|
||||
Display the output as-is — it's pre-formatted markdown.
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
name: init
|
||||
description: Set up MemPalace — install the package, initialize a palace, configure MCP server, and verify everything works.
|
||||
---
|
||||
|
||||
Run the following command to get setup instructions, then follow them step by step:
|
||||
|
||||
```bash
|
||||
mempalace instructions init
|
||||
```
|
||||
|
||||
If the command fails (mempalace not installed yet), first install it:
|
||||
|
||||
```bash
|
||||
pip install mempalace
|
||||
```
|
||||
|
||||
Then run the instructions command again and follow the output.
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: mine
|
||||
description: Mine projects and conversations into the MemPalace. Supports project files, conversation exports, and auto-classification.
|
||||
---
|
||||
|
||||
Run the following command to get mining instructions, then follow them:
|
||||
|
||||
```bash
|
||||
mempalace instructions mine
|
||||
```
|
||||
|
||||
Follow the returned instructions to mine the user's data.
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: search
|
||||
description: Search your memories across the MemPalace using semantic search with wing/room filtering.
|
||||
---
|
||||
|
||||
Run the following command to get search instructions, then follow them:
|
||||
|
||||
```bash
|
||||
mempalace instructions search
|
||||
```
|
||||
|
||||
Follow the returned instructions to execute the user's search query.
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: status
|
||||
description: Show the current state of your memory palace — wings, rooms, drawer counts, and suggestions.
|
||||
---
|
||||
|
||||
Run the following command to get status instructions, then follow them:
|
||||
|
||||
```bash
|
||||
mempalace instructions status
|
||||
```
|
||||
|
||||
Follow the returned instructions to display the palace status.
|
||||
Reference in New Issue
Block a user