templates/skills/modules/memory/SKILL.md
The rulebook memory system provides persistent context across AI sessions using hybrid search (BM25 keyword + HNSW vector) with zero native dependenci
npx skillsauth add hivellm/rulebook MemoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The rulebook memory system provides persistent context across AI sessions using hybrid search (BM25 keyword + HNSW vector) with zero native dependencies.
Layer 1 — Compact Search: Get brief results to scan relevance.
rulebook_memory_search({ query: "authentication bug", mode: "hybrid", limit: 10 })
→ Returns: { id, title, type, score, matchType, createdAt } per result (~50 tokens each)
Layer 2 — Timeline: Get chronological context around a memory.
rulebook_memory_timeline({ memoryId: "abc-123", window: 5 })
→ Returns: 5 memories before + anchor + 5 memories after (~200 tokens each)
Layer 3 — Full Details: Get complete content only for selected memories.
rulebook_memory_get({ ids: ["abc-123", "def-456"] })
→ Returns: Full memory objects with content (~500-1000 tokens each)
rulebook memory search "authentication bug" # Hybrid search
rulebook memory save "Decided to use sql.js" --type decision --title "DB Choice"
rulebook memory list --limit 10 # Recent memories
rulebook memory stats # Database statistics
rulebook memory cleanup --force # Force eviction
rulebook memory export --format json # Export all memories
{
"memory": {
"enabled": true,
"dbPath": ".rulebook-memory/memory.db",
"maxSizeBytes": 524288000,
"vectorDimensions": 256
}
}
Content between <private> and </private> tags is automatically stripped before storage.
research
Author a rulebook task spec interactively — research, draft, ask the user clarifying questions, confirm, then create the tasks in rulebook ready for /rulebook-driver. Use when the user wants to plan/spec a feature before implementing.
development
Behavioral guidelines to reduce common LLM coding mistakes — overcomplication, sloppy refactors, hidden assumptions, weak goals. Use when writing, reviewing, or refactoring code. Auto-applies; invoke explicitly via /karpathy-guidelines or 'follow karpathy discipline'.
data-ai
Autonomous AI agent loop for iterative task implementation (@hivehub/rulebook ralph)
data-ai
Use SQL Server for enterprise relational data storage with advanced features, high availability, and Windows integration.