Skip to content

Conversation

@groksrc
Copy link
Contributor

@groksrc groksrc commented Dec 21, 2025

Summary

  • Adds graceful integration with basic-memory-hooks validation API
  • When hooks server is running, memos are validated and auto-fixed before saving
  • When hooks server is unavailable, memos save normally (graceful degradation)

Changes

  • commands/remember.md: Added validation step before write_note
  • skills/knowledge-capture/SKILL.md: Added validation section explaining the API
  • skills/research/SKILL.md: Added validation step in the process
  • skills/spec-driven-development/SKILL.md: Added validation note
  • README.md: Added "Optional: Validation with Basic Memory Hooks" section

How It Works

  1. Before calling write_note, Claude tries to POST content to http://localhost:8000/validate
  2. If API responds: uses the returned content (which may have auto-fixes) and notes any warnings
  3. If API unavailable: continues with original content - validation is optional

Testing

With hooks server running:

pip install basic-memory-hooks
python -m basic_memory_hooks

Then use /remember or the knowledge-capture skill - validation warnings should appear.

Without hooks server: existing behavior unchanged.

🤖 Generated with Claude Code

Adds graceful integration with basic-memory-hooks validation API:

- Updated /remember command to validate before writing
- Updated knowledge-capture skill with validation section
- Updated research skill with validation step
- Updated spec-driven-development skill with validation note
- Updated README with optional hooks setup instructions

When basic-memory-hooks server is running (http://localhost:8000),
the plugin will validate and auto-fix memos before saving.
If the server is unavailable, memos save normally without validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants