← ClaudeAtlas

pattern-engineer-securitylisted

Engineer-facing security guardrails for production code. The non-negotiables — env-only secrets, schema-validated input at the boundary, parameterized queries, HttpOnly+Secure+SameSite cookies, authorize-before-act + ownership checks, sanitized output + security headers, CSRF + per-route rate limits, redacted logs, locked dependencies, SSRF allowlists, locked-down CORS, HMAC webhook verification, OAuth state + PKCE. A quick-lookup catalogue keyed by the surface touched. Activate on code.
MartinKChen/harness-claude-code · ★ 0 · AI & Automation · score 72
Install: claude install-skill MartinKChen/harness-claude-code
# pattern-engineer-security Security guardrails for production-code authoring. This skill is a quiet reference catalogue — the agent reads it to know which patterns to follow, *not* a checklist to walk through with the user. Reviewer feedback is the user-facing channel for security findings; this skill exists so most findings never happen. ## When to activate - Writing or editing any production code that touches secrets, user input, queries, auth / sessions, output rendering, CSRF, rate limits, logging, errors, dependencies, outbound HTTP, webhooks, CORS, file uploads, or balance / quota / token mutations. - Do NOT activate for purely cosmetic changes (formatting, renaming an internal-only variable, comment edits) or conceptual questions that don't touch code. ## Project memory overlay After loading this skill, also check `$MAIN_ROOT/.claude/memory/patterns/pattern-engineer-security.md` in the consuming project (resolve `MAIN_ROOT="$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")"`). If present, load it as an **additive overlay** to the rules below; if absent, skip silently. See `memory-convention` for the full contract (additivity, severity floor, conflict surfacing). ## Always do (no exceptions) - **Validate every external input with a schema at the boundary** (Zod / Pydantic). Bound string lengths, numeric ranges, enum values. Trust internal callers; never trust the network. - **Parameterize every database query** — ORM or bound parameters. Neve