You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: PLUGIN.md
+96Lines changed: 96 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,76 @@ Add to your `.claude/settings.json`:
52
52
53
53
---
54
54
55
+
## Memo Validation with basic-memory-hooks
56
+
57
+
For consistent, machine-readable memos, integrate with [basic-memory-hooks](https://github.com/basicmachines-co/basic-memory-hooks) - a validation service that catches LLM formatting inconsistencies and fixes them automatically.
58
+
59
+
### Quick Start
60
+
61
+
```bash
62
+
# 1. Clone and install
63
+
cd~/code
64
+
gh repo clone basicmachines-co/basic-memory-hooks
65
+
cd basic-memory-hooks
66
+
uv sync # or: pip install -e .
67
+
68
+
# 2. Start the validation server
69
+
uv run python -m basic_memory_hooks
70
+
71
+
# 3. Verify it's running
72
+
curl http://localhost:8000/health
73
+
# Returns: {"status":"healthy"}
74
+
```
75
+
76
+
### How It Works
77
+
78
+
When you create memos using `/remember`, `/research`, or write notes directly, the validation server:
79
+
80
+
1.**Validates frontmatter** - Ensures title and type exist
81
+
2.**Fixes observation format** - Converts `- fact:` to `- [fact]`
Copy file name to clipboardExpand all lines: hooks/hooks.json
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,16 @@
1
1
{
2
2
"hooks": {
3
+
"PreToolUse": [
4
+
{
5
+
"matcher": "mcp__basic-memory__write_note",
6
+
"hooks": [
7
+
{
8
+
"type": "prompt",
9
+
"prompt": "Before saving this note to Basic Memory, validate it using the validate-memo skill if the hooks server is running at http://localhost:8000. Check the content against the project's format configuration to catch and fix any formatting issues. If validation fails with errors, fix the content before proceeding."
0 commit comments