What problem does it solve? AI coding agents lose context between sessions and repeatedly guess database column names, causing silent query failures and corrupted memory records. This Skill defines the complete standard for the PhyCool Context Memory DB (SQLite + FTS5 + MCP server) so agents can reliably store, search, and verify long-term project memory across conversations. ## Core Features & Use Cases - Schema-First Query Discipline: Enforces PRAGMA verification or a schema cheatsheet lookup before any SQL references column names, preventing silent failures like assuming created_at exists on context_entries. - 36 MCP Tools for Memory Operations: Search context entries, stories, tech debt, intentional decisions, conversations, documents, and god nodes; write via add_context, add_tech, log_workflow, plus worker-protocol and ctrl-channel CAS tools. - Hook Triple-Write & 5-Layer Memory: Stop/SessionEnd/PreCompact hooks guarantee session persistence, with layered memory (session/decision/tech/debt/IDD) and CMI-10 hybrid fusion search (ONNX vector + FTS5 + LIKE fallback). - Use Case: Before writing a query against intentional_decisions, an agent reads the Speed Lookup Cheatsheet, confirms the PK is idd_id (TEXT, not id), then runs search_intentional_decisions to retrieve forbidden_changes for a code review. ## Quick Start Ask the agent to search the context memory database for past decisions about a topic, for example by invoking the search_context MCP tool with a query and category filter.