Skip to main content

cgw-database

Use when writing a migration, adding or changing a TypeORM entity (*.entity.db.ts), or writing a database query in safe-client-gateway. Covers the raw-SQL migration convention, the rule that every foreign-key and WHERE-target column gets a CREATE INDEX in the same migration, no SELECT *, entity placement under datasources/entities/ with implements DomainX plus a RowSchema, TypeORM query-cache IDs needing paired invalidation on every write, and the integration-spec footgun where adding a repository constructor param breaks hand-constructed repos that the build typecheck does not cover. Triggers on "migration", "new table", "add a column", "drop a column", "index", "TypeORM", "entity.db", "SQL query", "database", "backfill". A column that is also served over the API is a four-representations change - load cgw-api-dtos alongside this one, because the domain schema, DTO classes and test builder change in the same PR as the migration.

跳到安装

来源信息

仓库
safe-global/safe-client-gateway
最近来源活动
2026年8月7日 12:46
检测到的 SKILL.md 语言
英语
星标
50
分支
102

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。