← 返回 Skills 市场
45
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sql-dreamer
功能描述
Feeds OpenClaw dreamer with high-importance memories from SQL, archives dream outputs back to SQL, and prunes old dream files automatically.
安全使用建议
This skill appears to implement what it claims (SQL pre-feed, archiver, cleanup), but there are inconsistencies you should address before installing:
- Metadata vs reality: The registry lists no required env vars, yet SKILL.md and the scripts require database credentials (SQL_PASSWORD/.env) and optionally a CONFLUENCE_API_TOKEN. Treat that as a packaging/documentation bug and verify required secrets before installing.
- Least privilege: Provide the skill with the minimum DB privileges it needs (ideally separate read-only account for pre-feed and a constrained write account for archiving). Don't reuse admin or shared credentials.
- Audit the code: Inspect src/sql_connector.py, scripts/pre_dream_sql_feed.py and scripts/post_dream_archiver.py to confirm which SQL queries and DELETE statements will run (migrate.py creates tables; archiver deletes old files/rows). If you have a staging DB, run the scripts there first.
- Backup before running migrations or pruning: sql/migrate.py will create schemas/tables; post_dream_archiver/pruning will delete files older than N days — back up data and test with dry-run flags where available.
- Confluence publishing: The confluence publisher posts to whatever domain and credentials you supply. Only enable it with a dedicated API token and review the markdown→storage conversion to ensure sensitive content isn't accidentally published.
- Test in an isolated environment: Use a local or mocked SQL Server (or the included tests/mock_dreamer) to run pytest and the scripts with --dry-run to observe behavior without affecting production data.
If you want, I can: (a) list the exact SQL statements used by the archiver and pre-feed scripts, (b) summarize places where credentials are read, or (c) produce a short checklist for safe deployment (accounts, backups, dry-run steps).
功能分析
Type: OpenClaw Skill
Name: sql-dreamer
Version: 0.1.0
The sql-dreamer skill bundle is a well-documented and functional extension for OpenClaw designed to transition memory management from flat files to a SQL Server backend. The code implements the stated features—SQL-based memory curation, dream output archiving, and optional Confluence publishing—without any evidence of malicious intent or hidden data exfiltration. Security best practices are observed, such as the use of parameterized SQL queries in src/sql_connector.py to prevent injection and the use of environment variables for sensitive credentials like SQL_PASSWORD and CONFLUENCE_API_TOKEN. While the Confluence publisher (scripts/confluence_dream_publisher.py) and SQL connector involve network and database access, these capabilities are essential to the skill's purpose and are controlled by user-defined configurations.
能力标签
能力评估
Purpose & Capability
The name/description (SQL-backed pre-feed and post-dream archiver) aligns with the included scripts and DB schema. However the registry metadata claims no required environment variables/credentials while the SKILL.md and code clearly expect SQL credentials (SQL_PASSWORD / .env) and an optional CONFLUENCE token. The README also declares a dependency on a separate sql-connector skill, yet this package includes a src/sql_connector.py file, which is an inconsistency worth auditing.
Instruction Scope
Runtime instructions and scripts read and write workspace files (memory/YYYY-MM-DD.md, memory/.dreams/short-term-recall.json, memory/dreaming/*), walk up the filesystem to find config/config.yml, and perform SQL reads/writes and deletions (e.g., clearing DreamLight for a cycle_date). These behaviors are expected for the purpose but the SKILL.md/README instruct storing DB credentials in ~/.openclaw/workspace/.env and exporting SQL_PASSWORD/CONFLUENCE_API_TOKEN. The skill also contains a confluence publisher that will POST content to a user-provided Confluence domain. The instructions give the agent broad discretion to access workspace files and DB content — verify that only intended data is queried and archived.
Install Mechanism
There is no formal install spec in the registry (no automated download/extract), which reduces pipeline risk, but the package contains many Python scripts, a requirements.txt (pyodbc, PyYAML), and migration scripts that will be run by the user. That mismatch (no install step declared but code included) is a packaging/documentation inconsistency to be mindful of. No remote, opaque download URLs are present in the manifest.
Credentials
Registry metadata lists no required env vars, yet SKILL.md/README and code expect SQL credentials (SQL_PASSWORD or .env keys such as SQL_CLOUD_PASSWORD/SQL_LOCAL_PASSWORD) and optionally CONFLUENCE_API_TOKEN. Asking for database credentials is appropriate for a DB-backed skill, but the package fails to declare these requirements in metadata — this omission impairs safe review and least-privilege decisions. Consider using a limited, read-only DB account for the pre-dream feed and a separate write account for archiving, and avoid giving global DB admin credentials.
Persistence & Privilege
The skill is not force-enabled (always: false) and uses normal autonomous invocation (disable-model-invocation: false). It doesn't request to modify other skills or global agent settings. It does perform persistent writes to your SQL database and remove old files per config, which is within the declared scope.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sql-dreamer - 安装完成后,直接呼叫该 Skill 的名称或使用
/sql-dreamer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial publication. SQL-backed memory corpus feeder and dream output archiver for OpenClaw. Replaces file-based memory ingestion with curated SQL queries, archives dream phase outputs to SQL.
元数据
常见问题
SQL Dreamer 是什么?
Feeds OpenClaw dreamer with high-importance memories from SQL, archives dream outputs back to SQL, and prunes old dream files automatically. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。
如何安装 SQL Dreamer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sql-dreamer」即可一键安装,无需额外配置。
SQL Dreamer 是免费的吗?
是的,SQL Dreamer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
SQL Dreamer 支持哪些平台?
SQL Dreamer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 SQL Dreamer?
由 Oblio(@oblio-falootin)开发并维护,当前版本 v0.1.0。
推荐 Skills