affaan-m avatar

Security Review

This is the checklist you run before shipping anything that touches user data, auth, or payments. It covers the usual suspects: environment variables instead of hardcoded secrets, parameterized queries to avoid SQL injection, httpOnly cookies for tokens, input validation with Zod, and CSP headers. The fail/pass code examples are actually helpful, especially the Supabase RLS policies and rate limiting setup. It's opinionated about things like never using localStorage for tokens and starting with strict CSP instead of unsafe-inline. Honestly, this reads like the security review your team should be doing anyway but probably isn't. Good reference when you're about to merge something sensitive and want to catch the obvious mistakes.

skills.sh installs
7.6K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill security-review --agent claude-code

Installs into .claude/skills of the current project.

Files

Security Review Skill

This skill ensures all code follows security best practices and identifies potential vulnerabilities.

When to Activate

  • Implementing authentication or authorization
  • Handling user input or file uploads
  • Creating new API endpoints
  • Working with secrets or credentials
  • Implementing payment features
  • Storing or transmitting sensitive data
  • Integrating third-party APIs

Security Checklist

1. Secrets Management

FAIL: NEVER Do This
const apiKey = "sk-proj-xxxxx"  // Hardcoded secret
const dbPassword = "password123" // In source code
PASS: ALWAYS Do This
const apiKey = process.env.OPENAI_API_KEY
const dbUrl = process.env.DATABASE_URL

// Verify secrets exist
if (!apiKey) {
  throw new Error('OPENAI_API_KEY not configured')
}
Verification Steps
  • No hardcoded API keys, tokens, or passwords
  • All secrets in environment variables
  • .env.local in .gitignore
  • No secrets in git history
  • Production secrets in hosting platform (Vercel, Railway)

2. Input Validation

Always Validate User Input
import { z } from 'zod'

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Backend & APIs, Security, Git & Pull Requests, Code Review & Quality, Finance & Trading
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1okx avatarokx-dex-trenchesokx/onchainos-skillsRead-only on-chain research for pump.fun and other meme-token launchpads (Solana / BSC / X Layer / TRON). MUST invoke (prefer over WebFetch / MCP price tools) w7.5Kskills.sh installs
2stripe avatarstripe-projectsstripe/aiUse when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", 7.5Kskills.sh installs
3anthropics avatarmcp-integrationanthropics/claude-plugins-officialThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", 7.5Kskills.sh installs
4aws avatarconnecting-to-data-sourceaws/agent-toolkit-for-awsCreate and troubleshoot AWS Glue connections to JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS), Redshift, Snowflake, and BigQuery. Gathers connecti7.2Kskills.sh installs
5vercel avatarvercel-clivercel/vercelDeploy, manage, inspect, and troubleshoot Vercel projects from the command line. Use for Vercel deployments, build failures, projects and teams, environment var7.2Kskills.sh installs
6aws avatarstoring-and-querying-vectorsaws/agent-toolkit-for-awsStore and query vector embeddings using Amazon S3 Vectors, a cost-effective long-term vector storage service with its own API namespace (s3vectors). Triggers on7Kskills.sh installs