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

Capabilities

Typical Inputs

Typical Outputs

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.
SQLite
session context
agent memory
schema
dotnet-script
cross-chat persistence
audit trail
Read session records
Write context records
Initialize database schema
Ensure session identity
SQLite session database
ContextDb.csx helper
schema.sql file
Persisted SQLite records
Session identifiers
Schema and index changes