{"id":4332,"date":"2026-09-03T17:49:51","date_gmt":"2026-09-03T09:49:51","guid":{"rendered":"https:\/\/ai.jxgzhc.cn\/?p=4332"},"modified":"2026-09-03T17:49:56","modified_gmt":"2026-09-03T09:49:56","slug":"%e7%94%a8-postgres-%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e5%bc%80%e5%8f%91-supabase-%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/ai.jxgzhc.cn\/?p=4332","title":{"rendered":"\u7528 Postgres \u6700\u4f73\u5b9e\u8df5\u5f00\u53d1 Supabase \u5e94\u7528"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/ai.jxgzhc.cn\/wp-content\/uploads\/2026\/09\/supabase-agent-skills.webp\" alt=\"\u7528 Postgres \u6700\u4f73\u5b9e\u8df5\u5f00\u53d1 Supabase \u5e94\u7528\" \/><\/p>\n<p><strong>\u901a\u8fc7 AI \u4ee3\u7406\u81ea\u52a8\u83b7\u53d6 Supabase \u5f00\u53d1\u652f\u6301\u4e0e Postgres \u6027\u80fd\u4f18\u5316\u5efa\u8bae\u3002<\/strong><\/p>\n<h2>\u8be6\u7ec6\u4ecb\u7ecd<\/h2>\n<p>Supabase Agent Skills<\/p>\n<p>\u4e00\u7ec4\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u4f7f\u7528 AI agent \u65f6\u66f4\u51c6\u786e\u3001\u9ad8\u6548\u5730\u4f7f\u7528 Supabase \u7684\u6307\u4ee4\u3001\u811a\u672c\u548c\u8d44\u6e90\u3002\u517c\u5bb9 18+ \u79cd AI agent\uff0c\u5305\u62ec Claude Code\u3001GitHub Copilot\u3001Cursor\u3001Cline \u7b49\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f<\/p>\n<p>supabase<\/p>\n<p>\u5f53\u4f60\u9700\u8981\u5904\u7406\u4ee5\u4e0b\u4efb\u52a1\u65f6\u4f7f\u7528\u6b64\u6280\u80fd\uff1a<\/p>\n<p>\u4f7f\u7528\u4efb\u4f55 Supabase \u4ea7\u54c1\uff08Database\u3001Auth\u3001Edge Functions\u3001Realtime\u3001Storage\u3001Vectors\u3001Cron\u3001Queues\uff09<\/p>\n<p>\u5728 Next.js\u3001React\u3001SvelteKit\u3001Astro\u3001Remix \u4e2d\u4f7f\u7528\u5ba2\u6237\u7aef\u5e93\u548c SSR \u96c6\u6210\uff08supabase-js\u3001@supabase\/ssr\uff09<\/p>\n<p>\u6392\u67e5 Auth \u95ee\u9898\uff08\u767b\u5f55\u3001\u767b\u51fa\u3001\u4f1a\u8bdd\u3001JWT\u3001Cookie\u3001getSession\u3001getUser\u3001getClaims\u3001RLS\uff09<\/p>\n<p>\u4f7f\u7528 Supabase CLI \u6216 MCP \u670d\u52a1\u5668<\/p>\n<p>\u5904\u7406 schema \u53d8\u66f4\u3001\u8fc1\u79fb\u3001\u5b89\u5168\u5ba1\u8ba1\u6216 Postgres \u6269\u5c55\uff08pg_graphql\u3001pg_cron\u3001pg_vector\uff09<\/p>\n<p>supabase-postgres-best-practices<\/p>\n<p>\u5f53\u4f60\u9700\u8981\u4ee5\u4e0b\u5de5\u4f5c\u65f6\u4f7f\u7528\u6b64\u6280\u80fd\uff1a<\/p>\n<p>\u7f16\u5199 SQL \u67e5\u8be2\u6216\u8bbe\u8ba1 schema<\/p>\n<p>\u5b9e\u73b0\u7d22\u5f15\u6216\u67e5\u8be2\u4f18\u5316<\/p>\n<p>\u5ba1\u6838\u6570\u636e\u5e93\u6027\u80fd\u95ee\u9898<\/p>\n<p>\u914d\u7f6e\u8fde\u63a5\u6c60\u6216\u6269\u5c55<\/p>\n<p>\u5904\u7406\u884c\u7ea7\u5b89\u5168\uff08RLS\uff09<\/p>\n<p>\u6db5\u76d6\u7684\u7c7b\u522b\uff08\u6309\u5f71\u54cd\u4f18\u5148\u7ea7\u6392\u5e8f\uff09\uff1a<\/p>\n<p>\u67e5\u8be2\u6027\u80fd\uff08\u5173\u952e\uff09<\/p>\n<p>\u8fde\u63a5\u7ba1\u7406\uff08\u5173\u952e\uff09<\/p>\n<p>Schema \u8bbe\u8ba1\uff08\u9ad8\uff09<\/p>\n<p>\u5e76\u53d1\u4e0e\u9501\uff08\u4e2d\u9ad8\uff09<\/p>\n<p>\u5b89\u5168\u4e0e RLS\uff08\u5173\u952e\uff09<\/p>\n<p>\u6570\u636e\u8bbf\u95ee\u6a21\u5f0f\uff08\u4e2d\uff09<\/p>\n<p>\u76d1\u63a7\u4e0e\u8bca\u65ad\uff08\u4f4e\u4e2d\uff09<\/p>\n<p>\u9ad8\u7ea7\u529f\u80fd\uff08\u4f4e\uff09<\/p>\n<p>\u6838\u5fc3\u80fd\u529b<\/p>\n<p>supabase \uff1a\u5168\u9762\u7684 Supabase \u5f00\u53d1\u6280\u80fd\uff0c\u6db5\u76d6\u6240\u6709 Supabase \u4ea7\u54c1\u53ca\u96c6\u6210\uff0c\u5305\u62ec Auth\u3001\u5ba2\u6237\u7aef\u5e93\u3001CLI\u3001MCP\u3001schema \u53d8\u66f4\u3001\u8fc1\u79fb\u3001\u5b89\u5168\u5ba1\u8ba1\u548c Postgres \u6269\u5c55\u7684\u6307\u5bfc\u3002<\/p>\n<p>supabase-postgres-best-practices \uff1a\u6765\u81ea Supabase \u7684 Postgres \u6027\u80fd\u4f18\u5316\u6307\u5357\uff0c\u6db5\u76d6 8 \u4e2a\u7c7b\u522b\uff0c\u6309\u5f71\u54cd\u529b\u4f18\u5148\u7ea7\u6392\u5217\u3002<\/p>\n<p>\u5de5\u4f5c\u65b9\u5f0f<\/p>\n<p>\u5b89\u88c5\u540e\uff0c\u6280\u80fd\u4f1a\u81ea\u52a8\u5bf9\u60a8\u7684 AI agent \u53ef\u7528\u3002\u5f53 agent \u68c0\u6d4b\u5230\u76f8\u5173\u4efb\u52a1\u65f6\uff0c\u4f1a\u4f7f\u7528\u6280\u80fd\u4e2d\u7684\u6307\u4ee4\u548c\u53c2\u8003\u6587\u6863\u6765\u66f4\u51c6\u786e\u3001\u9ad8\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002\u60a8\u53ea\u9700\u7528\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u4efb\u52a1\u5373\u53ef\u3002<\/p>\n<p>\u60a8\u9700\u8981\u63d0\u4f9b<\/p>\n<p>\u4e0e Supabase \u6216 Postgres \u76f8\u5173\u7684\u81ea\u7136\u8bed\u8a00\u8bf7\u6c42\u6216\u95ee\u9898\u3002\u4f8b\u5982\uff1a<\/p>\n<p>\u4f18\u5316\u8fd9\u6761 Postgres \u67e5\u8be2<\/p>\n<p>\u68c0\u67e5\u6211\u7684 schema \u662f\u5426\u5b58\u5728\u6027\u80fd\u95ee\u9898<\/p>\n<p>\u5e2e\u6211\u7528 Next.js \u8bbe\u7f6e Supabase Auth<\/p>\n<p>\u5e2e\u6211\u4e3a\u8fd9\u5f20\u8868\u6dfb\u52a0\u5408\u9002\u7684\u7d22\u5f15<\/p>\n<p>\u60a8\u4f1a\u83b7\u5f97<\/p>\n<p>Agent \u6839\u636e\u6280\u80fd\u6307\u5bfc\u4ea7\u751f\u51c6\u786e\u7684\u7ed3\u679c\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>\u4f18\u5316\u540e\u7684 SQL \u67e5\u8be2<\/p>\n<p>Schema \u8bbe\u8ba1\u5efa\u8bae<\/p>\n<p>\u7d22\u5f15\u5efa\u8bae<\/p>\n<p>Auth \u914d\u7f6e\u6b65\u9aa4<\/p>\n<p>Auth \u6216\u6027\u80fd\u95ee\u9898\u7684\u6392\u67e5\u6307\u5bfc<\/p>\n<p>\u4f7f\u7528\u793a\u4f8b<\/p>\n<p>\u4f18\u5316\u8fd9\u6761 Postgres \u67e5\u8be2<\/p>\n<p>\u68c0\u67e5\u6211\u7684 schema \u662f\u5426\u5b58\u5728\u6027\u80fd\u95ee\u9898<\/p>\n<p>\u5e2e\u6211\u7528 Next.js \u8bbe\u7f6e Supabase Auth<\/p>\n<p>\u5e2e\u6211\u4e3a\u8fd9\u5f20\u8868\u6dfb\u52a0\u5408\u9002\u7684\u7d22\u5f15<\/p>\n<p>\u9009\u578b\u8bf4\u660e<\/p>\n<p>\u6d89\u53ca Supabase \u4ea7\u54c1\u3001\u5ba2\u6237\u7aef\u5e93\u3001Auth\u3001CLI \u6216 schema \u7ba1\u7406\u7684\u4efb\u52a1\uff0c\u4f7f\u7528 supabase \u6280\u80fd\u3002<\/p>\n<p>\u6d89\u53ca Postgres \u6027\u80fd\u4f18\u5316\u3001\u67e5\u8be2\u8c03\u4f18\u3001\u7d22\u5f15\u8bbe\u8ba1\u3001\u8fde\u63a5\u6c60\u548c RLS \u5ba1\u67e5\u7684\u4efb\u52a1\uff0c\u4f7f\u7528 supabase-postgres-best-practices \u6280\u80fd\u3002<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879<\/p>\n<p>\u517c\u5bb9 18+ \u79cd AI agent\uff0c\u5305\u62ec Claude Code\u3001GitHub Copilot\u3001Cursor\u3001Cline \u7b49\u3002<\/p>\n<p>\u5b89\u88c5\u540e\u6280\u80fd\u81ea\u52a8\u751f\u6548\uff0cagent \u68c0\u6d4b\u5230\u76f8\u5173\u4efb\u52a1\u65f6\u81ea\u52a8\u4f7f\u7528\uff0c\u65e0\u9700\u624b\u52a8\u6fc0\u6d3b\u3002<\/p>\n<p>\u65e0\u9700\u989d\u5916 API \u5bc6\u94a5\u3001\u8d26\u53f7\u6216\u914d\u7f6e\uff08\u9664 AI agent \u672c\u8eab\u5916\uff09\u3002<\/p>\n<h2>\u8bd5\u8bd5\u8fd9\u6837\u505a<\/h2>\n<ul>\n<li>\u5e2e\u6211\u5ba1\u67e5\u8fd9\u4e2a\u6570\u636e\u5e93\u67b6\u6784\u7684\u6027\u80fd\u95ee\u9898\uff0c\u5e76\u63d0\u4f9b\u4f18\u5316\u5efa\u8bae\u3002<\/li>\n<li>\u5982\u4f55\u4f7f\u7528 Next.js \u914d\u7f6e Supabase \u8eab\u4efd\u9a8c\u8bc1\uff1f<\/li>\n<li>\u8bf7\u4e3a\u6211\u7684 Postgres \u8868\u6dfb\u52a0\u5408\u9002\u7684\u7d22\u5f15\u4ee5\u4f18\u5316\u67e5\u8be2\u6027\u80fd\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u4f5c\u8005\uff1asupabase \u5f00\u53d1\u8005 \/ \u804c\u573a\u4eba \uff5c GitHub Stars 2.4K \uff5c \u6807\u7b7e\uff1a\u7f16\u7a0b\u5f00\u53d1 \u6570\u636e\u5206\u6790 \u5df2\u8ba4\u8bc1 \u5f00\u6e90\u8bb8\u53ef: MIT<\/p>\n<p>\u6765\u6e90\uff1a<a href=\"https:\/\/colaos.ai\/skills\/zh\/supabase-agent-skills\/\">colaos.ai<\/a> \uff5c Skill ID\uff1asupabase-agent-skills<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7 AI \u4ee3\u7406\u81ea\u52a8\u83b7\u53d6 Supabase \u5f00\u53d1\u652f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4331,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[],"class_list":["post-4332","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/posts\/4332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4332"}],"version-history":[{"count":1,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/posts\/4332\/revisions"}],"predecessor-version":[{"id":4333,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/posts\/4332\/revisions\/4333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=\/wp\/v2\/media\/4331"}],"wp:attachment":[{"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.jxgzhc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}