security-secure-coding
Security workflow for secure-by-default coding decisions and vulnerability prevention in implementation changes. Use when application code paths process untrusted input, sensitive data, or privileged operations; do not use for policy-only governance without code impact.
Works with
--- name: security-secure-coding description: Security workflow for secure-by-default coding decisions and vulnerability prevention in implementation changes. Use when application code paths process untrusted input, sensitive data, or privileged operations; do not use for policy-only governance without code impact. license: Apache-2.0 --- # Security Secure Coding ## Overview Use this skill to prevent introducing exploitable code patterns and to enforce explicit security invariants during implementation. ## Scope Boundaries - New endpoints, parsers, deserializers, or command execution paths are added. - Sensitive data handling or trust-boundary crossing logic changes. - High-risk dependency or framework behavior needs secure usage decisions. ## Templates And Assets - Secure coding review checklist: - `assets/secure-coding-review-checklist.md` ## Inputs To Gather - Trust boundaries and untrusted input entry points. - Sensitive data flows and storage/transmission requirements. - Language/framework-specific risk patterns. - Existing test coverage and security tooling signals. ## Deliverables - Security invariants for the changed code path. - Mitigation mapping for relevant threat classes. - Targeted secure coding checks and tests. - Residual risk notes for deferred hardening work. ## Workflow 1. Identify attack surfaces for the change (input parsing, file/network access, auth context, templating). 2. Run checklist from `assets/secure-coding-review-checklist.md`. 3. Apply allowlist validation and context-appropriate encoding/sanitization at boundaries. 4. Remove or harden dangerous patterns (shell concatenation, unsafe deserialization, path traversal gaps, SSRF primitives). 5. Enforce explicit authorization checks in server-side handlers for sensitive operations. 6. Protect secrets and PII in logs, errors, and telemetry outputs. 7. Add or update negative tests for malicious payload classes. 8. Verify dependencies and transitive packages for known critical vulnerabilities. ## Quality Standard - Security-relevant assumptions are explicit in code and tests. - Error paths fail closed for sensitive operations. - No sensitive data leaks through logs or debug output. - High-risk operations are wrapped with deliberate validation and policy checks. ## Failure Conditions - Stop when trust-boundary validation is missing or implicit. - Stop when privileged operations execute without explicit authorization checks. - Escalate when unresolved critical vulnerabilities remain in production-bound paths.
More Code Review skills
pr-to-video
heygen-com/hyperframes
Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.
receiving-code-review
obra/superpowers
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
public-relations
coreyhaines31/marketingskills
When the user wants help with public relations, earned media, press coverage, journalist outreach, or media strategy (not pull requests). Also use when the user mentions 'PR,' 'public relations,' 'press,' 'press release,' 'press coverage,' 'media outreach,' 'pitch a journalist,' 'get featured,' 'media list,' 'media kit,' 'press kit,' 'newsjacking,' 'news hijack,' 'HARO,' 'Qwoted,' 'Featured,' 'Help A Reporter,' 'reporter request,' 'tech press,' 'TechCrunch,' 'earned media,' 'thought leadership placement,' 'op-ed,' 'guest article,' 'press contacts,' 'podcast prep,' 'going on a podcast,' 'podcast guest,' 'prep me for this podcast,' or 'how do I get press.' Use this for earned media work — finding journalists, pitching stories, newsjacking, prepping podcast appearances, and responding to press requests. For startup/SaaS/AI directory submissions, see directory-submissions. For product launches, see launch. For social-media engagement, see social. For cold-email outreach to prospects, see cold-email.

