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에 표시된 보조 파일을 읽어 보세요.