← Back to Skills Marketplace
192
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install rust-db-contracts
Description
Rust + SeaORM 数据库显式契约规范。当项目涉及 Rust + SeaORM 数据库开发时自动激活。 核心:Entity 文件完全表达数据表,消灭隐式契约。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install rust-db-contracts - After installation, invoke the skill by name or use
/rust-db-contracts - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Rust + SeaORM Database Explicit Contracts?
Rust + SeaORM 数据库显式契约规范。当项目涉及 Rust + SeaORM 数据库开发时自动激活。 核心:Entity 文件完全表达数据表,消灭隐式契约。 It is an AI Agent Skill for Claude Code / OpenClaw, with 192 downloads so far.
How do I install Rust + SeaORM Database Explicit Contracts?
Run "/install rust-db-contracts" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Rust + SeaORM Database Explicit Contracts free?
Yes, Rust + SeaORM Database Explicit Contracts is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Rust + SeaORM Database Explicit Contracts support?
Rust + SeaORM Database Explicit Contracts is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Rust + SeaORM Database Explicit Contracts?
It is built and maintained by Xiamu-ssr (@xiamu-ssr); the current version is v1.0.0.
More Skills