LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-04
SQLitesession contextagent memoryschemadotnet-scriptcross-chat persistenceaudit trail

Capabilities

Read session recordsWrite context recordsInitialize database schemaEnsure session identity

Typical Inputs

SQLite session databaseContextDb.csx helperschema.sql file

Typical Outputs

Persisted SQLite recordsSession identifiersSchema and index changes

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.