[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74B8DMAYNJACJP8TNX641ZW":3,"skill-same:01M74B8DMAYNJACJP8TNX641ZW":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74B8DMAYNJACJP8TNX641ZW","supabase-best-practices",null,"Best practices for Supabase PostgreSQL, RLS policies, Edge Functions, and Realtime. Use when working with database schemas, queries, migrations, Row Level Security, storage, or any Supabase-related code.","aicreator350\u002FaurionOFFICIELLE","aicreator350","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F217751428?v=4","01M731QVHB22WCM6PDX5VFN1RV","01M731QVJ0TAD058M1SW9MY548",0,"MIT","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsupabase-best-practices\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: supabase-best-practices\ndescription: Best practices for Supabase PostgreSQL, RLS policies, Edge Functions, and Realtime. Use when working with database schemas, queries, migrations, Row Level Security, storage, or any Supabase-related code.\n---\n\n# Supabase Best Practices for Aurion Studio\n\n## Database Design\n- Use UUIDs for primary keys (`gen_random_uuid()`)\n- Always add `created_at TIMESTAMPTZ DEFAULT now()` and `updated_at` columns\n- Use snake_case for table and column names\n- Add proper indexes for frequently queried columns\n- Use `BIGINT` for credit\u002Ffinancial values (avoid floating point)\n\n## Row Level Security (RLS)\n- ALWAYS enable RLS on every table: `ALTER TABLE [table] ENABLE ROW LEVEL SECURITY`\n- Create policies for each operation (SELECT, INSERT, UPDATE, DELETE)\n- Use `auth.uid()` for user-scoped access\n- Pattern: `CREATE POLICY \"Users can read own data\" ON [table] FOR SELECT USING (auth.uid() = user_id)`\n- Service role key bypasses RLS — never expose client-side\n- Test policies: query as authenticated user AND as anon to verify isolation\n\n## Migrations\n- File naming: `supabase\u002Fmigrations\u002FYYYYMMDD_description.sql`\n- Always include rollback commands as comments\n- Test migrations in a staging environment first\n- Never modify existing migrations — create new ones\n- Use transactions for multi-statement migrations\n\n## Queries\n- Use parameterized queries ONLY (prevents SQL injection)\n- Supabase client: `.from('table').select('*').eq('user_id', userId)`\n- Avoid `.select('*')` in production — select only needed columns\n- Use `.single()` when expecting exactly one row\n- Handle errors: `const { data, error } = await supabase.from(...)`\n\n## Edge Functions\n- Keep functions small and focused\n- Use the middleware pattern from `api\u002F_lib\u002F`\n- Validate all inputs at the boundary\n- Return proper HTTP status codes\n- Rate limit sensitive endpoints\n\n## Realtime\n- Subscribe only to needed channels\n- Unsubscribe on component unmount\n- Use channel-specific subscriptions, not table-wide\n- Handle reconnection gracefully\n\n## Storage\n- Set bucket policies matching RLS patterns\n- Use signed URLs for private files\n- Validate file types and sizes before upload\n- Clean up orphaned files periodically\n\n## Aurion-Specific Patterns\n- Credits system: `user_credits` table with atomic `deduct_credits()` function\n- Auth bridge: Clerk JWT → `TOOL_AUTH_SECRET` → Supabase RLS\n- Monthly reset: lazy check on `period_end` in `deduct_credits()`\n- Reconciliation: `reconcile_credits()` after each AI request\n","# Supabase Best Practices for Aurion Studio\n\n## Database Design\n- Use UUIDs for primary keys (`gen_random_uuid()`)\n- Always add `created_at TIMESTAMPTZ DEFAULT now()` and `updated_at` columns\n- Use snake_case for table and column names\n- Add proper indexes for frequently queried columns\n- Use `BIGINT` for credit\u002Ffinancial values (avoid floating point)\n\n## Row Level Security (RLS)\n- ALWAYS enable RLS on every table: `ALTER TABLE [table] ENABLE ROW LEVEL SECURITY`\n- Create policies for each operation (SELECT, INSERT, UPDATE, DELETE)\n- Use `auth.uid()` for user-scoped access\n- Pattern: `CREATE POLICY \"Users can read own data\" ON [table] FOR SELECT USING (auth.uid() = user_id)`\n- Service role key bypasses RLS — never expose client-side\n- Test policies: query as authenticated user AND as anon to verify isolation\n\n## Migrations\n- File naming: `supabase\u002Fmigrations\u002FYYYYMMDD_description.sql`\n- Always include rollback commands as comments\n- Test migrations in a staging environment first\n- Never modify existing migrations — create new ones\n- Use transactions for multi-statement migrations\n\n## Queries\n- Use parameterized queries ONLY (prevents SQL injection)\n- Supabase client: `.from('table').select('*').eq('user_id', userId)`\n- Avoid `.select('*')` in production — select only needed columns\n- Use `.single()` when expecting exactly one row\n- Handle errors: `const { data, error } = await supabase.from(...)`\n\n## Edge Functions\n- Keep functions small and focused\n- Use the middleware pattern from `api\u002F_lib\u002F`\n- Validate all inputs at the boundary\n- Return proper HTTP status codes\n- Rate limit sensitive endpoints\n\n## Realtime\n- Subscribe only to needed channels\n- Unsubscribe on component unmount\n- Use channel-specific subscriptions, not table-wide\n- Handle reconnection gracefully\n\n## Storage\n- Set bucket policies matching RLS patterns\n- Use signed URLs for private files\n- Validate file types and sizes before upload\n- Clean up orphaned files periodically\n\n## Aurion-Specific Patterns\n- Credits system: `user_credits` table with atomic `deduct_credits()` function\n- Auth bridge: Clerk JWT → `TOOL_AUTH_SECRET` → Supabase RLS\n- Monthly reset: lazy check on `period_end` in `deduct_credits()`\n- Reconciliation: `reconcile_credits()` after each AI request\n",{"name":5,"description":7},"main","5593cf3c72898ea9fc67225d452fe38f866ba6dd",".claude\u002Fskills\u002Fsupabase-best-practices","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE","https:\u002F\u002Fgithub.com\u002Faicreator350","2026-05-18 03:39:30",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add aicreator350\u002FaurionOFFICIELLE --skill supabase-best-practices",{"tool":35,"command":36},"bunx","bunx skills add aicreator350\u002FaurionOFFICIELLE --skill supabase-best-practices",{"tool":38,"command":39},"pnpm","pnpm dlx skills add aicreator350\u002FaurionOFFICIELLE --skill supabase-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsupabase-best-practices\u002FSKILL.md",true,[],[44,53,60,67,74,81],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":48,"licenseFileUrl":49,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M74CAJWR9WB6DX1HF2V461Y0","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M74CAFWC2H75GJ81B39C9RSW","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M74CA9N2HTGCKJ93AE9NQMHA","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M74CA364D4EVDXZZQRVK1Z73","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M74C9YQZX1GVS18V0AYCYPZE","vercel-composition-patterns","React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-composition-patterns\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M74C9SEYD6F764Q1JACZX3A6","vercel-cli-with-tokens","Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. \"deploy to vercel\", \"set up vercel\", \"add environment variables to vercel\".","https:\u002F\u002Fgithub.com\u002Faicreator350\u002FaurionOFFICIELLE\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-cli-with-tokens\u002FSKILL.md",[],[]]