[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7NFXHTW7KRBASZC4WAG10":3,"skill-same:01M7A7NFXHTW7KRBASZC4WAG10":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7A7NFXHTW7KRBASZC4WAG10","supabase-best-practices",null,"Supabase security and performance guidelines with Clerk authentication integration. Contains 40+ rules across 10 categories covering RLS policies, Clerk setup, database security, and more.","romangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade","romangalaxys10-spec","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230808079?v=4","01M7A65QN95R0ZG04ME5N8YSSM","RyzenCode","01M7A65QNYHY47K8V4WXFSW1RQ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-best-practices\u002Fskill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: supabase-best-practices\ndescription: Supabase security and performance guidelines with Clerk authentication integration. Contains 40+ rules across 10 categories covering RLS policies, Clerk setup, database security, and more.\nlicense: MIT\nmetadata:\n  author: AI Engineering Team\n  version: \"1.0.1\"\n  last_updated: \"2025-01-27\"\n---\n\n# Supabase Best Practices\n\nComprehensive security and performance optimization guide for Supabase applications with Clerk authentication integration. Contains 40+ rules across 10 categories, prioritized by impact to guide secure development and code review.\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a new Supabase project\n- Integrating Clerk authentication with Supabase\n- Writing Row Level Security (RLS) policies\n- Designing database schemas\n- Implementing real-time features\n- Configuring Storage buckets\n- Writing Edge Functions\n- Reviewing code for security issues\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Row Level Security | CRITICAL | `rls-` |\n| 2 | Clerk Integration | CRITICAL | `clerk-` |\n| 3 | Database Security | HIGH | `db-` |\n| 4 | Authentication Patterns | HIGH | `auth-` |\n| 5 | API Security | HIGH | `api-` |\n| 6 | Storage Security | MEDIUM-HIGH | `storage-` |\n| 7 | Realtime Security | MEDIUM | `realtime-` |\n| 8 | Edge Functions | MEDIUM | `edge-` |\n| 9 | Testing | MEDIUM | `test-` |\n| 10 | Security | MEDIUM | `security-` |\n\n## Quick Reference\n\n### 1. Row Level Security (CRITICAL)\n\n- `rls-always-enable` - Always enable RLS on public schema tables\n- `rls-wrap-functions-select` - Wrap auth functions with (SELECT ...) for performance\n- `rls-add-indexes` - Add indexes on columns used in RLS policies\n- `rls-specify-roles` - Specify roles with TO authenticated clause\n- `rls-security-definer` - Use SECURITY DEFINER functions for complex policies\n- `rls-minimize-joins` - Minimize joins in RLS policies\n- `rls-explicit-auth-check` - Use explicit auth.uid() checks\n- `rls-restrictive-policies` - Use RESTRICTIVE policies for additional constraints\n\n### 2. Clerk Integration (CRITICAL)\n\n- `clerk-setup-third-party` - Use Third-Party Auth integration (not JWT templates)\n- `clerk-client-server-side` - Use accessToken callback for server-side clients\n- `clerk-client-client-side` - Use useSession() hook for client-side clients\n- `clerk-role-claim` - Configure role: authenticated claim in Clerk\n- `clerk-org-policies` - Use organization claims for multi-tenant RLS\n- `clerk-mfa-policies` - Enforce MFA with RESTRICTIVE policies\n- `clerk-no-jwt-templates` - Never use deprecated JWT template integration\n\n### 3. Database Security (HIGH)\n\n- `db-migrations-versioned` - Use versioned migrations for schema changes\n- `db-schema-design` - Follow proper schema design patterns\n- `db-indexes-strategy` - Implement proper indexing strategy\n- `db-foreign-keys` - Always use foreign key constraints\n- `db-triggers-security` - Secure trigger functions properly\n- `db-views-security-invoker` - Use SECURITY INVOKER for views\n\n### 4. Authentication Patterns (HIGH)\n\n- `auth-jwt-claims-validation` - Always validate JWT claims\n- `auth-user-metadata-safety` - Treat user_metadata as untrusted\n- `auth-app-metadata-authorization` - Use app_metadata for authorization\n- `auth-session-management` - Implement proper session management\n\n### 5. API Security (HIGH)\n\n- `api-filter-queries` - Always filter queries even with RLS\n- `api-publishable-keys` - Use publishable keys correctly\n- `api-service-role-server-only` - Never expose service role key to client\n\n### 6. Storage Security (MEDIUM-HIGH)\n\n- `storage-rls-policies` - Enable RLS on storage.objects\n- `storage-bucket-security` - Configure bucket-level security\n- `storage-signed-urls` - Use signed URLs for private files\n\n### 7. Realtime Security (MEDIUM)\n\n- `realtime-private-channels` - Use private channels for sensitive data\n- `realtime-rls-authorization` - RLS policies apply to realtime\n- `realtime-cleanup-subscriptions` - Clean up subscriptions on unmount\n\n### 8. Edge Functions (MEDIUM)\n\n- `edge-verify-jwt` - Always verify JWT in edge functions\n- `edge-cors-handling` - Handle CORS properly\n- `edge-secrets-management` - Use secrets for sensitive data\n\n### 9. Testing (MEDIUM)\n\n- `test-pgtap-rls` - Test RLS policies with pgTAP\n- `test-isolation` - Isolate tests properly\n- `test-helpers` - Use test helper functions\n\n### 10. Security (MEDIUM)\n\n- `security-validate-inputs` - Validate all inputs before processing\n- `security-audit-advisors` - Regularly run Security Advisor checks\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nreferences\u002Frules\u002Frls-always-enable.md\nreferences\u002Frules\u002Fclerk-setup-third-party.md\nreferences\u002Frules\u002F_sections.md\n```\n\nEach rule file contains:\n- Brief explanation of why it matters\n- Incorrect code example with explanation\n- Correct code example with explanation\n- When NOT to use the pattern\n- Reference links to official documentation\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `references\u002Fsupabase-guidelines.md`\n","# Supabase Best Practices\n\nComprehensive security and performance optimization guide for Supabase applications with Clerk authentication integration. Contains 40+ rules across 10 categories, prioritized by impact to guide secure development and code review.\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a new Supabase project\n- Integrating Clerk authentication with Supabase\n- Writing Row Level Security (RLS) policies\n- Designing database schemas\n- Implementing real-time features\n- Configuring Storage buckets\n- Writing Edge Functions\n- Reviewing code for security issues\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Row Level Security | CRITICAL | `rls-` |\n| 2 | Clerk Integration | CRITICAL | `clerk-` |\n| 3 | Database Security | HIGH | `db-` |\n| 4 | Authentication Patterns | HIGH | `auth-` |\n| 5 | API Security | HIGH | `api-` |\n| 6 | Storage Security | MEDIUM-HIGH | `storage-` |\n| 7 | Realtime Security | MEDIUM | `realtime-` |\n| 8 | Edge Functions | MEDIUM | `edge-` |\n| 9 | Testing | MEDIUM | `test-` |\n| 10 | Security | MEDIUM | `security-` |\n\n## Quick Reference\n\n### 1. Row Level Security (CRITICAL)\n\n- `rls-always-enable` - Always enable RLS on public schema tables\n- `rls-wrap-functions-select` - Wrap auth functions with (SELECT ...) for performance\n- `rls-add-indexes` - Add indexes on columns used in RLS policies\n- `rls-specify-roles` - Specify roles with TO authenticated clause\n- `rls-security-definer` - Use SECURITY DEFINER functions for complex policies\n- `rls-minimize-joins` - Minimize joins in RLS policies\n- `rls-explicit-auth-check` - Use explicit auth.uid() checks\n- `rls-restrictive-policies` - Use RESTRICTIVE policies for additional constraints\n\n### 2. Clerk Integration (CRITICAL)\n\n- `clerk-setup-third-party` - Use Third-Party Auth integration (not JWT templates)\n- `clerk-client-server-side` - Use accessToken callback for server-side clients\n- `clerk-client-client-side` - Use useSession() hook for client-side clients\n- `clerk-role-claim` - Configure role: authenticated claim in Clerk\n- `clerk-org-policies` - Use organization claims for multi-tenant RLS\n- `clerk-mfa-policies` - Enforce MFA with RESTRICTIVE policies\n- `clerk-no-jwt-templates` - Never use deprecated JWT template integration\n\n### 3. Database Security (HIGH)\n\n- `db-migrations-versioned` - Use versioned migrations for schema changes\n- `db-schema-design` - Follow proper schema design patterns\n- `db-indexes-strategy` - Implement proper indexing strategy\n- `db-foreign-keys` - Always use foreign key constraints\n- `db-triggers-security` - Secure trigger functions properly\n- `db-views-security-invoker` - Use SECURITY INVOKER for views\n\n### 4. Authentication Patterns (HIGH)\n\n- `auth-jwt-claims-validation` - Always validate JWT claims\n- `auth-user-metadata-safety` - Treat user_metadata as untrusted\n- `auth-app-metadata-authorization` - Use app_metadata for authorization\n- `auth-session-management` - Implement proper session management\n\n### 5. API Security (HIGH)\n\n- `api-filter-queries` - Always filter queries even with RLS\n- `api-publishable-keys` - Use publishable keys correctly\n- `api-service-role-server-only` - Never expose service role key to client\n\n### 6. Storage Security (MEDIUM-HIGH)\n\n- `storage-rls-policies` - Enable RLS on storage.objects\n- `storage-bucket-security` - Configure bucket-level security\n- `storage-signed-urls` - Use signed URLs for private files\n\n### 7. Realtime Security (MEDIUM)\n\n- `realtime-private-channels` - Use private channels for sensitive data\n- `realtime-rls-authorization` - RLS policies apply to realtime\n- `realtime-cleanup-subscriptions` - Clean up subscriptions on unmount\n\n### 8. Edge Functions (MEDIUM)\n\n- `edge-verify-jwt` - Always verify JWT in edge functions\n- `edge-cors-handling` - Handle CORS properly\n- `edge-secrets-management` - Use secrets for sensitive data\n\n### 9. Testing (MEDIUM)\n\n- `test-pgtap-rls` - Test RLS policies with pgTAP\n- `test-isolation` - Isolate tests properly\n- `test-helpers` - Use test helper functions\n\n### 10. Security (MEDIUM)\n\n- `security-validate-inputs` - Validate all inputs before processing\n- `security-audit-advisors` - Regularly run Security Advisor checks\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nreferences\u002Frules\u002Frls-always-enable.md\nreferences\u002Frules\u002Fclerk-setup-third-party.md\nreferences\u002Frules\u002F_sections.md\n```\n\nEach rule file contains:\n- Brief explanation of why it matters\n- Incorrect code example with explanation\n- Correct code example with explanation\n- When NOT to use the pattern\n- Reference links to official documentation\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `references\u002Fsupabase-guidelines.md`\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26,"last_updated":27},"AI Engineering Team","1.0.1","2025-01-27","main","d1b1a29ddb408336ea3867f7c9fbab956be7747e","skills\u002Fsupabase-best-practices","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec","2026-08-05 23:41:53",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add romangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade --skill supabase-best-practices",{"tool":40,"command":41},"bunx","bunx skills add romangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade --skill supabase-best-practices",{"tool":43,"command":44},"pnpm","pnpm dlx skills add romangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade --skill supabase-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-best-practices\u002Fskill.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7A7V2HMQJZPP0WZ79SKE1S0","vueuse","Use when working with VueUse composables - provides reactive utilities for state, browser APIs, sensors, network, animations. Check VueUse before writing custom composables - most patterns already implemented.","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvueuse\u002Fskill.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7A7V08QGTJZ35J34SYRKDG8","vue","Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props\u002Femits best practices, VueUse integration, and reactive destructuring guidance","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue\u002Fskill.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7A7TWW9V353Z6733K7T8VHH","vue-best-practices","Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue-best-practices\u002Fskill.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7A7SAC1X101H9XSBQQVZS3Z","ts-library","Use when authoring TypeScript libraries - covers project setup, package exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and release workflows. Patterns extracted from 20+ high-quality ecosystem libraries.","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fts-library\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7A7QSV5SNZ71J4407GZQCAZ","three-best-practices","Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fthree-best-practices\u002Fskill.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7A7J252EAQZ1EJXPFTZPW9E","agent-pipeline-builder","Build multi-agent pipelines with structured data flow between agents. Use when creating workflows where each agent has a specialized role and passes output to the next agent.","https:\u002F\u002Fgithub.com\u002Fromangalaxys10-spec\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fskills\u002Fagent-pipeline-builder\u002FSKILL.md",[],[]]