SQL Dreamer

# openclaw-sql-dreamer — SKILL.md

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "SQL Dreamer" with this command: npx skills add oblio-falootin/sql-dreamer

openclaw-sql-dreamer — SKILL.md

OpenClaw skill: SQL-backed memory corpus feeder and dream output archiver.

What This Skill Does

OpenClaw's native dreamer reads memory/YYYY-MM-DD.md files — raw session logs containing noise, errors, and real insights all mixed together. This skill:

  1. Pre-dream feed — queries SQL for high-importance memories, writes a clean daily file
  2. Post-dream archiver — stores dream outputs (light/REM/deep) to SQL tables durably
  3. File cleanup — prunes dream output files older than N days

The OpenClaw dreamer runs unchanged. This skill wraps around it.

Installation

git clone https://github.com/High-Falootin/openclaw-SQL-dreamer.git
cd openclaw-SQL-dreamer
pip install -r requirements.txt
cp config/example.yml config/config.yml
# Edit config/config.yml
python sql/migrate.py

Configuration Reference

All settings live in config/config.yml (never committed — see .gitignore).

FieldTypeDefaultDescription
sql.serverstringSQL Server hostname
sql.databasestringDatabase name
sql.usernamestringSQL username
sql.passwordstringVia env SQL_PASSWORD
corpus.importance_thresholdint7Min importance (1-10) for dream corpus
corpus.lookback_daysint2Days back to pull memories
dreaming.workspace_dirstringOpenClaw workspace root
dreaming.archive_after_daysint7Days before dream files are pruned
confluence.enabledboolfalseEnable Confluence publishing

Scripts

ScriptWhenWhat
scripts/pre_dream_sql_feed.py3:00 AM (before dream)Queries SQL, writes clean memory file
scripts/post_dream_archiver.py4:00 AM (after dream)Archives dream outputs to SQL, prunes old files
scripts/confluence_dream_publisher.py4:30 AM (optional)Pushes wiki syntheses to Confluence

SQL Tables Created

Run python sql/migrate.py to create:

  • dreams.DreamCorpus — memories queued for each cycle
  • dreams.DreamLight — light sleep candidates
  • dreams.DreamREM — REM themes and reflections
  • dreams.DreamDeep — deep sleep promotions

Crontab Example

# Pre-dream SQL feed (30 min before your OpenClaw dream cron)
0 7 * * * python /path/to/scripts/pre_dream_sql_feed.py

# Post-dream archiver (1 hour after dream cycle)
0 8 * * * python /path/to/scripts/post_dream_archiver.py

# Confluence publisher (optional)
30 8 * * * python /path/to/scripts/confluence_dream_publisher.py

Security

This is a public repo. Never commit:

  • .env files
  • config/config.yml
  • Passwords, tokens, API keys

Use environment variables for all secrets:

export SQL_PASSWORD="..."
export CONFLUENCE_API_TOKEN="..."

Updated Crontab (after HFTC-28)

# Pre-dream SQL feed (30 min before dream cycle)
0 7 * * * python /path/to/scripts/pre_dream_sql_feed.py

# Post-dream archiver + phase signal reconciler (1 hr after dream)
0 8 * * * python /path/to/scripts/post_dream_archiver.py
5 8 * * * python /path/to/scripts/phase_signal_reconciler.py

# Confluence publisher (optional, 90 min after dream)
30 8 * * * python /path/to/scripts/confluence_dream_publisher.py

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wip Ldm Os Private

LDM OS installer and updater. Use when asked to install, update, or check status of LDM OS. Use when user pastes an install prompt mentioning wip.computer/in...

Registry SourceRecently Updated
General

IMDb Redux Overview API

Call GET /api/imdb/title-redux-overview-query/v1 for IMDb Redux Overview through JustOneAPI with id.

Registry SourceRecently Updated
General

AI Combat Shot Prompts

战斗分镜 Prompt 技能 —— 用中文武侠/仙侠语境,写 Cinema-grade 战斗镜头 AI 生成提示词。触发场景:打斗、比武、追杀、轻功追逐、法术对轰、武器碰撞。覆盖平台:LibTV、即梦、Seedance、Kling、可灵、海螺。核心能力:将"两人打架"这种泛泛描述,转化为有具体物理参数、光影结构和...

Registry SourceRecently Updated
General

Memory Crystal Private

Search and manage the shared memory crystal. Use when user says "do you remember", "search memory", "remember this", "forget that", "memory status", "what do...

Registry SourceRecently Updated