Skip to main content

cgw-security

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 only claims the secret half (keys, tokens, private keys, anything whose leak matters). Covers the 15 hard rules drawn from this repo's real security incidents - guard placement on state-changing and caller-scoped routes, identity only via SIWE signature recovery or a verified JWT, replay protection, request.ip instead of X-Forwarded-For, timingSafeEqual, KMS field encryption, input sanitization, structured-logging field whitelists. Triggers on "auth", "guard", "token", "signature", "secret", "env var", "PII", "encrypt", "rate limit", "who is the caller", and on any request phrased as a permission - "let a user do X to their own Y", "only the owner should be able to", "can this user", "members only

Jump to install

Source facts

Repository
safe-global/safe-client-gateway
Last source activity
August 7, 2026 at 12:46
Detected SKILL.md language
English
Stars
50
Forks
102

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.