security-sensitive-change-review

Audits code changes for authentication, authorization, and data security risks.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/COCOSiL-inc/COCOSiL_Analysis_V2 --skill security-sensitive-change-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-sensitive-change-review
Source: https://github.com/COCOSiL-inc/COCOSiL_Analysis_V2/tree/main/.claude/skills/security-sensitive-change-review
Command: npx skills add https://github.com/COCOSiL-inc/COCOSiL_Analysis_V2 --skill security-sensitive-change-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review changes that could accidentally weaken authentication, authorization, or exposure of secrets, and reduce the chance of unsafe migrations or risky deployments.

Core Features & Use Cases

  • Secret and environment safety checks: Verifies that secrets are not exposed and that server-only environment variables are accessed via getServerEnv() rather than process.env in unsafe contexts.
  • Auth/authz boundary validation: Confirms Clerk middleware routing changes do not broaden access unintentionally and that Supabase Row Level Security (RLS) policies cover all required actions.
  • Data access and destructive operation safeguards: Assesses migration safety, deployment risk, and whether audit logging is preserved, with special attention to protected Layer2 prompt/data areas.

Quick Start

Use the security-sensitive-change-review skill to audit a proposed change to Supabase RLS policies, Clerk middleware routing, Next.js API routes, or database/deployment steps.

Frequently Asked Questions about security-sensitive-change-review

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

FAQPage Schema
How do I check if a Supabase RLS policy change exposes data accidentally?

To review Supabase RLS policy changes for data exposure, audit whether all required actions (SELECT, INSERT, UPDATE, DELETE) maintain correct coverage and do not broaden access unintentionally. Verify that protected data areas remain secured before deploying.

How do I prevent environment variable exposure in Next.js server routes?

Preventing environment variable exposure in Next.js server routes requires verifying that secrets are accessed via getServerEnv() rather than process.env in unsafe contexts. Systematic checks ensure server-only variables remain protected during code changes.

What does a Clerk middleware routing change do to authentication boundaries?

A Clerk middleware routing change alters authentication boundaries by modifying access controls. Security review confirms these changes do not broaden access unintentionally and that protected routes remain properly gated before changes reach production.

How do I assess migration safety for destructive database operations?

Assessing migration safety for destructive database operations requires evaluating deployment risk, verifying audit logging preservation, and checking whether protected data areas are impacted. Systematic review prevents unsafe migrations from reaching production.

Does this security review work with Next.js API routes and deployment pipelines?

Yes, this security review applies to Next.js server routes, deployment steps, and infrastructure changes. It audits authentication, authorization, secrets, and data access modifications across these contexts to prevent insecure changes from shipping.

What are the limitations of auditing authentication and secret changes before deployment?

Auditing authentication and secret changes requires systematic checks across environment variables, migration safety, and policy coverage for all CRUD actions. Limitations arise when changes bypass reviewed contexts or involve unprotected data areas outside the audit scope.