一键导入
db-inspect
Inspect the PostgreSQL schema, tables, and data for a running lifelog instance
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Inspect the PostgreSQL schema, tables, and data for a running lifelog instance
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validate, stage, and commit current changes with a conventional commit message
Diagnose and fix build failures systematically
Explain how a specific part of the lifelog architecture works with diagrams and data flow
Trace a data modality end-to-end from proto definition through collector, server, and storage
Fix a GitHub issue end-to-end with tests and validation
Generate realistic test data fixtures for a data modality
| name | db-inspect |
| description | Inspect the PostgreSQL schema, tables, and data for a running lifelog instance |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep |
Inspect the lifelog PostgreSQL instance. Focus on: $ARGUMENTS
Available commands (PostgreSQL must be running, default DSN: postgresql://lifelog@127.0.0.1:5432/lifelog):
# List all tables
psql "$LIFELOG_POSTGRES_INGEST_URL" -c "\dt"
# Describe the frames table
psql "$LIFELOG_POSTGRES_INGEST_URL" -c "\d frames"
# Count records per modality
psql "$LIFELOG_POSTGRES_INGEST_URL" -c "SELECT modality, count(*) FROM frames GROUP BY modality ORDER BY count DESC;"
# Sample records
psql "$LIFELOG_POSTGRES_INGEST_URL" -c "SELECT id, modality, origin_id, created_at FROM frames ORDER BY created_at DESC LIMIT 10;"
# Check catalog
psql "$LIFELOG_POSTGRES_INGEST_URL" -c "SELECT * FROM catalog LIMIT 20;"
Steps: