context-db-schema - Manage SQLite context with ContextDb.csx
Explains how to read and write session context in `.claude/db/session.sqlite` through `ContextDb.csx`, including schema, helpers, and session handling.
Tags
Updated: 2026-10-04Capabilities
What this skill does
- Read session records
- Write context records
- Initialize database schema
- Ensure session identity
- Record agent messages
- Record plans and decisions
- Record mistakes and reviews
- Record backlog and hook events
Inputs
- SQLite session database
- ContextDb.csx helper
- schema.sql file
- MEDIATORLITE_SESSION_ID environment variable
- Session context data
Outputs
- Persisted SQLite records
- Session identifiers
- Schema and index changes
- Hook audit records
Requirements
- .NET script runtime
- SQLite support
- Write access to .claude/db
- ContextDb.csx available
