← 返回 Skills 市场
sql-reports
作者
kyawzo-ptcl
· GitHub ↗
· v1.0.0
· MIT-0
273
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sql-reports
功能描述
Connects to SQL Server to retrieve and generate monthly, quarterly, and yearly delivery order reports with performance comparisons and growth metrics.
安全使用建议
Do not run this skill against your environment without review. Specific concerns: (1) query.py contains plaintext DB credentials and a hard-coded server — treat these as sensitive and potentially invalid or stale; (2) SKILL.md and the code disagree on the database name and available queries, so functionality may be incomplete or incorrect; (3) running the script will print database rows (possibly sensitive PII/product data) to stdout. Before installing: ask the publisher for the correct architecture and for removal of embedded credentials; require credentials be provided via secure environment variables or a secrets store and documented in the skill metadata; validate the queries and least-privilege DB account; run any untrusted code in an isolated environment and audit network destinations. If these fixes are not made, consider the skill unsafe to use.
功能分析
Type: OpenClaw Skill
Name: sql-reports
Version: 1.0.0
The skill contains hardcoded database credentials (UID: 'ptcl-bot', PWD: 'ptcl-bot123') and targets a specific internal network server ('LTEDP056') in query.py. While the script appears to perform its stated function of generating delivery reports and uses parameterized queries to mitigate SQL injection, the inclusion of plaintext credentials and internal network targets represents a significant security risk and poor practice.
能力评估
Purpose & Capability
The skill's stated purpose (generate monthly/quarterly/yearly delivery reports) matches the presence of SQL query code, but there are inconsistencies: SKILL.md names the Database as 'DeliveryDB' while query.py uses 'PDFExtraction'; SKILL.md documents queries like 'monthly_comparison' and 'quarterly_report' that are not implemented in query.py. The core capability (querying SQL Server) is coherent but the documentation and implementation disagree.
Instruction Scope
SKILL.md tells the agent to connect to LTEDP056\SQLEXPRESS and install ODBC/pyodbc, which is appropriate for a SQL-reporting skill. However, SKILL.md does not mention credentials, while query.py contains a hard-coded connection string (server, DB, UID, PWD) and will print full query results to stdout. The instructions do not declare or constrain use of these embedded credentials or the sensitivity of the returned data.
Install Mechanism
No install specification is provided; this is an instruction+code skill that relies on Python and pyodbc. That is a low install risk (nothing is downloaded/installed by the skill itself).
Credentials
The code contains plaintext DB credentials (UID=ptcl-bot; PWD=ptcl-bot123) and a hard-coded server name, yet the skill declares no required environment variables or primary credential. Requesting/including credentials in the code (instead of using declared/env-provided secrets) is disproportionate and insecure. The skill also requires network access to an internal host, which is not explicitly represented in metadata.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system-wide privileges or modify other skills. Execution simply runs query.py and yields outputs; autonomous invocation is allowed by platform default but is not combined here with elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sql-reports - 安装完成后,直接呼叫该 Skill 的名称或使用
/sql-reports触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of SQL Reports skill.
- Connects to SQL Server (DeliveryDB) to extract and analyze delivery order data.
- Offers prebuilt queries: monthly summary, month-to-month comparison, quarterly report, and yearly summary.
- Designed for warehouse managers and logistics teams; requires no manual SQL writing.
- Command-line interface with straightforward usage instructions.
元数据
常见问题
sql-reports 是什么?
Connects to SQL Server to retrieve and generate monthly, quarterly, and yearly delivery order reports with performance comparisons and growth metrics. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 273 次。
如何安装 sql-reports?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sql-reports」即可一键安装,无需额外配置。
sql-reports 是免费的吗?
是的,sql-reports 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
sql-reports 支持哪些平台?
sql-reports 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 sql-reports?
由 kyawzo-ptcl(@kyawzo-ptcl)开发并维护,当前版本 v1.0.0。
推荐 Skills