← 返回 Skills 市场
Sql To Doc
作者
runkecheng
· GitHub ↗
· v1.0.0
· MIT-0
101
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sql-to-doc
功能描述
执行SQL查询并将结果按照指定模板整理后写入飞书云文档。适用于数据周报、数据汇总、统计报告等场景。
安全使用建议
This skill looks plausible for automating DataWorks→Feishu reports, but there are inconsistencies you should resolve before installing or granting credentials:
- Ask the publisher why no Feishu credentials are declared. Creating Feishu docs and sending IMs normally requires Feishu app tokens (APP_ID/APP_SECRET or API token). Do not provide broad Feishu or platform tokens until you confirm exact required scopes.
- Confirm what META_CENTER_TOKEN grants. Limit tokens to least privilege (only access to the specific DataWorks project and read-only SQL execution if possible).
- Request details about the 'feishu_create_doc' and 'feishu_im_user_message' helpers: are they platform-provided, audited internal actions, or custom scripts? Prefer well-known, documented integration points.
- Because the skill uses exec to call DataWorks OpenAPI, test it first in a safe environment (non-production project) to confirm it only runs intended queries.
- Prefer a published source or homepage and a verifiable owner. The package has unknown source — that raises supply-chain risk.
If the publisher provides the missing credential requirements, limited-scope tokens, and a clear explanation of the helper tools, the skill would be more coherent. Until then treat it with caution and avoid exposing high-privilege credentials.
功能分析
Type: OpenClaw Skill
Name: sql-to-doc
Version: 1.0.0
The sql-to-doc skill (SKILL.md) enables arbitrary SQL execution on MaxCompute and Jinja2 template rendering to automate Feishu document creation. These are high-risk capabilities that introduce potential for SQL injection and Server-Side Template Injection (SSTI), though they appear aligned with the stated purpose. No evidence of intentional malice, unauthorized data exfiltration, or prompt injection was found.
能力评估
Purpose & Capability
The skill claims to create Feishu cloud documents and send Feishu IM notifications, but requires only META_CENTER_TOKEN and DATAWORKS_PROJECT. There is no declared Feishu credential (e.g., FEISHU_TOKEN, APP_ID/APP_SECRET) even though the instructions call feishu_create_doc and feishu_im_user_message. This is an incoherence: creating documents in Feishu normally requires Feishu auth.
Instruction Scope
SKILL.md instructs the agent to execute SQL via DataWorks OpenAPI (via exec), transform results into Python objects, render Jinja2 templates, and call Feishu creation/notification tools. The instructions assume availability of Jinja2 and of feishu_* helper actions. They do not reference or limit what 'exec' will run, which grants broad discretion to run arbitrary commands against DataWorks OpenAPI — expected for the task but worth noting. The instructions do not ask to read unrelated system files, but they rely on implicit runtime tools and credentials that are not declared.
Install Mechanism
No install spec and no code files (instruction-only). This reduces the risk of arbitrary code being written to disk. No third-party packages are being fetched by the skill itself.
Credentials
Only META_CENTER_TOKEN and DATAWORKS_PROJECT are declared. For full functionality, additional credentials (Feishu app token/credentials, or other DataWorks auth) are typically required. META_CENTER_TOKEN's scope is unspecified — it could grant wide access beyond what's needed. The minimal declared envs do not justify the Feishu operations described, creating a proportionality mismatch.
Persistence & Privilege
always is false and there is no install step that writes persistent files or modifies other skills. The skill can be invoked autonomously by the agent (default), which is normal; this is not combined with 'always: true' or other elevated persistence requests.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sql-to-doc - 安装完成后,直接呼叫该 Skill 的名称或使用
/sql-to-doc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布:提供“SQL查询→模板整理→飞书文档写入”完整流程自动化。
- 支持连接 MaxCompute/DataWorks 执行 SQL 并用 Jinja2 模板整理结果。
- 可将整理后的数据自动写入飞书知识库或云空间,并返回文档链接。
- 支持全流程参数配置,包括 SQL、模板、文档标题、目标位置及通知对象。
- 适用于周报自动生成、数据汇总统计、一次性报告等多种场景。
元数据
常见问题
Sql To Doc 是什么?
执行SQL查询并将结果按照指定模板整理后写入飞书云文档。适用于数据周报、数据汇总、统计报告等场景。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 101 次。
如何安装 Sql To Doc?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sql-to-doc」即可一键安装,无需额外配置。
Sql To Doc 是免费的吗?
是的,Sql To Doc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Sql To Doc 支持哪些平台?
Sql To Doc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Sql To Doc?
由 runkecheng(@runkecheng)开发并维护,当前版本 v1.0.0。
推荐 Skills