← 返回 Skills 市场
192
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install rust-db-contracts
功能描述
Rust + SeaORM 数据库显式契约规范。当项目涉及 Rust + SeaORM 数据库开发时自动激活。 核心:Entity 文件完全表达数据表,消灭隐式契约。
安全使用建议
This skill appears to do what it says: it gives guidance and a local CI-check script to enforce SeaORM entity conventions and doesn't request secrets or install external code. Before you install or let an agent run it: (1) inspect references/check_db_contracts.sh yourself to confirm the grep patterns and paths match your repo layout; (2) do NOT execute the schema-sync example (db.get_schema_registry(...).sync(...)) against production — that example would mutate the database schema if run with real DB credentials; (3) run the check script in an isolated CI or local environment so it only scans your repository (it reads files under the provided src_dir); (4) if you allow autonomous agents to invoke skills, ensure they are not given access to production DB credentials or environments where schema-sync could be executed. If you want extra assurance, run the script locally on a test checkout first and review any CI integration changes before committing.
功能分析
Type: OpenClaw Skill
Name: rust-db-contracts
Version: 1.0.0
The skill bundle provides a set of coding standards and a static analysis script for Rust projects using SeaORM. The instructions in SKILL.md and the shell script in references/check_db_contracts.sh are focused on enforcing type safety, documentation, and architectural best practices (like mandatory transactions and soft-delete filtering) without any evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name/description (Rust + SeaORM explicit DB contracts) match the delivered artifacts: guidance (SKILL.md), an entity example, and a local shell script that scans Rust source for the described patterns. There are no unrelated binaries, env vars, or external services requested.
Instruction Scope
The SKILL.md stays on-topic (read entity files first, enforce patterns, preferred SeaORM usage). The included check_db_contracts.sh only scans the repository (defaults to ./src). One notable point: SKILL.md includes an example showing db.get_schema_registry(...).sync(db).await? — this code, if actually executed in a runtime with a real DB_URL, would perform automatic schema changes (CREATE/ALTER/RENAME). The skill does not itself run this, but the presence of that example is an operational risk if an agent or developer executes it against production.
Install Mechanism
No install spec; this is instruction-only with a single helper script. Nothing is downloaded or written to disk by an installer. The provided shell script is a local, static file and uses only standard POSIX tools (grep/sed/xargs).
Credentials
The skill declares no required env vars or credentials. The only implicit runtime concern is that Rust code snippets or an operator running the schema-sync example would need a DB URL/credentials from the environment — that is a normal development concern but not requested by the skill itself.
Persistence & Privilege
Flags show always: false and user-invocable true. The skill does not request persistent presence or elevated agent-wide privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install rust-db-contracts - 安装完成后,直接呼叫该 Skill 的名称或使用
/rust-db-contracts触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of rust-db-contracts: explicit database contract standard for Rust + SeaORM projects.
- Defines core conventions for Entity files as the single source of truth for database schemas.
- Introduces strict type mapping, mandatory status transition checks, and documentation standards.
- Enforces business constant centralization, transaction use for cross-table operations, and soft delete query filtering.
- Provides optional best practices and a detection script for CI integration.
- Lists prohibited patterns to prevent implicit or unsafe database contracts.
元数据
常见问题
Rust + SeaORM Database Explicit Contracts 是什么?
Rust + SeaORM 数据库显式契约规范。当项目涉及 Rust + SeaORM 数据库开发时自动激活。 核心:Entity 文件完全表达数据表,消灭隐式契约。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。
如何安装 Rust + SeaORM Database Explicit Contracts?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install rust-db-contracts」即可一键安装,无需额外配置。
Rust + SeaORM Database Explicit Contracts 是免费的吗?
是的,Rust + SeaORM Database Explicit Contracts 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Rust + SeaORM Database Explicit Contracts 支持哪些平台?
Rust + SeaORM Database Explicit Contracts 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Rust + SeaORM Database Explicit Contracts?
由 Xiamu-ssr(@xiamu-ssr)开发并维护,当前版本 v1.0.0。
推荐 Skills