.claude/skills/Database Operations/SKILL.md
Manage database operations, migrations, RLS policies, and performance optimization
npx skillsauth add nguyenmanhtuan2004/apis.locknlock Database OperationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform database operations using Supabase MCP integration or raw SQL.
Uses: @supabase/mcp (if available)
-- MANDATORY for all tables
ALTER TABLE <table_name> ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users view own data"
ON <table_name> FOR SELECT
USING (auth.uid() = user_id);
-- Migration: {sequence}_{description}
-- Date: {timestamp}
BEGIN;
-- Changes
CREATE TABLE IF NOT EXISTS new_table (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES users(id) NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW()
);
-- Enable RLS immediately
ALTER TABLE new_table ENABLE ROW LEVEL SECURITY;
-- Add policies
CREATE POLICY "Users access own rows"
ON new_table FOR ALL
USING (auth.uid() = user_id);
COMMIT;
"Using Supabase MCP, show:
- All tables in database
- Schema for {table_name}
- All RLS policies
Save: temp/database/schema.md"
"Using Supabase MCP:
Read: database/migrations/003_add_analytics.sql
Execute on database
Verify: Migration successful
Update: Migration log"
"Analyze database performance:
- Check table sizes
- Identify slow queries (>100ms)
- Find missing indexes
- Suggest optimizations
Output: temp/database/performance-report.md"
Remember: Security first! Always enable RLS and use parameterized queries.
testing
Comprehensive performance, security, and architectural guidelines for .NET 9 and C# 13 applications. Includes enterprise patterns from European and Japanese markets.
documentation
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
tools
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
testing
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.