rust-db-contractsRust + SeaORM 数据库显式契约规范。当项目涉及 Rust + SeaORM 数据库开发时自动激活。 核心:Entity 文件完全表达数据表,消灭隐式契约。
Install via ClawdBot CLI:
clawdbot install xiamu-ssr/rust-db-contractsGrade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Generated Jul 10, 2026
A SaaS platform needs to manage multiple tenants with consistent database schemas. Using SeaORM entities as the single source of truth, the platform can automatically create and migrate tables for each tenant without manual DDL scripts, ensuring all tenants have identical structures.
An e-commerce system tracks orders through states like Draft, Active, and Archived. By defining status enums with can_transition_to checks, the system enforces valid transitions and prevents invalid state changes (e.g., Archived back to Draft). Entity files document all rules clearly.
A healthcare app stores patient data with strict schema requirements (e.g., non-nullable fields, JSON for flexible medical history). Using Entity First, the schema is auto-synced from code, and nullable fields use Option<T>. Soft-delete flag filters active records, ensuring compliance.
A fintech application handles monetary transactions requiring atomic cross-table operations. Transactions wrapped in SeaORM's `db.transaction` ensure rollback on failure. Enums for transaction type (e.g., Credit, Debit) with transition rules prevent invalid sequences.
A CMS uses JSON fields for flexible content structure, defined as strong types with FromJsonQueryResult. Entity files include file-level doc comments describing versioning logic (e.g., soft-delete and revision tracking). Queries always filter out deleted records.
Offer the Rust + SeaORM contract framework as an open-source project for developers. Generate revenue through paid enterprise support, consulting services, and custom integrations for large-scale projects.
Provide consulting services to teams migrating from legacy SQL patterns to SeaORM Entity First. Help refactor codebases to enforce explicit contracts, with automated CI checks via the provided detection script.
Build a platform that uses the contract rules to auto-generate Rust backend code for database schemas. Offer it as a middleware that syncs entity definitions to cloud databases, with a subscription model for hosting and scaling.
💬 Integration Tip
Integrate the detection script into your CI pipeline to automatically enforce rules; for new projects, start by defining all entities first before writing any business logic.
Scored Jul 10, 2026
基于睿观的产品图片政策合规检测,通过视觉相似度匹配识别潜在违规商品。当用户提到政策合规检查、产品图片合规、违规检测、禁售商品筛查、基于图片的合规审查、上架前风险排查、policy compliance detection, product compliance review, violation detectio...
AI 合同风险审查服务。当用户需要审查合同、检查法律风险、分析合同条款、 审阅法律文书时使用本技能。覆盖违约责任、知识产权、付款条件、验收标准、 保密义务、管辖法院等15类法律风险。支持快速扫描和深度审查两档服务。 触发词:合同审查、审核合同、检查合同、法律风险、条款分析、法务审查、 合同风险、审合同、法律审查、...
产品图片的图形商标检测与相似度搜索。当用户提到商标检测、图形商标搜索、Logo侵权检查、商标相似度分析、图片商标风险评估、产品图片商标筛查、graphic trademark detection, logo infringement, trademark similarity, trademark risk, i...
面向电商产品Listing的文字商标检测与侵权风险分析。当用户提到商标检测、商标风险检查、品牌侵权筛查、产品标题商标扫描、文字商标查询、Listing合规检查、知识产权风险评估、text trademark detection, trademark infringement, brand infringement...
GDPR and German DSGVO compliance automation. Scans codebases for privacy risks, generates DPIA documentation, tracks data subject rights requests. Use for GD...
Deterministic governance layer for OpenClaw tool execution. Enforces tool allowlists, deny patterns, path allowlists, risk tiers, dry-run mode, and escalatio...