What problem does it solve?
This Skill ensures code adheres to Brief's established patterns, security requirements, and architectural decisions, preventing common vulnerabilities and maintaining code quality.
Core Features & Use Cases
- API Route Standards: Enforces Zod validation, authentication checks, and standardized error handling for API routes.
- Database Integrity: Guides developers on using Drizzle ORM with Supabase, emphasizing Row Level Security (RLS) and proper organization filtering.
- Security Best Practices: Details secure authentication methods (Clerk, API Keys), input validation with Zod, and common vulnerability prevention (XSS, IDOR).
- Architectural Decision Validation: Integrates with
brief ask --mode check to validate proposed changes against existing decisions.
- Component Reuse: Promotes the use of the TailStack design system (
@/components/ui/*) and proper component organization.
Quick Start
Use the patterns skill to validate the API route code for authentication and Zod schema compliance.