security-practices

Installation
SKILL.md

security-practices — Security practices and sensitive-data handling

Purpose

Protect secrets, sensitive data (PII) and database integrity when writing, reviewing or auditing code in any stack. It contributes hard rules and, above all, actively remediates recurring anti-patterns instead of merely stating them. The AI never silences a security finding: it flags it.

Knowledge

Secrets — per-environment rule (strict in prod, UAT allowed in dev)

Hard rule. Applies to passwords, API keys, credentials, tokens, private keys.

  • PROD — never literal. No secret or endpoint in the clear in code, versioned files (application-prod.yml, .env, .npmrc, credentials.json, keys) or logs: everything via environment variable / ${ENV} placeholder / secret manager (${DB_PASSWORD}, ${URL_SERVICE_*}).
  • DEV — UAT allowed. Hardcoding is OK only for UAT/testing (non-prod) values: UAT creds, staging URLs/endpoints (feign.service.*). They are not production secrets → committing them is not a finding. Never a PROD credential in a dev file (or anywhere).
  • On finding a prod secret/cred in the input or a file: alert the user and flag it with a comment (# FIXME: move to ${ENV}) — never silence it, never replace the value in place, never copy it elsewhere. The human does the replacement.

Recurring anti-pattern to flag, never propagate — the problem is the prod/real cred in a versioned file, not the UAT value in dev:

Installs
4
First Seen
Sep 29, 2026