← Back to Skills Marketplace
cyz9827

safety-kb-query.

by cyz9827 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
64
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install safety-kb-query
Description
安全生产法规知识库查询工具。当用户需要查标准是否存在、搜索法规、对比标准清单、查看条款内容、统计知识库规模、检查数据质量时使用。触发词:查知识库、搜法规、标准存在吗、对比标准、查条款、KB查询、safety-review、法规检索、标准时效、数据质量检查
Usage Guidance
This skill appears to do what it says: read-only queries against a local SQLite knowledge DB. Before installing, verify: 1) the database path the skill will use (DEFAULT_DB_PATH / KB_PATH) points to the correct knowledge.db and not to any unrelated or sensitive database; 2) inspect scripts/kb_query.py yourself (it's short and uses only sqlite3/os/json/no networking); 3) run the script in a restricted environment or with a copy of the DB if you want to be cautious; and 4) if you expect the DB on a non-Windows host, adjust the default path or set KB_PATH accordingly. If any of these checks raise concerns (e.g., KB_PATH already set to a secret DB), do not install or run the skill until corrected.
Capability Analysis
Type: OpenClaw Skill Name: safety-kb-query Version: 1.0.0 The safety-kb-query skill is a legitimate utility for querying a local SQLite database containing safety regulations. The Python script (scripts/kb_query.py) implements standard database operations such as searching, schema inspection, and data quality checks using parameterized SQL queries to prevent injection. The instructions in SKILL.md are consistent with the code's functionality, and there are no indicators of data exfiltration, malicious execution, or unauthorized access.
Capability Assessment
Purpose & Capability
Name/description (safety KB query) match the implementation: the included script opens a local SQLite database and implements search, check, info, clauses, stats, schema, and conflicts commands. The declared functionality (read/query only) aligns with what the code does.
Instruction Scope
SKILL.md and the script instruct running the local Python CLI against a local DB path. The skill supports overriding the DB via KB_PATH env var (optional); the README default DB path uses a Windows-style path referencing user '13503' while the code uses a tilde-expanded path — minor inconsistency but not a functional mismatch. The script only reads local DB tables and does not reference external network endpoints or other system credentials.
Install Mechanism
No install spec or external downloads. The skill is instruction + a single Python script that runs on the host; nothing is written to disk by an installer and no external packages or URLs are fetched by the skill.
Credentials
No required environment variables or credentials are declared. The skill accepts an optional KB_PATH environment variable to point to the DB; this is reasonable but means the script will open whichever SQLite file path is provided. Users should avoid pointing KB_PATH to unrelated or sensitive databases (the script will read any SQLite file it can access).
Persistence & Privilege
always is false and the skill is read-only; it does not attempt to modify other skills or system-wide settings. Autonomous invocation is allowed (platform default) but the skill's actions are limited to reading the specified DB.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install safety-kb-query
  3. After installation, invoke the skill by name or use /safety-kb-query
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
:安全生产法规知识库查询工具,支持标准存在性检查、条款搜索、数据质量检测
Metadata
Slug safety-kb-query
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is safety-kb-query.?

安全生产法规知识库查询工具。当用户需要查标准是否存在、搜索法规、对比标准清单、查看条款内容、统计知识库规模、检查数据质量时使用。触发词:查知识库、搜法规、标准存在吗、对比标准、查条款、KB查询、safety-review、法规检索、标准时效、数据质量检查. It is an AI Agent Skill for Claude Code / OpenClaw, with 64 downloads so far.

How do I install safety-kb-query.?

Run "/install safety-kb-query" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is safety-kb-query. free?

Yes, safety-kb-query. is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does safety-kb-query. support?

safety-kb-query. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created safety-kb-query.?

It is built and maintained by cyz9827 (@cyz9827); the current version is v1.0.0.

💬 Comments