safe-global

60 mods across 2 repositories, 639 stars between them.

PreToolUse

30

safe-global/safe-client-gateway

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From safe-global/safe-client-gateway.

50 today A tokens not measured

cgw-api-dtos

32

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when adding or changing an endpoint, a controller handler, a request or response DTO, a Zod schema, Swagger/OpenAPI annotations, or pagination in safe-client-gateway. Covers the ValidationPipe(ZodSchema)-on-every-input rule, the DTO pairing (Zod schema plus an @ApiProperty class declared implements z.infer), the…

50 today A 250 tokens

cgw-architecture

33

safe-global/safe-client-gateway

Skill Claude CodeCodex

The system map for safe-client-gateway - load it whenever a change spans more than one layer, or when you need to know what happens between the request arriving and the upstream call. Covers the request lifecycle (Fastify to guards to ValidationPipe to controller to route service to repository to datasource to…

50 today A 199 tokens

cgw-best-practices

34

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use before writing or changing TypeScript in safe-client-gateway PRODUCTION code (src/, excluding spec files) - the cross-cutting dos and don'ts that no domain guide owns and biome does not fully catch. Covers parse-don't-assert (no as X or as unknown as X on data whose shape the compiler cannot guarantee), no any and…

50 today A 226 tokens

cgw-commits-and-prs

35

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when writing a commit message, a PR title, or a PR body in safe-client-gateway, or when deciding whether a change is too large for one PR. Covers the Conventional Commits shape this repo uses, the nine allowed types and when each applies, module-name scopes, the fact that main is squash-merged so the PR title…

50 today A 140 tokens

cgw-config

36

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when adding or changing an environment variable, a feature flag, or any configuration read in safe-client-gateway. Covers the rule that every env var is declared in configuration.ts AND validated in RootConfigurationSchema with no fallback default for a secret, reading config via IConfigurationService.getOrThrow…

50 today A 162 tokens

cgw-database

37

safe-global/safe-client-gateway

Skill Claude CodeCodex

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…

50 today A 207 tokens

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when creating a new module in safe-client-gateway, moving or renaming files, naming a file or a class, versioning a controller, or wiring Symbol-based DI. Covers the canonical module skeleton (module file plus domain/ mandatory, routes/ only with endpoints, datasources/ only with an owned API), the naming table…

50 today A 169 tokens

cgw-nestjs-patterns

39

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when adding or changing a NestJS primitive in safe-client-gateway - a module, a provider registration, a guard, an interceptor, a pipe, an exception filter, a param decorator, or a DI wiring. Covers which of the four provider forms to use (useClass, useFactory, useValue, useExisting) and why useExisting is not…

50 today A 0 tokens

cgw-performance

40

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when a change in safe-client-gateway adds or modifies a cached read, a cache key, a TTL, an outbound upstream call, a datasource, a BullMQ job, or anything on a hot path. Covers the new-cached-call recipe (CacheRouter getter, CacheFirstDataSource with a config TTL and notFoundExpireTimeSeconds, clear() on every…

50 today A 194 tokens

cgw-remarks

41

safe-global/safe-client-gateway

Skill Claude CodeCodex

Lookup table of this repo's 30 recurring review remarks (R-001 onward), each quoted from real safe-client-gateway PR feedback. This is the supporting catalog that cgw-review consults, not the review standard itself - load it alongside cgw-review, or on its own to look up one specific pattern. Indexed by the shape a…

50 today A 217 tokens

cgw-review

42

safe-global/safe-client-gateway

Skill Claude CodeCodex

THE entry point for reviewing a diff or PR in safe-client-gateway, and for verifying your own completed work before committing or opening a PR - load this one first and let it pull in cgw-remarks as its catalog. Covers the repo's two-part review standard - Part 1 maps the diff to the applicable guides via the…

50 today A 188 tokens

cgw-security

43

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when a change in safe-client-gateway touches authentication, authorization, guards, signatures, JWTs, cookies, secrets, env-var declaration, PII, rate limiting, logging of request data, redirects, or upstream URL construction. For a plain non-secret env var or a feature flag, load cgw-config instead - this skill…

50 today A 257 tokens

cgw-testing

44

safe-global/safe-client-gateway

Skill Claude CodeCodex

Use when writing, changing, or debugging any test in safe-client-gateway - unit (.spec.ts), integration (.integration.spec.ts), or e2e - AND whenever a change to production code needs its tests updated, which is nearly every change, even when the request never mentions tests. Covers the builders-plus-faker rule (no…

50 today A 200 tokens