← 返回 Skills 市场
wufei-png

opencode-session-toolkit-cn

作者 Wu Fei · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
97
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install opencode-session-toolkit-cn
功能描述
读取本地 OpenCode SQLite 数据库,支持跨目录会话查询、消息检查与 Markdown 导出。
安全使用建议
What to check before installing/use: 1) Confirm the `opencode` CLI is installed and accessible in PATH (SKILL.md and the script call `opencode db path`)—the skill metadata did not declare this required binary. 2) The SKILL.md examples use the `sqlite3` CLI and `column` for display; these are optional but useful—install them if you plan to run the shell examples. 3) The included Python script opens the DB read-only and sanitizes filenames, but it will write Markdown files to whatever --output-dir you provide—run it on a copy or in a safe test directory first. 4) The script's shebang references a nonstandard runner ("uv run --script"); if that runner is not present, run the script explicitly with a supported Python (it documents requires-python >=3.11). 5) Inspect the script yourself (it is short and local) to confirm it meets your expectations—there are no network calls, but session/message contents can contain sensitive data, so exported Markdown may include secrets. 6) Because registry metadata omitted the `opencode` binary requirement, treat that as a documentation bug; demand the author add required-binaries to the skill manifest or verify the environment before use.
功能分析
Type: OpenClaw Skill Name: opencode-session-toolkit-cn Version: 1.0.1 The opencode-session-toolkit is a legitimate utility designed to query and export local OpenCode SQLite database sessions to Markdown. It employs security best practices such as using read-only mode for database connections (sqlite3 -readonly and URI mode=ro) and sanitizing filenames to prevent directory traversal in scripts/export_opencode_sessions.py. No evidence of data exfiltration, unauthorized network access, or malicious prompt injection was found.
能力评估
Purpose & Capability
The name/description match the included Python exporter and SKILL.md examples: the skill reads an OpenCode SQLite DB and exports sessions to Markdown. However, SKILL.md and the script expect an `opencode` CLI (used to resolve the DB path) and many examples show use of the `sqlite3` CLI and `column` formatting; the registry metadata declared no required binaries. The missing declaration for `opencode` (and the example use of sqlite3/column) is an inconsistency that should be fixed.
Instruction Scope
Runtime instructions and the script confine themselves to local-only operations: resolve the OpenCode DB path, open it in read-only mode, run SQL queries, and write Markdown files to the specified output directory. The instructions do reference searching common XDG_DATA_HOME paths and reading the provided references/schema.md; they do not instruct network calls or exfiltration. Note: the examples use the `sqlite3` CLI and `column` for display, while the exporter uses Python's sqlite3 module—both are read-only in intent.
Install Mechanism
This is an instruction-only skill with an included Python script (no install spec). That is low-risk, but the script's shebang is unusual ("#!/usr/bin/env -S uv run --script") which implies a nonstandard runner named 'uv' may be expected. The script also documents a Python requirement (>=3.11) in a comment. Because there is no install spec, users must ensure an appropriate Python runtime and the expected CLI tools are present.
Credentials
The skill requests no credentials or environment variables. It does read environment paths (XDG_DATA_HOME, HOME) and may be given an explicit DB path by the user. No secrets or unrelated credentials are requested. The exporter opens the DB in read-only mode for queries only.
Persistence & Privilege
The skill does not request permanent presence (always:false). agents/openai.yaml allows implicit invocation (normal). The skill does not modify other skills or global agent configuration. It writes Markdown files only to the user-specified output directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install opencode-session-toolkit-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /opencode-session-toolkit-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
opencode-session-toolkit-cn 1.0.1 - 新增详细 SKILL.md,介绍本地 OpenCode SQLite 数据库的读取与导出方案 - 提供跨目录 session、消息、project 等查询与过滤命令 - 详细说明常用 SQL 查询方法(标题、目录、project、时间范围等多条件过滤) - 新增一键会话 Markdown 导出脚本及常见用法示例 - 附带数据库 schema/表结构查看与时间字段格式化方法 - 明确数据敏感性注意事项及文件结构约定
元数据
Slug opencode-session-toolkit-cn
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

opencode-session-toolkit-cn 是什么?

读取本地 OpenCode SQLite 数据库,支持跨目录会话查询、消息检查与 Markdown 导出。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。

如何安装 opencode-session-toolkit-cn?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install opencode-session-toolkit-cn」即可一键安装,无需额外配置。

opencode-session-toolkit-cn 是免费的吗?

是的,opencode-session-toolkit-cn 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

opencode-session-toolkit-cn 支持哪些平台?

opencode-session-toolkit-cn 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 opencode-session-toolkit-cn?

由 Wu Fei(@wufei-png)开发并维护,当前版本 v1.0.1。

💬 留言讨论