security-review

Reviews code against security checklists covering secrets, input validation, authentication, and cloud infrastructure.

Updated Jul 22, 2026
One-click install
npx skills add https://github.com/Chau165/local_skill --skill security-review-chau165
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review
Source: https://github.com/Chau165/local_skill/tree/main/plugins/ecc/skills/security-review
Command: npx skills add https://github.com/Chau165/local_skill --skill security-review-chau165

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents common vulnerabilities like hardcoded secrets, SQL injection, XSS, and misconfigured cloud infrastructure from reaching production by providing structured security checklists and code patterns. ## Core Features & Use Cases - Application Security Checklist: Covers secrets management, input validation with Zod, parameterized queries, JWT handling, XSS sanitization, CSRF protection, and rate limiting. - Cloud & Infrastructure Security: Provides IAM least-privilege patterns, secrets manager usage, VPC/firewall configuration, CI/CD pipeline hardening, and backup strategies for AWS, Vercel, and Cloudflare. - Use Case: When adding a new API endpoint that accepts user input and stores data in Supabase, activate this skill to validate input schemas, enforce row-level security, and verify no secrets are hardcoded before deployment. ## Quick Start Review my new authentication endpoint for security issues using the security checklist.

Frequently Asked Questions about security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent SQL injection in Node.js applications?

Always use parameterized queries or an ORM instead of string concatenation. With Supabase, use query builder methods like .eq('email', userEmail); with raw SQL, pass values as parameters like db.query('SELECT * FROM users WHERE email = $1', [userEmail]).

How should I store JWT tokens securely in a web app?

Store tokens in httpOnly cookies with Secure and SameSite=Strict flags, never in localStorage which is vulnerable to XSS. Set the cookie via response headers: Set-Cookie: token=...; HttpOnly; Secure; SameSite=Strict.

What security checks should run before deploying to AWS?

Verify IAM follows least privilege with MFA enabled, secrets live in AWS Secrets Manager with rotation, security groups restrict inbound ports, databases are not publicly accessible, CloudWatch logging is enabled, and automated backups are configured.

Does this checklist cover Supabase row level security?

Yes, it includes enabling RLS on all tables and creating policies so users can only select and update their own rows using auth.uid() = id. It also covers authorization role checks before sensitive operations.

Why is localStorage unsafe for authentication tokens?

localStorage is accessible to any JavaScript running on the page, so an XSS vulnerability lets attackers steal tokens. httpOnly cookies cannot be read by JavaScript, blocking this attack vector.

How do I secure CI/CD pipelines against credential leaks?

Use OIDC role assumption instead of long-lived credentials, run secret scanning tools like TruffleHog, audit dependencies with npm audit, enforce branch protection and code review, and grant workflows minimal permissions.