From lattice
Enforces security-conscious coding: trust boundary identification, input validation, injection prevention, secrets management, and defense-in-depth authorization. Activates when handling user input, auth, DB queries, external APIs, file ops, or on security review requests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:secure-codingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill support project-custom. Order:
Skill support project-custom. Order:
.lattice/config.yaml in repo rootpaths.secure_coding for custom doc pathmode:
mode: override (or no mode): Custom doc take full precedence.
Use instead embed default. Must be comprehensive -- sole reference.mode: overlay: Read embed ./references/defaults.md first, then apply
custom doc sections on top. Custom sections replace matching
sections in default (match by heading). New sections append after default../references/defaults.mdpaths.language_idioms exist in config, read "Error Handling" section and adapt §1 (Trust Boundary Identification) error message patterns to language idioms. Language idioms take precedence over pseudocode defaults.STOP after gen each component. Verify ALL before proceed. If check clearly fail, fix code before present. If check judgment call with multiple valid approach (see Ambiguity Signals), flag — present options and reasoning rather than silent choose.
STOP: After verify checklist above, scan output for specific anti-pattern. If find any, fix before present code.
Check often have multiple valid outcome. When encounter, present option rather than silent choose.
Govern security posture of generated code — trust boundaries, input validation, injection prevention, secrets, authorization.
Boundary with clean-code: clean-code governs error message craft; this skill governs what error messages must not reveal (internal detail).
Boundary with architecture: architecture defines where checks live (service layer, not controller); this skill defines what to check (identity confirmed, permission granted, resource owned).
See ./references/defaults.md.
npx claudepluginhub techygarg/lattice --plugin latticeApplies proactive security hardening at trust boundaries: input validation, auth, sensitive data, external APIs, file uploads. Includes OWASP Top 10 quick reference and a three-tier boundary system.
Hardens code against vulnerabilities using threat modeling (STRIDE) and security best practices. Use when handling user input, authentication, data storage, or external integrations.
Runs rigid security checks for code crossing trust boundaries: parsing user input, building SQL/shell commands, handling secrets/credentials, hashing passwords, changing auth checks, deserializing untrusted data, constructing paths/URLs.